Skip to content

Commit

Permalink
WIP: try to automate gh to pypi packaging
Browse files Browse the repository at this point in the history
  • Loading branch information
stnava committed Aug 20, 2023
1 parent a2c3543 commit 85354cb
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -201,3 +201,12 @@ jobs:
omitNameDuringUpdate: true
artifacts: ./wheelhouse/cp${{ matrix.cibw_python }}-${{ matrix.platform_id }}/*.whl
token: ${{ secrets.GITHUB_TOKEN }}
- name: Publish distribution 📦 to PyPI
if: startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}
packages-dir: ./wheelhouse/
verify-metadata: false
skip-existing: true
verbose: true
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ def build_extension(self, ext):
author="Brian B. Avants and Nicholas Cullen",
author_email="stnava@gmail.com",
description="Advanced Normalization Tools in Python",
long_description=long_description,
long_description="Advanced Normalization Tools in Python wraps core C++-based ANTs tools for registration, segmentation and other basic processing.",
long_description_content_type="text/markdown; charset=UTF-8; variant=GFM",
ext_modules=[
CMakeExtension("ants", sourcedir=os.path.join(setup_py_dir, "ants/lib/"))
Expand All @@ -217,5 +217,5 @@ def build_extension(self, ext):
"lib/*.dll"
]},
url="https://github.com/ANTsX/ANTsPy",
classifiers=["Programming Language :: Python :: 3.6"],
classifiers=["Programming Language :: Python :: 3.9"],
)

0 comments on commit 85354cb

Please sign in to comment.