Skip to content

Commit a328767

Browse files
committed
replaced setup.py with pyproject.toml
1 parent fe19de7 commit a328767

5 files changed

Lines changed: 81 additions & 74 deletions

File tree

.github/workflows/python-publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@ jobs:
2121
- name: Install dependencies
2222
run: |
2323
python -m pip install --upgrade pip
24-
pip install setuptools wheel twine
24+
pip install setuptools wheel build twine
2525
- name: Build and publish
2626
env:
2727
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
2828
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
2929
run: |
30-
python setup.py sdist bdist_wheel
30+
python -m build --wheel --sdist
3131
twine upload dist/*

mypy.ini

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

pyproject.toml

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
2+
[build-system]
3+
requires = ["setuptools >= 75.8.0"]
4+
build-backend = "setuptools.build_meta"
5+
6+
[project]
7+
name="construct-typing"
8+
dynamic = ["version"]
9+
license = { file = "LICENSE" }
10+
description="Extension for the python package 'construct' that adds typing features"
11+
readme = "README.md"
12+
authors=[{ name = "Tim Riddermann" }]
13+
requires-python = ">=3.9"
14+
dependencies = [
15+
"construct==2.10.70",
16+
"typing_extensions>=4.6.0"
17+
]
18+
keywords = [
19+
"construct",
20+
"kaitai",
21+
"declarative",
22+
"data structure",
23+
"struct",
24+
"binary",
25+
"symmetric",
26+
"parser",
27+
"builder",
28+
"parsing",
29+
"building",
30+
"pack",
31+
"unpack",
32+
"packer",
33+
"unpacker",
34+
"bitstring",
35+
"bytestring",
36+
"annotation",
37+
"type hint",
38+
"typing",
39+
"typed",
40+
"bitstruct",
41+
"PEP 561",
42+
]
43+
classifiers = [
44+
"Development Status :: 3 - Alpha",
45+
"License :: OSI Approved :: MIT License",
46+
"Intended Audience :: Developers",
47+
"Topic :: Software Development :: Libraries :: Python Modules",
48+
"Topic :: Software Development :: Build Tools",
49+
"Topic :: Software Development :: Code Generators",
50+
"Programming Language :: Python :: 3",
51+
"Programming Language :: Python :: 3.9",
52+
"Programming Language :: Python :: 3.10",
53+
"Programming Language :: Python :: 3.11",
54+
"Programming Language :: Python :: 3.12",
55+
"Programming Language :: Python :: 3.13",
56+
"Programming Language :: Python :: Implementation :: CPython",
57+
"Typing :: Typed",
58+
]
59+
60+
[project.urls]
61+
"Homepage" = "https://github.com/timrid/construct-typing"
62+
"Bug Reports" = "https://github.com/timrid/construct-typing/issues"
63+
64+
[tool.setuptools]
65+
packages=[
66+
"construct-stubs",
67+
"construct-stubs.lib",
68+
"construct_typed"
69+
]
70+
71+
[tool.setuptools.dynamic]
72+
version = {attr = "construct_typed.version.version_string"}
73+
74+
[tool.mypy]
75+
strict = true
76+
warn_unused_ignores = false

requirements.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,6 @@ black
99
isort
1010
mypy
1111
cryptography
12+
build
13+
setuptools
14+
wheel

setup.py

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

0 commit comments

Comments
 (0)