Skip to content

Commit

Permalink
Add release version to setup file
Browse files Browse the repository at this point in the history
  • Loading branch information
christianversloot committed Nov 30, 2020
1 parent 01bb62d commit f55dd02
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/*
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
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.",
author="Christian Versloot",
author_email="[email protected]",
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=[
Expand Down

0 comments on commit f55dd02

Please sign in to comment.