Skip to content

Commit f3d9af1

Browse files
committed
Migrate to Hatch build backend and dynamic versioning Add pyproject.toml
and remove setup.py-based build configuration
1 parent 19c6eaf commit f3d9af1

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

pyproject.toml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
[build-system]
2+
requires = ["hatchling"]
3+
build-backend = "hatchling.build"
4+
5+
[project]
6+
name = "jwcrypto"
7+
dynamic = ["version"]
8+
description = "Implementation of JOSE Web standards"
9+
readme = "README.md"
10+
license = "LGPL-3.0-or-later"
11+
requires-python = ">= 3.8"
12+
maintainers = [
13+
{ name = "JWCrypto Project Contributors", email = "[email protected]" },
14+
]
15+
classifiers = [
16+
"Intended Audience :: Developers",
17+
"Programming Language :: Python :: 3.8",
18+
"Programming Language :: Python :: 3.9",
19+
"Programming Language :: Python :: 3.10",
20+
"Programming Language :: Python :: 3.11",
21+
"Topic :: Security",
22+
"Topic :: Software Development :: Libraries :: Python Modules",
23+
]
24+
dependencies = [
25+
"cryptography >= 3.4",
26+
"typing_extensions >= 4.5.0",
27+
]
28+
29+
[project.urls]
30+
Homepage = "https://github.com/latchset/jwcrypto"
31+
32+
[tool.hatch.version]
33+
path = "jwcrypto/version.py"
34+
35+
[tool.hatch.build.targets.wheel.shared-data]
36+
LICENSE = "share/doc/jwcrypto/LICENSE"
37+
"README.md" = "share/doc/jwcrypto/README.md"
38+
39+
[tool.hatch.build.targets.sdist]
40+
include = [
41+
"/jwcrypto",
42+
]

0 commit comments

Comments
 (0)