Skip to content

Commit

Permalink
Switch to Hatch
Browse files Browse the repository at this point in the history
  • Loading branch information
jwodder committed Nov 19, 2023
1 parent 09cd549 commit 95049be
Show file tree
Hide file tree
Showing 8 changed files with 79 additions and 71 deletions.
10 changes: 10 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
version: 2
updates:
- package-ecosystem: pip
directory: /
schedule:
interval: weekly
commit-message:
prefix: "[python]"
labels:
- dependencies
- d:python

- package-ecosystem: github-actions
directory: /
schedule:
Expand Down
9 changes: 0 additions & 9 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,16 +1,7 @@
*.egg
*.egg-info/
*.pyc
.cache/
.coverage*
.eggs/
.mypy_cache/
.nox/
.pytest_cache/
.tox/
__pycache__/
build/
dist/
docs/.doctrees/
docs/_build/
venv/
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
v0.5.0 (in development)
-----------------------
- Migrated from setuptools to hatch

v0.4.0 (2023-10-21)
-------------------
Expand Down
6 changes: 0 additions & 6 deletions MANIFEST.in

This file was deleted.

67 changes: 65 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,66 @@
[build-system]
requires = ["setuptools >= 46.4.0"]
build-backend = "setuptools.build_meta"
requires = ["hatchling"]
build-backend = "hatchling.build"

[project]
name = "pytest-fail-slow"
dynamic = ["version"]
description = "Fail tests that take too long to run"
readme = "README.rst"
requires-python = ">=3.7"
license = "MIT"
license-files = { paths = ["LICENSE"] }
authors = [
{ name = "John Thorvald Wodder II", email = "pytest-fail-slow@varonathe.org" }
]

keywords = [
"pytest",
"slow tests",
"timeout",
]

classifiers = [
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"License :: OSI Approved :: MIT License",
"Environment :: Plugins",
"Framework :: Pytest",
"Intended Audience :: Developers",
"Topic :: Software Development :: Testing",
]

dependencies = [
"pytest >= 6.0",
]

[project.entry-points."pytest11"]
fail-slow = "pytest_fail_slow"

[project.urls]
"Source Code" = "https://github.com/jwodder/pytest-fail-slow"
"Bug Tracker" = "https://github.com/jwodder/pytest-fail-slow/issues"

[tool.hatch.version]
path = "pytest_fail_slow.py"

[tool.hatch.build.targets.sdist]
include = [
"/docs",
"/pytest_fail_slow.py",
"/test",
"CHANGELOG.*",
"CONTRIBUTORS.*",
"tox.ini",
]

[tool.hatch.envs.default]
python = "3"
File renamed without changes.
50 changes: 0 additions & 50 deletions setup.cfg

This file was deleted.

7 changes: 3 additions & 4 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ deps =
flake8-builtins
flake8-unused-arguments
commands =
flake8 src test
flake8 pytest_fail_slow.py test

[pytest]
filterwarnings =
Expand All @@ -41,8 +41,8 @@ source = pytest_fail_slow

[coverage:paths]
source =
src
.tox/**/site-packages
pytest_fail_slow.py
.tox/**/site-packages/pytest_fail_slow.py

[coverage:report]
precision = 2
Expand All @@ -69,4 +69,3 @@ lines_between_sections = 0
profile = black
reverse_relative = True
sort_relative_in_force_sorted_sections = True
src_paths = src

0 comments on commit 95049be

Please sign in to comment.