Skip to content

Commit 78c6bd7

Browse files
committed
Convert setup.cfg to pyproject.toml via ini2toml
Remove setup.py and setup.cfg entirely — pyproject.toml with setuptools backend handles everything. - build-system: setuptools>=61.2 - version + readme: dynamic, read from source - zest.releaser config preserved as [tool."zest.releaser"]
1 parent aa6a72e commit 78c6bd7

4 files changed

Lines changed: 54 additions & 48 deletions

File tree

NEWLINE.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+

pyproject.toml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
[build-system]
2+
requires = ["setuptools>=61.2,<77"]
3+
build-backend = "setuptools.build_meta"
4+
5+
[project]
6+
name = "unittest2pytest"
7+
authors = [{name = "Hartmut Goebel", email = "h.goebel@crazy-compilers.com"}]
8+
license = {text = "GPLv3+"}
9+
description = "Convert unittest test-cases to pytest"
10+
classifiers = [
11+
"Development Status :: 4 - Beta",
12+
"Environment :: Console",
13+
"Intended Audience :: Developers",
14+
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
15+
"Operating System :: OS Independent",
16+
"Programming Language :: Python",
17+
"Programming Language :: Python :: 3",
18+
"Programming Language :: Python :: 3 :: Only",
19+
"Programming Language :: Python :: 3.9",
20+
"Programming Language :: Python :: 3.10",
21+
"Programming Language :: Python :: 3.11",
22+
"Programming Language :: Python :: 3.12",
23+
"Programming Language :: Python :: 3.13",
24+
"Programming Language :: Python :: 3.14",
25+
"Programming Language :: Python :: 3.15",
26+
"Topic :: Software Development",
27+
"Topic :: Utilities",
28+
]
29+
dynamic = ["readme", "version"]
30+
requires-python = ">=3.9"
31+
dependencies = ["fissix"]
32+
33+
[project.urls]
34+
Homepage = "https://github.com/pytest-dev/unittest2pytest"
35+
36+
[project.scripts]
37+
unittest2pytest = "unittest2pytest.__main__:main"
38+
39+
[tool.setuptools]
40+
packages = ["unittest2pytest", "unittest2pytest.fixes"]
41+
zip-safe = false
42+
include-package-data = false
43+
44+
[tool.setuptools.dynamic]
45+
readme = {file = ["README.rst", "NEWLINE.rst", "CHANGELOG.rst"], content-type = "text/x-rst"}
46+
version = {attr = "unittest2pytest.__version__"}
47+
48+
[tool.zest-releaser]
49+
python-file-with-version = "unittest2pytest/__init__.py"
50+
push-changes = false
51+
tag-format = "v{version}"
52+
tag-message = "unittest2pytest {version}"
53+
tag-signing = true

setup.cfg

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

setup.py

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

0 commit comments

Comments
 (0)