Skip to content

Commit 6372464

Browse files
committed
Update dependency locations
1 parent 47250c1 commit 6372464

File tree

9 files changed

+45
-55
lines changed

9 files changed

+45
-55
lines changed

.github/workflows/code-check.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,7 @@ jobs:
3939
- name: Install dependencies
4040
run: |
4141
python -m pip install --upgrade pip
42-
pip install -r requirements.txt
43-
pip install -r requirements-dev.txt
44-
45-
- name: Install SingleStore package
46-
run: |
47-
pip install .
42+
pip install -e ".[dev]"
4843
4944
- name: Check for changes in monitored directories
5045
id: check-changes

.github/workflows/coverage.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,7 @@ jobs:
3333
- name: Install dependencies
3434
run: |
3535
python -m pip install --upgrade pip
36-
pip install -r requirements.txt
37-
pip install -r requirements-dev.txt
38-
39-
- name: Install SingleStore package
40-
run: |
41-
pip install .
36+
pip install -e ".[dev]"
4237
4338
- name: Run MySQL protocol tests
4439
run: |

.github/workflows/fusion-docs.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,6 @@ jobs:
2727
run: |
2828
python --version
2929
python -m pip install --upgrade pip
30-
pip install -r requirements.txt
31-
32-
- name: Install package
33-
run: |
3430
pip install .
3531
3632
- name: Build Fusion docs

.github/workflows/publish.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
run: |
4040
python --version
4141
python -m pip install --upgrade pip
42-
pip install -r requirements.txt
42+
pip install .
4343
4444
- name: Initialize database
4545
id: initialize-database
@@ -78,8 +78,7 @@ jobs:
7878
- name: Install dependencies
7979
run: |
8080
python -m pip install --upgrade pip
81-
pip install -r requirements.txt
82-
pip install -r requirements-dev.txt
81+
pip install -e ".[dev]"
8382
8483
- name: Build sdist
8584
if: runner.os == 'Linux'
@@ -211,7 +210,7 @@ jobs:
211210
run: |
212211
python --version
213212
python -m pip install --upgrade pip
214-
pip install -r requirements.txt
213+
pip install .
215214
216215
- name: Drop database
217216
if: ${{ always() }}

.github/workflows/smoke-test.yml

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
run: |
2525
python --version
2626
python -m pip install --upgrade pip
27-
pip install -r requirements.txt
27+
pip install .
2828
2929
- name: Initialize database
3030
id: initialize-database
@@ -111,12 +111,7 @@ jobs:
111111
- name: Install dependencies
112112
run: |
113113
python -m pip install --upgrade pip
114-
pip install -r requirements.txt
115-
pip install -r requirements-dev.txt
116-
117-
- name: Install SingleStore package
118-
run: |
119-
pip install . --no-build-isolation
114+
pip install -e ".[dev]" --no-build-isolation
120115
121116
- name: Run tests
122117
if: ${{ matrix.driver != 'https' }}
@@ -151,7 +146,7 @@ jobs:
151146
run: |
152147
python --version
153148
python -m pip install --upgrade pip
154-
pip install -r requirements.txt
149+
pip install .
155150
156151
- name: Drop database
157152
if: ${{ always() }}

CONTRIBUTING.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,13 @@ pre-commit run --all-files
2727

2828
To create a test environment, do the following:
2929
```
30-
pip install -r requirements.txt
31-
pip install -r requirements-dev.txt
30+
pip install -e ".[dev]"
31+
```
32+
33+
Or if you only need specific dependency groups:
34+
```
35+
pip install -e ".[test]" # Just testing dependencies
36+
pip install -e ".[docs]" # Just documentation dependencies
3237
```
3338

3439
If you have Docker installed, you can run the tests as follows. Note that

pyproject.toml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,36 @@ rsa = ["cryptography"]
4343
sqlalchemy = ["sqlalchemy-singlestoredb>=1.0.0"]
4444
vectorstore = ["singlestore-vectorstore>=0.1.2"]
4545

46+
# Development dependency groups
47+
test = [
48+
"coverage",
49+
"dash",
50+
"fastapi",
51+
"ipython",
52+
"jupysql",
53+
"pandas",
54+
"parameterized",
55+
"polars",
56+
"pyarrow",
57+
"pydantic",
58+
"pytest",
59+
"pytest-cov",
60+
"singlestore-vectorstore>=0.1.2",
61+
"uvicorn",
62+
]
63+
docs = [
64+
"sphinx",
65+
"sphinx_rtd_theme",
66+
]
67+
build = [
68+
"build",
69+
"setuptools>=61.0",
70+
"wheel",
71+
]
72+
dev = [
73+
"singlestoredb[test,docs,build]",
74+
]
75+
4676
[project.entry-points.pytest11]
4777
singlestoredb = "singlestoredb.pytest"
4878

requirements-dev.txt

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

requirements.txt

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

0 commit comments

Comments
 (0)