Skip to content

Commit 4509e68

Browse files
authored
Convert to hatch and pyproject.toml (#78)
* Converted setup.py to pyproject.toml: used `hatch new --init` and manually added `hatch-vcs` configuration. * Updated `hynek/build-and-inspect-python-package` -- in the end this was the original problem. * Added `dependabot.yml` configuration to avoid this problem in the future. Follow up to #77.
1 parent ebb53a5 commit 4509e68

File tree

5 files changed

+69
-43
lines changed

5 files changed

+69
-43
lines changed

.github/dependabot.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Keep GitHub Actions up to date with GitHub's Dependabot...
2+
# https://docs.github.com/en/code-security/dependabot/working-with-dependabot/keeping-your-actions-up-to-date-with-dependabot
3+
# https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file#package-ecosystem
4+
version: 2
5+
updates:
6+
- package-ecosystem: github-actions
7+
directory: /
8+
groups:
9+
github-actions:
10+
patterns:
11+
- "*" # Group all Actions updates into a single larger pull request
12+
schedule:
13+
interval: weekly

.github/workflows/deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
- uses: actions/checkout@v3
2020

2121
- name: Build and Check Package
22-
uses: hynek/build-and-inspect-python-package@v2.8.0
22+
uses: hynek/build-and-inspect-python-package@v2.13.0
2323

2424
deploy:
2525
needs: package

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
steps:
2222
- uses: actions/checkout@v3
2323
- name: Build and Check Package
24-
uses: hynek/build-and-inspect-python-package@v2.8.0
24+
uses: hynek/build-and-inspect-python-package@v2.13.0
2525

2626
test:
2727
needs: [package]

pyproject.toml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
[build-system]
2+
requires = ["hatchling", "hatch-vcs"]
3+
build-backend = "hatchling.build"
4+
5+
[tool.hatch.version]
6+
source = "vcs"
7+
8+
[tool.hatch.build.targets.sdist]
9+
include = [
10+
"/src",
11+
]
12+
13+
[project]
14+
name = "pytest-reportlog"
15+
dynamic = ["version"]
16+
description = "Replacement for the --resultlog option, focused in simplicity and extensibility"
17+
readme = "README.rst"
18+
license = "MIT"
19+
requires-python = ">=3.9"
20+
authors = [
21+
{ name = "Bruno Oliveira", email = "[email protected]" },
22+
]
23+
keywords = [
24+
"pytest",
25+
]
26+
classifiers = [
27+
"Development Status :: 3 - Alpha",
28+
"Framework :: Pytest",
29+
"Intended Audience :: Developers",
30+
"License :: OSI Approved :: MIT License",
31+
"Operating System :: OS Independent",
32+
"Programming Language :: Python :: 3",
33+
"Programming Language :: Python :: 3.13",
34+
"Programming Language :: Python :: 3.9",
35+
"Programming Language :: Python :: 3.10",
36+
"Programming Language :: Python :: 3.11",
37+
"Programming Language :: Python :: 3.12",
38+
"Topic :: Software Development :: Testing",
39+
]
40+
dependencies = [
41+
"pytest",
42+
]
43+
44+
[project.optional-dependencies]
45+
dev = [
46+
"pre-commit",
47+
"tox",
48+
]
49+
50+
[project.entry-points.pytest11]
51+
pytest_reportlog = "pytest_reportlog.plugin"
52+
53+
[project.urls]
54+
Homepage = "https://github.com/pytest-dev/pytest-reportlog"

setup.py

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

0 commit comments

Comments
 (0)