Skip to content

Commit 996f460

Browse files
committed
chore: Migrate from Poetry to Hatch
1 parent aa9c529 commit 996f460

File tree

5 files changed

+74
-100
lines changed

5 files changed

+74
-100
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,3 +56,5 @@ docs/_build/
5656
assets/
5757

5858
.nyc_output
59+
60+
.venv/

Gruntfile.js

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

pyproject.toml

Lines changed: 72 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -1,65 +1,87 @@
11
[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+
]
47

5-
[tool.poetry]
8+
[project]
69
name = "pytest-html"
710
description = "pytest plugin for generating HTML reports"
8-
version = "4.0.0-rc0"
9-
license = "MPL-2.0"
10-
authors = [
11-
"Dave Hunt <dhunt@mozilla.com>",
12-
"Jim Brannlund <jimbrannlund@fastmail.com>"
13-
]
1411
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"
1714
keywords = [
18-
"pytest",
19-
"html",
20-
"report",
15+
"pytest",
16+
"html",
17+
"report",
18+
]
19+
authors = [
20+
{ name = "Dave Hunt", email = "dhunt@mozilla.com" },
21+
{ name = "Jim Brannlund", email = "jimbrannlund@fastmail.com" },
2122
]
2223
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",
3242
]
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",
3547
]
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",
4150
]
4251

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"
4872

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"
5975

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+
]
6285

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"

setup.cfg

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

setup.py

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

0 commit comments

Comments
 (0)