Skip to content

Commit 5a9de95

Browse files
committed
Single source all pip requirements from requirements*.txt files
1 parent 583298e commit 5a9de95

File tree

8 files changed

+32
-43
lines changed

8 files changed

+32
-43
lines changed

MANIFEST.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
graft preditor/resource
22
graft preditor/dccs
33
recursive-include preditor *.ui
4+
recursive-exclude tests *

pyproject.toml

Lines changed: 15 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -14,23 +14,14 @@ license = {text = "LGPL-3.0"}
1414
classifiers = [
1515
"Development Status :: 5 - Production/Stable",
1616
"Intended Audience :: Developers",
17-
"License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)",
1817
"Operating System :: OS Independent",
1918
"Programming Language :: Python",
2019
"Programming Language :: Python :: 3",
2120
"Programming Language :: Python :: Implementation :: CPython",
2221
"Programming Language :: Python :: Implementation :: PyPy",
2322
]
2423
requires-python = ">=3.7"
25-
dependencies = [
26-
"Qt.py>=1.4.4",
27-
"chardet",
28-
"configparser>=4.0.2",
29-
"future>=0.18.2",
30-
"signalslot>=0.1.2",
31-
"importlib-metadata>=4.8.3",
32-
]
33-
dynamic = ["version"]
24+
dynamic = ["dependencies", "optional-dependencies", "version"]
3425

3526
[project.readme]
3627
file = "README.md"
@@ -41,33 +32,6 @@ Homepage = "https://github.com/blurstudio/PrEditor"
4132
Source = "https://github.com/blurstudio/PrEditor"
4233
Tracker = "https://github.com/blurstudio/PrEditor/issues"
4334

44-
[project.optional-dependencies]
45-
cli = [
46-
"click>=7.1.2",
47-
"click-default-group",
48-
]
49-
dev = [
50-
"black",
51-
"build",
52-
"covdefaults",
53-
"coverage",
54-
"flake8",
55-
"flake8-bugbear",
56-
"Flake8-pyproject",
57-
"pep8-naming",
58-
"pytest",
59-
"tox",
60-
]
61-
shortcut = [
62-
"casement>=0.1.0;platform_system=='Windows'",
63-
]
64-
qsci5 = [
65-
"QScintilla",
66-
]
67-
qsci6 = [
68-
"PyQt6-QScintilla",
69-
]
70-
7135
[project.scripts]
7236
preditor = "preditor.cli:cli"
7337

@@ -87,15 +51,25 @@ QScintilla = "preditor.gui.workboxwidget:WorkboxWidget"
8751
[project.entry-points."preditor.plug.logging_handlers"]
8852
PrEditor = "preditor.gui.logger_window_handler:LoggerWindowHandler"
8953

90-
9154
[tool.setuptools]
92-
include-package-data = true
9355
platforms = ["any"]
9456
license-files = ["LICENSE"]
9557

58+
[tool.setuptools.dynamic]
59+
dependencies = {file = ["requirements.txt"]}
60+
61+
[tool.setuptools.dynamic.optional-dependencies]
62+
cli = {file = ["requirements-cli.txt"]}
63+
dev = {file = ["requirements-dev.txt"]}
64+
qsci5 = {file = ["requirements-qsci5.txt"]}
65+
qsci6 = {file = ["requirements-qsci6.txt"]}
66+
shortcut = {file = ["requirements-shortcut.txt"]}
67+
9668
[tool.setuptools.packages.find]
97-
exclude = ["tests"]
98-
namespaces = false
69+
exclude = [
70+
"examples",
71+
"tests",
72+
]
9973

10074
[tool.setuptools_scm]
10175
write_to = "preditor/version.py"

requirements-cli.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
click>=7.1.2
2+
click-default-group

requirements-dev.txt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
black
2+
build
3+
covdefaults
4+
coverage
5+
flake8
6+
flake8-bugbear
7+
Flake8-pyproject
8+
pep8-naming
9+
pytest
10+
tox

requirements-qsci5.txt

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

requirements-qsci6.txt

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

requirements-shortcut.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
casement>=0.1.0;platform_system=='Windows'

requirements.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
build
21
chardet
32
configparser>=4.0.2
43
future>=0.18.2
54
importlib-metadata>=4.8.3
6-
Qt.py
5+
Qt.py>=1.4.4
76
signalslot>=0.1.2

0 commit comments

Comments
 (0)