Skip to content

Commit dc5d36e

Browse files
MHendrickserikstantoncarlson
authored andcommitted
Single source requirements from requirements txt files
1 parent 4b4479c commit dc5d36e

File tree

3 files changed

+15
-31
lines changed

3 files changed

+15
-31
lines changed

pyproject.toml

Lines changed: 8 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,7 @@ classifiers = [
2424
"Programming Language :: Python :: Implementation :: PyPy",
2525
]
2626
requires-python = ">=3.7"
27-
dependencies = [
28-
"click>=7.1.2",
29-
"hab>=0.41.0",
30-
"Pygments",
31-
"Qt.py",
32-
]
33-
dynamic = ["version"]
27+
dynamic = ["dependencies", "optional-dependencies", "version"]
3428

3529
[project.readme]
3630
file = "README.md"
@@ -41,26 +35,6 @@ Homepage = "https://github.com/blurstudio/hab-gui"
4135
Source = "https://github.com/blurstudio/hab-gui"
4236
Tracker = "https://github.com/blurstudio/hab-gui/issues"
4337

44-
[project.optional-dependencies]
45-
dev = [
46-
"black==22.12.0",
47-
"build",
48-
"covdefaults",
49-
"coverage",
50-
"flake8==5.0.4",
51-
"flake8-bugbear==22.12.6",
52-
"Flake8-pyproject",
53-
"isort",
54-
"json5",
55-
"pep8-naming==0.13.3",
56-
"pytest",
57-
"tox",
58-
"build",
59-
]
60-
json5 = [
61-
"pyjson5"
62-
]
63-
6438
[project.gui-scripts]
6539
habw = "hab.cli:cli"
6640

@@ -69,6 +43,13 @@ include-package-data = true
6943
platforms = ["any"]
7044
license-files = ["LICENSE"]
7145

46+
[tool.setuptools.dynamic]
47+
dependencies = {file = ["requirements.txt"]}
48+
49+
[tool.setuptools.dynamic.optional-dependencies]
50+
dev = {file = ["requirements-dev.txt"]}
51+
json5 = {file = ["requirements-json5.txt"]}
52+
7253
[tool.setuptools.packages.find]
7354
exclude = ["tests"]
7455
namespaces = false

requirements-dev.txt

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
1-
black
1+
black==22.12.0
22
build
33
covdefaults
44
coverage
5-
flake8
6-
flake8-bugbear
5+
flake8==5.0.4
6+
flake8-bugbear==22.12.6
77
Flake8-pyproject
8-
pep8-naming
8+
isort
9+
json5
10+
pep8-naming==0.13.3
911
pytest
1012
tox

requirements-json5.txt

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

0 commit comments

Comments
 (0)