Skip to content

Commit 087d44f

Browse files
committed
move to toml
1 parent 6975441 commit 087d44f

File tree

4 files changed

+67
-40
lines changed

4 files changed

+67
-40
lines changed

.github/workflows/python-publish.yml

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,27 +5,30 @@ name: Upload Python Package
55

66
on:
77
release:
8-
types: [created]
8+
types: [published]
9+
10+
permissions:
11+
contents: read
912

1013
jobs:
1114
deploy:
1215

1316
runs-on: ubuntu-latest
1417

1518
steps:
16-
- uses: actions/checkout@v2
19+
- uses: actions/checkout@v4
1720
- name: Set up Python
18-
uses: actions/setup-python@v2
21+
uses: actions/setup-python@v3
1922
with:
2023
python-version: '3.x'
2124
- name: Install dependencies
2225
run: |
2326
python -m pip install --upgrade pip
24-
pip install setuptools wheel twine
25-
- name: Build and publish
26-
env:
27-
TWINE_USERNAME: __token__
28-
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
29-
run: |
30-
python setup.py sdist bdist_wheel
31-
twine upload dist/*
27+
pip install build
28+
- name: Build package
29+
run: python -m build
30+
- name: Publish package
31+
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
32+
with:
33+
user: __token__
34+
password: ${{ secrets.PYPI_API_TOKEN }}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ __pycache__
66
*.pyc
77
.coverage
88
coverage.xml
9+
pgtree/version.py

pyproject.toml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
[project]
2+
name = "pgtree"
3+
authors = [
4+
{ name = "Franck Jouvanceau" },
5+
]
6+
maintainers = [
7+
{ name = "Franck Jouvanceau" },
8+
]
9+
license = "MIT"
10+
description = "Unix process tree search"
11+
dependencies = [
12+
]
13+
dynamic=["version"]
14+
readme = "README.md"
15+
license-files = ["LICENSE"]
16+
requires-python = ">= 3.6"
17+
keywords = ["shell", "pstree", "pgrep", "process", "tree"]
18+
classifiers = [
19+
"Development Status :: 5 - Production/Stable",
20+
"Intended Audience :: System Administrators",
21+
"Operating System :: POSIX",
22+
"Operating System :: Unix",
23+
"Operating System :: MacOS",
24+
"Programming Language :: Python",
25+
"Programming Language :: Python :: 3",
26+
"Programming Language :: Python :: 3.6",
27+
"Programming Language :: Python :: 3.7",
28+
"Programming Language :: Python :: 3.8",
29+
"Programming Language :: Python :: 3.9",
30+
"Programming Language :: Python :: 3.10",
31+
"Programming Language :: Python :: 3.11",
32+
"Programming Language :: Python :: 3.12",
33+
"Topic :: Software Development :: Libraries :: Python Modules",
34+
"Topic :: System :: Clustering",
35+
"Topic :: System :: Networking",
36+
"Topic :: System :: Systems Administration",
37+
]
38+
39+
[project.urls]
40+
Homepage = "https://github.com/joknarf/pgtree"
41+
Documentation = "https://github.com/joknarf/pgtree/blob/main/README.md"
42+
Repository = "https://github.com/joknarf/pgtree.git"
43+
44+
[build-system]
45+
requires = ["setuptools >= 64.0", "setuptools_scm[toml]>=6.2"]
46+
build-backend = "setuptools.build_meta"
47+
48+
[tool.setuptools_scm]
49+
version_file = "pgtree/version.py"
50+
51+
[tool.setuptools]
52+
script-files = ["pgtree/pgtree"]

setup.py

Lines changed: 0 additions & 29 deletions
This file was deleted.

0 commit comments

Comments
 (0)