Skip to content

Commit d33056c

Browse files
authored
Move to pyproject.toml (#613)
* Migrate from setup.py and setup.cfg to pyproject.toml * Point dependabot at the pyproject file
1 parent 2e6f8d2 commit d33056c

File tree

7 files changed

+71
-108
lines changed

7 files changed

+71
-108
lines changed

.github/dependabot.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ version: 2
44
updates:
55
# Enable version updates for python
66
- package-ecosystem: "pip"
7-
directory: ".github/scripts/"
7+
directory: "/"
88
schedule:
99
interval: "monthly"
1010
labels: ["dependabot"]

.github/scripts/build.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,7 @@ set -e
1919

2020
PYTHON_VERSION=${PYTHON_VERSION:-3.7}
2121

22-
pip install -U -r .github/scripts/requirements.txt
23-
python setup.py develop
22+
pip install -e .[test]
2423
python -m pytest # Run the tests without IPython.
2524
pip install ipython
2625
python -m pytest # Now run the tests with IPython.

.github/scripts/requirements.txt

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

pyproject.toml

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
[build-system]
2+
requires = ["setuptools>=45", "wheel"]
3+
build-backend = "setuptools.build_meta"
4+
5+
[project]
6+
name = "fire"
7+
version = "0.7.1"
8+
description = "A library for automatically generating command line interfaces."
9+
readme = "README.md"
10+
license = {text = "Apache-2.0"}
11+
authors = [
12+
{name = "David Bieber", email = "[email protected]"}
13+
]
14+
classifiers = [
15+
"Development Status :: 4 - Beta",
16+
"Intended Audience :: Developers",
17+
"Topic :: Software Development :: Libraries :: Python Modules",
18+
"Programming Language :: Python",
19+
"Programming Language :: Python :: 3",
20+
"Programming Language :: Python :: 3.7",
21+
"Programming Language :: Python :: 3.8",
22+
"Programming Language :: Python :: 3.9",
23+
"Programming Language :: Python :: 3.10",
24+
"Programming Language :: Python :: 3.11",
25+
"Programming Language :: Python :: 3.12",
26+
"Programming Language :: Python :: 3.13",
27+
"Operating System :: OS Independent",
28+
"Operating System :: POSIX",
29+
"Operating System :: MacOS",
30+
"Operating System :: Unix",
31+
]
32+
keywords = ["command", "line", "interface", "cli", "python", "fire", "interactive", "bash", "tool"]
33+
requires-python = ">=3.7"
34+
dependencies = [
35+
"termcolor",
36+
]
37+
38+
[project.urls]
39+
Homepage = "https://github.com/google/python-fire"
40+
Repository = "https://github.com/google/python-fire"
41+
42+
[project.optional-dependencies]
43+
test = [
44+
"setuptools<=80.9.0",
45+
"pip",
46+
"pylint<3.3.7",
47+
"pytest<=8.3.5",
48+
"pytest-pylint<=1.1.2",
49+
"pytest-runner<7.0.0",
50+
"termcolor<3.2.0",
51+
"hypothesis<6.133.0",
52+
"levenshtein<=0.27.1",
53+
]
54+
55+
[tool.setuptools.packages.find]
56+
include = ["fire*"]
57+
58+
[tool.setuptools.package-data]
59+
fire = ["console/*"]
60+
61+
[tool.pytest.ini_options]
62+
addopts = [
63+
"--ignore=fire/test_components_py3.py",
64+
"--ignore=fire/parser_fuzz_test.py"
65+
]
66+
67+
[tool.pytype]
68+
inputs = "."
69+
output = ".pytype"

requirements.txt

Lines changed: 0 additions & 1 deletion
This file was deleted.

setup.cfg

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

setup.py

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

0 commit comments

Comments
 (0)