|
1 | 1 | [build-system]
|
2 |
| -requires = ["poetry-core>=1.0.0"] |
3 |
| -build-backend = "poetry.core.masonry.api" |
| 2 | +build-backend = "hatchling.build" |
| 3 | +requires = [ |
| 4 | + "hatch-vcs>=0.3", |
| 5 | + "hatchling>=1.13", |
| 6 | +] |
4 | 7 |
|
5 |
| -[tool.poetry] |
| 8 | +[project] |
6 | 9 | name = "pytest-html"
|
7 | 10 | description = "pytest plugin for generating HTML reports"
|
8 |
| -version = "4.0.0-rc0" |
9 |
| -license = "MPL-2.0" |
10 |
| -authors = [ |
11 |
| - |
12 |
| - "Jim Brannlund <[email protected]>" |
13 |
| -] |
14 | 11 | readme = "README.rst"
|
15 |
| -homepage = "https://github.com/pytest-dev/pytest-html" |
16 |
| -repository = "https://github.com/pytest-dev/pytest-html" |
| 12 | +license = "MPL-2.0" |
| 13 | +requires-python = ">=3.7" |
17 | 14 | keywords = [
|
18 |
| - "pytest", |
19 |
| - "html", |
20 |
| - "report", |
| 15 | + "pytest", |
| 16 | + "html", |
| 17 | + "report", |
| 18 | +] |
| 19 | +authors = [ |
| 20 | + { name = "Dave Hunt", email = "[email protected]" }, |
| 21 | + { name = "Jim Brannlund", email = "[email protected]" }, |
21 | 22 | ]
|
22 | 23 | classifiers = [
|
23 |
| - "Development Status :: 5 - Production/Stable", |
24 |
| - "Framework :: Pytest", |
25 |
| - "Intended Audience :: Developers", |
26 |
| - "Operating System :: POSIX", |
27 |
| - "Operating System :: Microsoft :: Windows", |
28 |
| - "Operating System :: MacOS :: MacOS X", |
29 |
| - "Topic :: Software Development :: Quality Assurance", |
30 |
| - "Topic :: Software Development :: Testing", |
31 |
| - "Topic :: Utilities", |
| 24 | + "Development Status :: 5 - Production/Stable", |
| 25 | + "Framework :: Pytest", |
| 26 | + "Intended Audience :: Developers", |
| 27 | + "License :: OSI Approved :: MIT License", |
| 28 | + "Natural Language :: English", |
| 29 | + "Operating System :: POSIX", |
| 30 | + "Operating System :: Microsoft :: Windows", |
| 31 | + "Operating System :: MacOS :: MacOS X", |
| 32 | + "Programming Language :: Python :: 3.7", |
| 33 | + "Programming Language :: Python :: 3.8", |
| 34 | + "Programming Language :: Python :: 3.9", |
| 35 | + "Programming Language :: Python :: 3.10", |
| 36 | + "Programming Language :: Python :: 3.11", |
| 37 | + "Programming Language :: Python :: Implementation :: CPython", |
| 38 | + "Programming Language :: Python :: Implementation :: PyPy", |
| 39 | + "Topic :: Software Development :: Quality Assurance", |
| 40 | + "Topic :: Software Development :: Testing", |
| 41 | + "Topic :: Utilities", |
32 | 42 | ]
|
33 |
| -packages = [ |
34 |
| - { include = "pytest_html", from = "src" }, |
| 43 | +dependencies = [ |
| 44 | + "pytest>=7.0.0", |
| 45 | + "pytest-metadata>=2.0.2", |
| 46 | + "Jinja2>=3.0.0", |
35 | 47 | ]
|
36 |
| -include = [ |
37 |
| - { path = "testing", format = "sdist" }, |
38 |
| - { path = "docs", format = "sdist" }, |
39 |
| - "src/pytest_html/resources", |
40 |
| - "src/pytest_html/resources/app.js", |
| 48 | +dynamic = [ |
| 49 | + "version", |
41 | 50 | ]
|
42 | 51 |
|
43 |
| -[tool.poetry.dependencies] |
44 |
| -python = ">=3.7" |
45 |
| -pytest = ">=7.0.0" |
46 |
| -pytest-metadata = ">=2.0.2" |
47 |
| -Jinja2 = ">=3.0.0" |
| 52 | +[project.optional-dependencies] |
| 53 | +test = [ |
| 54 | + "assertpy>=1.1", |
| 55 | + "beautifulsoup4>=4.11.1", |
| 56 | + "black>=22.1.0", |
| 57 | + "flake8>=4.0.1", |
| 58 | + "pre-commit>=2.17.0", |
| 59 | + "pytest-xdist>=2.4.0", |
| 60 | + "pytest-mock>=3.7.0", |
| 61 | + "selenium>=4.3.0", |
| 62 | + "tox>=3.24.5", |
| 63 | +] |
| 64 | + |
| 65 | +[project.urls] |
| 66 | +Homepage = "https://github.com/pytest-dev/pytest-html" |
| 67 | +Tracker = "https://github.com/pytest-dev/pytest-html/issues" |
| 68 | +Source = "https://github.com/pytest-dev/pytest-html" |
| 69 | + |
| 70 | +[project.entry-points.pytest11] |
| 71 | +env = "pytest_html.plugin" |
48 | 72 |
|
49 |
| -[tool.poetry.dev-dependencies] |
50 |
| -assertpy = ">=1.1" |
51 |
| -beautifulsoup4 = ">=4.11.1" |
52 |
| -black = ">=22.1.0" |
53 |
| -flake8 = ">=4.0.1" |
54 |
| -pre-commit = ">=2.17.0" |
55 |
| -pytest-xdist = ">=2.4.0" |
56 |
| -pytest-mock = ">=3.7.0" |
57 |
| -selenium = ">=4.3.0" |
58 |
| -tox = ">=3.24.5" |
| 73 | +[tool.hatch.version] |
| 74 | +source = "vcs" |
59 | 75 |
|
60 |
| -[tool.poetry.plugins.pytest11] |
61 |
| -html = "pytest_html.plugin" |
| 76 | +[tool.hatch.build.targets.wheel] |
| 77 | +exclude = [ |
| 78 | + "src/pytest_html/scripts/*", |
| 79 | +] |
| 80 | + |
| 81 | +[tool.hatch.build.targets.sdist] |
| 82 | +exclude = [ |
| 83 | + "/.github", |
| 84 | +] |
62 | 85 |
|
63 |
| -[tool.setuptools_scm] |
64 |
| -local_scheme = "no-local-version" |
65 |
| -write_to = "src/pytest_html/__version.py" |
| 86 | +[tool.hatch.build.hooks.vcs] |
| 87 | +version-file = "src/pytest_html/__version.py" |
0 commit comments