Skip to content

Commit 812ca0a

Browse files
committed
moved from setup.py to pyproject.toml build system
1 parent de72a75 commit 812ca0a

File tree

3 files changed

+20
-16
lines changed

3 files changed

+20
-16
lines changed

.github/workflows/publish.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,15 @@ jobs:
1717
name: Set up Python
1818
- name: Pre-Install (generic)
1919
run: |
20-
python -m pip install requests
20+
python -m pip install build
2121
python -m pip install setuptools
2222
python -m pip install --upgrade pip
2323
- name: Build package
2424
run: |
25-
python setup.py build sdist
25+
python -m build --wheel --sdist
2626
- name: Publish to PyPI
2727
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') && startsWith(matrix.os, 'ubuntu')
28-
uses: pypa/gh-action-pypi-publish@master
28+
uses: pypa/gh-action-pypi-publish@release/v1
2929
with:
3030
skip_existing: true
3131
user: __token__

pyproject.toml

Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,30 +10,35 @@ description = "Gathering the system state before benchmarking and other tests on
1010
readme = "README.md"
1111
requires-python = ">=3.6"
1212
classifiers = [
13-
'Development Status :: 3 - Alpha',
13+
"Development Status :: 3 - Alpha",
1414

15-
'Intended Audience :: Science/Research',
16-
'Intended Audience :: Developers',
17-
'Intended Audience :: System Administrators',
15+
"Intended Audience :: Science/Research",
16+
"Intended Audience :: Developers",
17+
"Intended Audience :: System Administrators",
1818

19-
'License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)',
19+
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
2020

21-
'Topic :: System :: Benchmark',
22-
'Topic :: System :: Hardware',
23-
'Topic :: System :: Operating System',
24-
'Topic :: System :: Systems Administration',
25-
'Topic :: Education :: Testing',
21+
"Topic :: System :: Benchmark",
22+
"Topic :: System :: Hardware",
23+
"Topic :: System :: Operating System",
24+
"Topic :: System :: Systems Administration",
25+
"Topic :: Education :: Testing",
2626

27-
'Operating System :: POSIX :: Linux',
28-
'Environment :: Console',
27+
"Operating System :: POSIX :: Linux",
28+
"Environment :: Console",
2929
"Programming Language :: Python :: 3",
3030
]
31+
keywords=["benchmarking", "linux", "system state", "topology"]
3132
license = { file = "LICENSE" }
3233

3334
[project.urls]
3435
Homepage = "https://github.com/RRZE-HPC/MachineState"
3536
Issues = "https://github.com/RRZE-HPC/MachineState/issues"
3637

38+
[build-system]
39+
requires = ["setuptools >= 61.0"]
40+
build-backend = "setuptools.build_meta"
41+
3742
[tool.setuptools.dynamic]
3843
version = { attr = "machinestate.MACHINESTATE_VERSION" }
3944

setup.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,5 +63,4 @@ def find_version():
6363
'Programming Language :: Python :: 3.7',
6464
],
6565

66-
keywords='benchmarking, linux, system state, topology'
6766
)

0 commit comments

Comments
 (0)