Skip to content

Commit 9299f49

Browse files
authored
Move project metadata to pyproject.toml (#106)
* Move project metadata to pyproject.toml * Update upload script * Update readme * Update version to 1.9.2 * Add pip upgrade flag
1 parent 8aba9e3 commit 9299f49

File tree

5 files changed

+34
-58
lines changed

5 files changed

+34
-58
lines changed

python/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ Then run
6868
```python
6969
bin/pip install -r requirements.txt
7070

71-
bin/python setup.py install
71+
bin/python -m pip install -e .
7272
```
7373

7474
## App Usage

python/README.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ Then run
6565

6666
bin/pip install -r requirements.txt
6767

68-
bin/python setup.py install
68+
bin/python -m pip install -e .
6969

7070
App Usage
7171
---------

python/pyproject.toml

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
[build-system]
2+
requires = ["setuptools"]
3+
build-backend = "setuptools.build_meta"
4+
5+
[project]
6+
name = "py-vapid"
7+
version = "1.9.2"
8+
license = {text = "MPL-2.0"}
9+
description = "Simple VAPID header generation library"
10+
readme = "README.rst"
11+
authors = [{name = "JR Conlin", email = "[email protected]"}]
12+
keywords = ["vapid", "push", "webpush"]
13+
classifiers = [
14+
"Topic :: Internet :: WWW/HTTP",
15+
"Programming Language :: Python",
16+
"Programming Language :: Python :: 3",
17+
]
18+
dynamic = ["dependencies"]
19+
20+
[project.urls]
21+
Homepage = "https://github.com/mozilla-services/vapid"
22+
23+
[project.scripts]
24+
vapid = "py_vapid.main:main"
25+
26+
[tool.setuptools.dynamic]
27+
dependencies = {file = "requirements.txt"}
28+
29+
[tool.setuptools.packages.find]
30+
include = ["py_vapid*"]

python/setup.py

-55
This file was deleted.

python/upload.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,6 @@
33
# remember to update the README.rst file
44
#pandoc --from=markdown --to=rst --output README.rst README.md
55
#pandoc --from=markdown --to=rst --output CHANGELOG.rst CHANGELOG.md
6-
venv/bin/python setup.py sdist
6+
venv/bin/python -m pip install --upgrade build
7+
venv/bin/python -m build
78
venv/bin/twine upload dist/* --verbose

0 commit comments

Comments
 (0)