Skip to content

Commit e70bf51

Browse files
committed
Move buildbackend from setuptools/pbr to hatchling
1 parent 69a8175 commit e70bf51

File tree

11 files changed

+122
-63
lines changed

11 files changed

+122
-63
lines changed

.github/workflows/python-package.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
- name: Install dependencies
2323
run: |
2424
python -m pip install --upgrade pip
25-
python -m pip install testtools pbr ruff
25+
python -m pip install testtools ruff
2626
- name: Run ruff
2727
run: |
2828
python -m ruff check .

.gitignore

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
TAGS
22
tags
33
lib/testtools
4-
MANIFEST
54
build
65
dist
76
*~
@@ -11,5 +10,5 @@ testscenarios.egg-info
1110
*.pyc
1211
__pycache__
1312
*.egg
14-
ChangeLog
15-
AUTHORS
13+
testscenarios/_version.py
14+
tox.ini

AUTHORS

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
Ben Finney <ben+python@benfinney.id.au>
2+
James Polley <jamezpolley@gmail.com>
3+
Jelmer Vernooij <jelmer@jelmer.uk>
4+
Jürgen Gmach <juergen.gmach@canonical.com>
5+
Martin Pool <mbp@sourcefrog.net>
6+
Robert Collins <robertc@robertcollins.net>

ChangeLog

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
CHANGES
2+
=======
3+
4+
unreleased
5+
----------
6+
7+
* move build backend from setuptools/pbr to hatchling
8+
* Claim support for Python 3.8 - 3.13
9+
* Make ruff clean
10+
* Run ruff in CI
11+
* Rename README to README.rst, for better rendering on GitHub
12+
* Drop travis config
13+
* Create GitHub CI workflow (python-package.yml)
14+
15+
0.5
16+
---
17+
18+
* Release 0.5
19+
* Migrate to git
20+
* CHANGES -------
21+
* 0.4 ~~~
22+
* Release 0.3 (and fixup NEWS)
23+
* \* \`\`TestWithScenarios\`\` is now backed by a mixin - WithScenarios - which can be mixed into different unittest implementations more cleanly (e.g. unittest2). (James Polley, Robert Collins)
24+
* \* New function \`\`per\_module\_scenarios\`\` for tests that should be applied across multiple modules providing the same interface, some of which may not be available at run time. (Martin Pool, Robert Collins)
25+
* Rename TestWithScenarios as MixableTestWithScenarios
26+
* Add per\_module\_scenarios
27+
* Add multiply\_scenarios
28+
* Support both python2.7 and bzr load\_tests argument lists
29+
* Add load\_tests\_apply\_scenarios
30+
* Improve setup.py to setup pypi web pages better
31+
* Append scenario name to test case short description
32+
* TestApplyScenarios: Use separate tests for distinct assertions
33+
* Switch license to BSD / Apache-2.0 and do a 0.1 release
34+
* Dist everything via sdist
35+
* Start running tests using testtools
36+
* make check now runs doctests and they pass; documentation is therefore more correct
37+
* Turn title into a ReST title
38+
* Add a brief advice section
39+
* ReST corrections
40+
* NEWS update
41+
* Support debug() on TestWithScenarios
42+
* Support countTestCases in TestWithScenarios
43+
* Factor out all the individual components of generate\_tests
44+
* Write generate\_scenarios
45+
* TestWithScenarios.run now sets attributes too, and includes some docstring docs
46+
* TestWithScenarios now honours the scenarios list as far as cloning and renaming tests goes
47+
* Really test that TestWithScenarios succeeds with no scenarios
48+
* Start on TestWithScenarios
49+
* Add a HACKING file
50+
* Write some fiction

MANIFEST.in

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

Makefile

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,4 @@ TAGS: testscenarios/*.py testscenarios/tests/*.py
1616
tags: testscenarios/*.py testscenarios/tests/*.py
1717
ctags -R testscenarios/
1818

19-
release:
20-
python setup.py sdist bdist_wheel upload -s
21-
22-
.PHONY: all check release
19+
.PHONY: all check

pyproject.toml

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
[build-system]
2+
requires = ["hatchling", "hatch-vcs"]
3+
build-backend = "hatchling.build"
4+
5+
[project]
6+
name = "testscenarios"
7+
description = "Testscenarios, a pyunit extension for dependency injection"
8+
readme = "README.rst"
9+
classifiers = [
10+
"Development Status :: 6 - Mature",
11+
"Intended Audience :: Developers",
12+
"License :: OSI Approved :: BSD License",
13+
"License :: OSI Approved :: Apache Software License",
14+
"Operating System :: OS Independent",
15+
"Programming Language :: Python",
16+
"Programming Language :: Python :: 3",
17+
"Programming Language :: Python :: 3.8",
18+
"Programming Language :: Python :: 3.9",
19+
"Programming Language :: Python :: 3.10",
20+
"Programming Language :: Python :: 3.11",
21+
"Programming Language :: Python :: 3.12",
22+
"Programming Language :: Python :: 3.13",
23+
"Topic :: Software Development :: Quality Assurance",
24+
"Topic :: Software Development :: Testing",
25+
]
26+
authors = [{name = "Testing-cabal", email = "testing-cabal@lists.launchpad.net"}]
27+
license = {text = "Apache-2.0 or BSD"}
28+
requires-python = ">=3.8"
29+
dynamic = ["version"]
30+
31+
[project.urls]
32+
Homepage = "https://launchpad.net/testscenarios"
33+
"Bug Tracker" = "https://bugs.launchpad.net/testscenarios"
34+
"Source Code" = "https://github.com/testing-cabal/testscenarios"
35+
36+
[project.optional-dependencies]
37+
"test" = ["testtools"]
38+
39+
[tool.hatch.version]
40+
source = "vcs"
41+
42+
[tool.hatch.build.hooks.vcs]
43+
version-file = "testscenarios/_version.py"
44+
45+
[tool.hatch.build.targets.sdist]
46+
include = [
47+
"testscenarios*",
48+
"APACHE-2.0",
49+
"AUTHORS",
50+
"BSD",
51+
"ChangeLog",
52+
"COPYING",
53+
"GOALS",
54+
"HACKING",
55+
"Makefile",
56+
"NEWS",
57+
"README.rst",
58+
"tox.ini",
59+
"doc/*.py",
60+
]

requirements.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
pbr >= 0.11
21
testtools

setup.cfg

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

setup.py

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

0 commit comments

Comments
 (0)