Skip to content

Commit

Permalink
Update build system (#79)
Browse files Browse the repository at this point in the history
  • Loading branch information
mmuckley committed Nov 23, 2022
1 parent 3352905 commit 606212b
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 16 deletions.
18 changes: 8 additions & 10 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -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",
]
Expand Down
9 changes: 4 additions & 5 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -65,6 +64,6 @@ tests =

[options.packages.find]
exclude =
tests
notebooks
docs
tests*
notebooks*
docs*

0 comments on commit 606212b

Please sign in to comment.