Skip to content

Commit 0027176

Browse files
committed
Using new guidata.utils.genreqs features (guidata 3.11)
1 parent f6a447d commit 0027176

9 files changed

Lines changed: 88 additions & 49 deletions

.vscode/tasks.json

Lines changed: 24 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -288,16 +288,18 @@
288288
"type": "shell",
289289
},
290290
{
291-
"label": "Update requirements.txt",
292-
"command": "toml-to-req",
291+
"label": "Generate requirements",
292+
"command": "${command:python.interpreterPath}",
293293
"args": [
294-
"--toml-file",
295-
"pyproject.toml",
296-
"--optional-lists",
297-
"qt,opencv,dev,doc,test",
294+
"-m",
295+
"guidata.utils.genreqs",
296+
"all",
298297
],
299298
"options": {
300299
"cwd": "${workspaceFolder}",
300+
"env": {
301+
"PYTHONPATH": "C:/Dev/Projets/guidata",
302+
},
301303
"statusbar": {
302304
"hide": true
303305
}
@@ -373,7 +375,11 @@
373375
"panel": "dedicated",
374376
"showReuseMessage": true,
375377
"clear": true
376-
}
378+
},
379+
"dependsOrder": "sequence",
380+
"dependsOn": [
381+
"Generate requirements",
382+
]
377383
},
378384
{
379385
"label": "Run pytest on all environments",
@@ -588,7 +594,11 @@
588594
"panel": "shared",
589595
"showReuseMessage": true,
590596
"clear": true
591-
}
597+
},
598+
"dependsOrder": "sequence",
599+
"dependsOn": [
600+
"Generate requirements",
601+
]
592602
},
593603
{
594604
"label": "HTML doc: quick preview",
@@ -653,7 +663,11 @@
653663
"panel": "shared",
654664
"showReuseMessage": true,
655665
"clear": true
656-
}
666+
},
667+
"dependsOrder": "sequence",
668+
"dependsOn": [
669+
"Generate requirements",
670+
]
657671
},
658672
{
659673
"label": "GitHub Pages: preview",
@@ -764,6 +778,7 @@
764778
},
765779
"dependsOrder": "sequence",
766780
"dependsOn": [
781+
"Generate requirements",
767782
"Build PDF documentation"
768783
]
769784
},

MANIFEST.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,5 @@ include conftest.py
66
include CHANGELOG.md
77
include CONTRIBUTING.md
88
include requirements.txt
9+
include requirements-min.txt
910
include *.desktop

doc/requirements.rst

Lines changed: 33 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
The :mod:`cdl` package requires the following Python modules:
1+
The `cdl` package requires the following Python modules:
22

33
.. list-table::
44
:header-rows: 1
@@ -16,6 +16,9 @@ The :mod:`cdl` package requires the following Python modules:
1616
* - PlotPy
1717
- >= 2.7.4
1818
- Curve and image plotting tools for Python/Qt applications
19+
* - NumPy
20+
- >=1.19
21+
- Fundamental package for array computing in Python
1922
* - SciPy
2023
- >= 1.5
2124
- Fundamental algorithms for scientific computing in Python
@@ -34,8 +37,21 @@ The :mod:`cdl` package requires the following Python modules:
3437
* - packaging
3538
- >= 20.0
3639
- Core utilities for Python packages
40+
* - tomli
41+
-
42+
- A lil' TOML parser
43+
44+
Optional modules for GUI support (Qt):
45+
46+
.. list-table::
47+
:header-rows: 1
48+
:align: left
49+
50+
* - Name
51+
- Version
52+
- Summary
3753
* - PyQt5
38-
- >=5.11
54+
-
3955
- Python bindings for the Qt cross platform application toolkit
4056

4157
Optional modules for development:
@@ -48,22 +64,22 @@ Optional modules for development:
4864
- Version
4965
- Summary
5066
* - babel
51-
-
67+
-
5268
- Internationalization utilities
5369
* - Coverage
54-
-
70+
-
5571
- Code coverage measurement for Python
5672
* - pyinstaller
5773
- >=6.0
5874
- PyInstaller bundles a Python application and all its dependencies into a single package.
5975
* - pylint
60-
-
76+
-
6177
- python code static checker
6278
* - ruff
63-
-
79+
-
6480
- An extremely fast Python linter and code formatter, written in Rust.
6581
* - toml-to-requirements
66-
-
82+
-
6783
- Convert a pyproject.toml file to a requirements.txt file
6884

