Skip to content

Commit 0b77adb

Browse files
committed
Use setuptools-scm to get package version
1 parent b42bfb9 commit 0b77adb

File tree

3 files changed

+14
-5
lines changed

3 files changed

+14
-5
lines changed

.github/workflows/publish-python-package.yml

+5-4
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,13 @@ jobs:
1111
- uses: actions/checkout@v2
1212
- name: Set up Python
1313
uses: actions/setup-python@v1
14-
- name: Update pip
15-
run: pip install -U pip
14+
- name: Install build tools
15+
run: |
16+
pip install -U pip
17+
pip install build
1618
- name: Build package
1719
run: |
18-
pip install setuptools wheel
19-
python setup.py sdist bdist_wheel
20+
pyproject-build --outdir dist/
2021
- name: Publish package
2122
env:
2223
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}

pyproject.toml

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
[build-system]
2+
build-backend = "setuptools.build_meta"
3+
requires = [
4+
"setuptools >= 42",
5+
"setuptools-scm[toml] >= 3.4",
6+
"wheel",
7+
]
8+
9+
[tool.setuptools_scm]

setup.cfg

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
[metadata]
22
name = proxpi
3-
version = 0.1.1.dev0
43
url = https://github.com/EpicWink/proxpi
54
author = Laurie O
65
author_email = [email protected]

0 commit comments

Comments
 (0)