Skip to content

Commit 1afb44c

Browse files
committed
Moves dev dependencies into optional requirements
1 parent e9652c3 commit 1afb44c

File tree

4 files changed

+15
-36
lines changed

4 files changed

+15
-36
lines changed

.github/workflows/run_tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,5 +63,5 @@ jobs:
6363
- name: Install and Test with pytest
6464
run: |
6565
export PATH="$pythonLocation:$PATH"
66-
python -m pip install -e .[Dev,Orso]
66+
python -m pip install -e .[dev,orso]
6767
pytest tests/ --cov=ratapi --cov-report=term

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ To install in local directory:
1212

1313
matlabengine is an optional dependency only required for Matlab custom functions. The version of matlabengine should match the version of Matlab installed on the machine. This can be installed as shown below:
1414

15-
pip install -e .[Matlab-2023a]
15+
pip install -e .[matlab-2023a]
1616

1717
Development dependencies can be installed as shown below
1818

19-
pip install -e .[Dev]
19+
pip install -e .[dev]
2020

2121
To build wheel:
2222

pyproject.toml

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -16,30 +16,29 @@ dependencies = [
1616
"matplotlib>=3.8.3",
1717
"numpy>=1.20",
1818
"prettytable>=3.9.0",
19-
"pybind11>=2.4",
2019
"pydantic>=2.7.2",
2120
"scipy>=1.13.1",
2221
"strenum>=0.4.15 ; python_full_version < '3.11'",
2322
"tqdm>=4.66.5",
2423
]
2524

2625
[project.optional-dependencies]
26+
dev = [
27+
"pytest>=7.4.0",
28+
"pytest-cov>=4.1.0",
29+
"ruff>=0.4.10"
30+
]
2731
orso = [
2832
"orsopy>=1.2.1",
2933
"pint>=0.24.4"
3034
]
31-
32-
[dependency-groups]
33-
dev = [
34-
{include-group = "lint"},
35-
{include-group = "test"}
36-
]
37-
lint = [
38-
"ruff>=0.4.10"
39-
]
40-
test = [
41-
"pytest>=7.4.0", "pytest-cov>=4.1.0"
42-
]
35+
matlab_latest = ["matlabengine"]
36+
matlab_2025b = ["matlabengine == 25.2.*"]
37+
matlab_2025a = ["matlabengine == 25.1.2"]
38+
matlab_2024b = ["matlabengine == 24.2.2"]
39+
matlab_2024a = ["matlabengine == 24.1.4"]
40+
matlab_2023b = ["matlabengine == 23.2.3"]
41+
matlab_2023a = ["matlabengine == 9.14.3"]
4342

4443
[tool.ruff]
4544
line-length = 120

setup.py

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -165,25 +165,5 @@ def build_libraries(self, libraries):
165165
cmdclass={"build_clib": BuildClib, "build_ext": BuildExt},
166166
libraries=[libevent],
167167
ext_modules=ext_modules,
168-
python_requires=">=3.10",
169-
install_requires=[
170-
"numpy >= 1.20",
171-
"prettytable >= 3.9.0",
172-
"pydantic >= 2.7.2",
173-
"matplotlib >= 3.8.3",
174-
"scipy >= 1.13.1",
175-
"tqdm >= 4.66.5",
176-
],
177-
extras_require={
178-
':python_version < "3.11"': ["StrEnum >= 0.4.15"],
179-
"Dev": ["pytest>=7.4.0", "pytest-cov>=4.1.0", "ruff>=0.4.10"],
180-
"Orso": ["orsopy>=1.2.1", "pint>=0.24.4"],
181-
"Matlab_latest": ["matlabengine"],
182-
"Matlab_2025a": ["matlabengine == 25.1.*"],
183-
"Matlab_2024b": ["matlabengine == 24.2.2"],
184-
"Matlab_2024a": ["matlabengine == 24.1.4"],
185-
"Matlab_2023b": ["matlabengine == 23.2.3"],
186-
"Matlab_2023a": ["matlabengine == 9.14.3"],
187-
},
188168
zip_safe=False,
189169
)

0 commit comments

Comments
 (0)