6985
Optional modules for building the documentation:
@@ -76,28 +92,28 @@ Optional modules for building the documentation:
7692
- Version
7793
- Summary
7894
* - PyQt5
79-
-
95+
-
8096
- Python bindings for the Qt cross platform application toolkit
8197
* - sphinx
82-
-
98+
-
8399
- Python documentation generator
84100
* - sphinx_intl
85-
-
101+
-
86102
- Sphinx utility that make it easy to translate and to apply translation.
87103
* - sphinx-sitemap
88-
-
104+
-
89105
- Sitemap generator for Sphinx
90106
* - myst_parser
91-
-
107+
-
92108
- An extended [CommonMark](https://spec.commonmark.org/) compliant parser,
93109
* - sphinx_design
94-
-
110+
-
95111
- A sphinx extension for designing beautiful, view size responsive web components.
96112
* - sphinx-copybutton
97-
-
113+
-
98114
- Add a copy button to each of your code cells.
99115
* - pydata-sphinx-theme
100-
-
116+
-
101117
- Bootstrap-based Sphinx theme from the PyData community
102118

103119
Optional modules for running test suite:
@@ -110,8 +126,8 @@ Optional modules for running test suite:
110126
- Version
111127
- Summary
112128
* - pytest
113-
-
129+
-
114130
- pytest: simple powerful testing with Python
115131
* - pytest-xvfb
116-
-
132+
-
117133
- A pytest plugin to run Xvfb (or Xephyr/Xvnc) for tests.

doc/update_requirements.py

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

requirements-min.txt

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
Coverage
2+
NumPy==1.19
3+
PlotPy==2.7.4
4+
PyQt5
5+
PyWavelets==1.1
6+
SciPy==1.5
7+
babel
8+
guidata==3.10
9+
myst_parser
10+
opencv-python-headless==4.5
11+
packaging==20.0
12+
pandas==1.2
13+
psutil==5.7
14+
pydata-sphinx-theme
15+
pyinstaller==6.0
16+
pylint
17+
pytest
18+
pytest-xvfb
19+
ruff
20+
scikit-image==0.18
21+
sphinx
22+
sphinx-copybutton
23+
sphinx-sitemap
24+
sphinx_design
25+
sphinx_intl
26+
toml-to-requirements
27+
tomli

requirements.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
Coverage
2+
NumPy>=1.19
23
PlotPy >= 2.7.4
34
PyQt5
45
PyWavelets >= 1.1
@@ -22,4 +23,5 @@ sphinx-copybutton
2223
sphinx-sitemap
2324
sphinx_design
2425
sphinx_intl
25-
toml-to-requirements
26+
toml-to-requirements
27+
tomli

scripts/build_doc.bat

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ call %FUNC% SetPythonPath
1414
call %FUNC% UsePython
1515
call %FUNC% GetVersion CDL_VERSION
1616
cd %SCRIPTPATH%\..
17-
%PYTHON% doc\update_requirements.py
1817
%PYTHON% doc\update_validation_status.py
1918
%PYTHON% doc\update_processor_methods.py
2019

scripts/build_ghpages.bat

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ call %FUNC% SetPythonPath
2929
call %FUNC% UsePython
3030
call %FUNC% GetVersion CDL_VERSION
3131
cd %SCRIPTPATH%\..
32-
%PYTHON% doc\update_requirements.py
3332
%PYTHON% doc\update_validation_status.py
3433
%PYTHON% doc\update_processor_methods.py
3534

scripts/update_doc_resources.bat

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,5 @@ call %~dp0utils GetScriptPath SCRIPTPATH
1111
call %FUNC% SetPythonPath
1212
call %FUNC% UsePython
1313
cd %SCRIPTPATH%\..
14-
%PYTHON% doc\update_requirements.py
1514
%PYTHON% doc\update_validation_status.py
1615
%PYTHON% doc\update_processor_methods.py

0 commit comments

Comments
 (0)