Skip to content

Commit 285d147

Browse files
committed
Add optional pyproject.toml for hatch build workflow.
1 parent 55abe3a commit 285d147

2 files changed

Lines changed: 75 additions & 3 deletions

File tree

pyproject.toml

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
[project]
2+
name = "jinja_partials"
3+
description = "Simple reuse of partial HTML page templates in the Jinja template language for Python web frameworks."
4+
readme = "./README.md"
5+
license = "MIT"
6+
requires-python = ">=3.8"
7+
keywords = [
8+
"web",
9+
"html",
10+
"templates",
11+
]
12+
authors = [
13+
{ name = "Michael Kennedy", email = "michael@talkpython.fm" },
14+
]
15+
classifiers = [
16+
'Development Status :: 5 - Production/Stable',
17+
'License :: OSI Approved :: MIT License',
18+
'Programming Language :: Python',
19+
'Programming Language :: Python :: 3',
20+
'Programming Language :: Python :: 3.8',
21+
'Programming Language :: Python :: 3.9',
22+
'Programming Language :: Python :: 3.10',
23+
'Programming Language :: Python :: 3.11',
24+
'Programming Language :: Python :: 3.12',
25+
]
26+
dependencies = [
27+
"jinja2",
28+
]
29+
version = "0.2.1"
30+
31+
32+
[project.urls]
33+
Homepage = "https://github.com/mikeckennedy/jinja_partials"
34+
Tracker = "https://github.com/mikeckennedy/jinja_partials/issues"
35+
Source = "https://github.com/mikeckennedy/jinja_partials"
36+
37+
[build-system]
38+
requires = ["hatchling>=1.21.0", "hatch-vcs>=0.3.0"]
39+
build-backend = "hatchling.build"
40+
41+
42+
[tool.hatch.build.targets.sdist]
43+
exclude = [
44+
"/.github",
45+
"/tests",
46+
"/example",
47+
"requirements-dev.txt",
48+
"tox.ini",
49+
"ruff.toml",
50+
".gitignore",
51+
"/example_client",
52+
"/build",
53+
"/dist",
54+
]
55+
56+
[tool.hatch.build.targets.wheel]
57+
packages = ["jinja_partials"]
58+
exclude = [
59+
60+
"/.github",
61+
"/tests",
62+
"/example",
63+
"requirements-dev.txt",
64+
"tox.ini",
65+
"ruff.toml",
66+
".gitignore",
67+
"/example_client",
68+
"/build",
69+
"/dist",
70+
"setup.py",
71+
]

setup.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,16 +45,17 @@ def read_version():
4545
packages=find_packages(exclude=('tests', 'example', 'readme_resources', 'build', 'dist',)),
4646

4747
install_requires=['jinja2'],
48+
exclude=['build', 'dist', '.github', 'example', 'tests'],
4849

4950
classifiers=[
50-
'Development Status :: 2 - Pre-Alpha',
51+
'Development Status :: 5 - Production/Stable',
5152
'License :: OSI Approved :: MIT License',
5253
'Programming Language :: Python',
5354
'Programming Language :: Python :: 3',
54-
'Programming Language :: Python :: 3.6',
55-
'Programming Language :: Python :: 3.7',
5655
'Programming Language :: Python :: 3.8',
5756
'Programming Language :: Python :: 3.9',
5857
'Programming Language :: Python :: 3.10',
58+
'Programming Language :: Python :: 3.11',
59+
'Programming Language :: Python :: 3.12',
5960
],
6061
)

0 commit comments

Comments
 (0)