Skip to content

Commit

Permalink
Remove version file
Browse files Browse the repository at this point in the history
  • Loading branch information
adrien-berchet committed Jul 21, 2021
1 parent a923e6a commit bb6776a
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 16 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/publish-sdist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ jobs:
with:
python-version: 3.8
- name: Build a source tarball
run:
python setup.py sdist

run: |
pip install setuptools>=42 wheel setuptools_scm[toml]>=3.4
python setup.py sdist bdist_wheel
- name: Publish distribution package to PyPI
uses: pypa/gh-action-pypi-publish@master
with:
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,5 @@ doc/build
doc/source/generated
reports
.vscode

luigi_tools/version.py
4 changes: 3 additions & 1 deletion luigi_tools/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,6 @@
See the License for the specific language governing permissions and
limitations under the License.
"""
from luigi_tools.version import __version__
from pkg_resources import get_distribution

__version__ = get_distribution("luigi-tools").version
5 changes: 0 additions & 5 deletions luigi_tools/version.py

This file was deleted.

3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# pyproject.toml
[build-system]
requires = ["setuptools>=42", "wheel", "setuptools_scm[toml]>=3.4"]

[tool.setuptools_scm]
local_scheme = "no-local-version"
5 changes: 0 additions & 5 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,6 @@
setup(
name="luigi-tools",
author="Blue Brain Project, EPFL",
use_scm_version={
"write_to": "luigi_tools/version.py",
"write_to_template": version_template,
"local_scheme": "no-local-version",
},
description="Tools to work with luigi",
long_description=README,
long_description_content_type="text/markdown",
Expand Down
6 changes: 4 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ envlist =
py{36,37,38}
py36-lint
py38-docs
py38-check-packaging

minversion = 3.1.0

Expand All @@ -29,11 +30,12 @@ commands = pytest \
--self-contained-html \
{posargs}

[testenv:check-packaging]
[testenv:py38-check-packaging]
skip_install = true
deps =
wheel
twine
setuptools_scm[toml]>=3.4
commands =
python setup.py sdist bdist_wheel -d {envtmpdir}/dist
twine check {envtmpdir}/dist/*
Expand Down Expand Up @@ -86,4 +88,4 @@ convention = google
python =
3.6: py36, py36-lint
3.7: py37
3.8: py38, py38-docs
3.8: py38, py38-docs, py38-check-packaging

0 comments on commit bb6776a

Please sign in to comment.