Skip to content

Commit f55dd02

Browse files
Add release version to setup file
1 parent 01bb62d commit f55dd02

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.github/workflows/python-publish.yml

+1
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,6 @@ jobs:
2626
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
2727
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
2828
run: |
29+
sed -i "s|{{VERSION}}|${{ github.event.release.tag_name }}|g" ./setup.py
2930
python setup.py sdist bdist_wheel
3031
twine upload dist/*

setup.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@
33
setup(
44
name="extra_keras_datasets",
55
packages=["extra_keras_datasets"],
6-
version="0.1.7",
6+
version="{{VERSION}}",
77
license="MIT",
88
description="Extending the Keras Datasets module with extra ones.",
99
long_description="Extending the Keras Datasets module with extra ones.",
1010
author="Christian Versloot",
1111
author_email="[email protected]",
1212
url="https://github.com/christianversloot/extra_keras_datasets",
1313
download_url=("https://github.com/christianversloot/"
14-
"extra_keras_datasets/archive/0.1.7.tar.gz"),
14+
"extra_keras_datasets/archive/{{VERSION}}.tar.gz"),
1515
keywords=["keras", "datasets", "machine learning"],
1616
install_requires=["numpy", "scipy"],
1717
classifiers=[

0 commit comments

Comments
 (0)