Skip to content

Commit 606212b

Browse files
authoredNov 23, 2022
Update build system (#79)
1 parent 3352905 commit 606212b

File tree

3 files changed

+13
-16
lines changed

3 files changed

+13
-16
lines changed
 

‎.github/workflows/python-publish.yml

+8-10
Original file line numberDiff line numberDiff line change
@@ -13,19 +13,17 @@ jobs:
1313
runs-on: ubuntu-latest
1414

1515
steps:
16-
- uses: actions/checkout@v2
16+
- uses: actions/checkout@v3
1717
- name: Set up Python
18-
uses: actions/setup-python@v2
18+
uses: actions/setup-python@v4
1919
with:
2020
python-version: '3.x'
2121
- name: Install dependencies
2222
run: |
2323
python -m pip install --upgrade pip
24-
pip install setuptools wheel twine
25-
- name: Build and publish
26-
env:
27-
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
28-
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
29-
run: |
30-
python setup.py sdist bdist_wheel
31-
twine upload dist/*
24+
pip install build
25+
- name: Publish package
26+
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
27+
with:
28+
user: __token__
29+
password: ${{ secrets.PYPI_API_TOKEN }}

‎pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[build-system]
22
build-backend = "setuptools.build_meta"
33
requires = [
4-
"setuptools-scm>=6.3.2",
4+
"setuptools-scm[toml]>=6.3.2",
55
"setuptools>=59.5.0",
66
"wheel>=0.37.0",
77
]

‎setup.cfg

+4-5
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@ extend-exclude = *brain_challenge*,*2020-08*
55
extend-ignore = E203, E266, E501
66

77
[metadata]
8-
author = Matthew Muckley
9-
author_email = matt.muckley@gmail.com
8+
author = torchkbnufft Authors
109
classifiers =
1110
Environment :: Console
1211
Natural Language :: English
@@ -65,6 +64,6 @@ tests =
6564

6665
[options.packages.find]
6766
exclude =
68-
tests
69-
notebooks
70-
docs
67+
tests*
68+
notebooks*
69+
docs*

0 commit comments

Comments
 (0)