diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c118393..9ef472f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -40,7 +40,7 @@ jobs: - name: Build package and publish to PyPi env: TWINE_USERNAME: __token__ - TWINE_PASSWORD: ${{ secrets.PYPI_TOMTOOLKIT_API_TOKEN }} + TWINE_PASSWORD: ${{ secrets.PYPI_TOM_REGISTRATION_API_TOKEN }} run: | python setup.py sdist bdist_wheel twine upload dist/* diff --git a/setup.cfg b/setup.cfg index 7d137a0..0ad068b 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,6 +1,5 @@ [metadata] name = tom-registration -version = 0.1 description = Reusable TOMToolkit app to support multiple user registration flows. long_description = file: README.md long_description_content_type = text/markdown @@ -32,6 +31,9 @@ keywords = science [options] +setup_requires = + setuptools_scm + wheel install_requires = tomtoolkit >= 2.5 include_package_data = true diff --git a/setup.py b/setup.py index 3898ed7..906daec 100644 --- a/setup.py +++ b/setup.py @@ -1,3 +1,5 @@ from setuptools import setup -setup() # configuration resides in setup.cfg file +setup( # configuration resides in setup.cfg file + use_scm_version=True, # setuptools_scm does not support setup.cfg +)