diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 7da7c7b..420a1ce 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -22,7 +22,7 @@ jobs: if: steps.cache.outputs.cache-hit != 'true' run: pip install build twine - name: "Build package" - run: python setup.py clean --all bdist_wheel + run: python -m build - name: "Publish to PyPI" run: twine upload dist/* env: diff --git a/setup.py b/setup.py index 3ab571d..aa4b6db 100644 --- a/setup.py +++ b/setup.py @@ -54,7 +54,7 @@ def read(fname): setup( name="Flask-ESearch", - version=find_version("src/__init__.py"), + version="0.5.0", url="https://github.com/dymmond/flask-esearch", long_description=read("README.md"), long_description_content_type="text/markdown", diff --git a/src/__init__.py b/src/__init__.py index 33acc28..8e58675 100644 --- a/src/__init__.py +++ b/src/__init__.py @@ -1,4 +1 @@ -from distutils.version import LooseVersion - __version__ = "0.5.0" -__version_info__ = tuple(LooseVersion(__version__).version)