From f55dd0213a84bf663b982ebcd91d3a3c011559f3 Mon Sep 17 00:00:00 2001 From: Christian Versloot Date: Mon, 30 Nov 2020 20:12:08 +0100 Subject: [PATCH] Add release version to setup file --- .github/workflows/python-publish.yml | 1 + setup.py | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index af2ccf6..2da9f54 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -26,5 +26,6 @@ jobs: TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} run: | + sed -i "s|{{VERSION}}|${{ github.event.release.tag_name }}|g" ./setup.py python setup.py sdist bdist_wheel twine upload dist/* \ No newline at end of file diff --git a/setup.py b/setup.py index 8afc1cc..c99dc47 100644 --- a/setup.py +++ b/setup.py @@ -3,7 +3,7 @@ setup( name="extra_keras_datasets", packages=["extra_keras_datasets"], - version="0.1.7", + version="{{VERSION}}", license="MIT", description="Extending the Keras Datasets module with extra ones.", long_description="Extending the Keras Datasets module with extra ones.", @@ -11,7 +11,7 @@ author_email="chris@machinecurve.com", url="https://github.com/christianversloot/extra_keras_datasets", download_url=("https://github.com/christianversloot/" - "extra_keras_datasets/archive/0.1.7.tar.gz"), + "extra_keras_datasets/archive/{{VERSION}}.tar.gz"), keywords=["keras", "datasets", "machine learning"], install_requires=["numpy", "scipy"], classifiers=[