diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index 1a03a7b..724a334 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -13,19 +13,17 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Set up Python - uses: actions/setup-python@v2 + uses: actions/setup-python@v4 with: python-version: '3.x' - name: Install dependencies run: | python -m pip install --upgrade pip - pip install setuptools wheel twine - - name: Build and publish - env: - TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} - TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} - run: | - python setup.py sdist bdist_wheel - twine upload dist/* + pip install build + - name: Publish package + uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29 + with: + user: __token__ + password: ${{ secrets.PYPI_API_TOKEN }} diff --git a/pyproject.toml b/pyproject.toml index d86bea9..855550c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,7 @@ [build-system] build-backend = "setuptools.build_meta" requires = [ - "setuptools-scm>=6.3.2", + "setuptools-scm[toml]>=6.3.2", "setuptools>=59.5.0", "wheel>=0.37.0", ] diff --git a/setup.cfg b/setup.cfg index f82751d..bfe4c48 100644 --- a/setup.cfg +++ b/setup.cfg @@ -5,8 +5,7 @@ extend-exclude = *brain_challenge*,*2020-08* extend-ignore = E203, E266, E501 [metadata] -author = Matthew Muckley -author_email = matt.muckley@gmail.com +author = torchkbnufft Authors classifiers = Environment :: Console Natural Language :: English @@ -65,6 +64,6 @@ tests = [options.packages.find] exclude = - tests - notebooks - docs + tests* + notebooks* + docs*