Skip to content

Commit eae04c4

Browse files
authored
ref: consolidate all dev requirements (#7352)
1 parent c3a81af commit eae04c4

File tree

6 files changed

+20
-20
lines changed

6 files changed

+20
-20
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,12 @@ jobs:
4545
with:
4646
path: ~/.cache/pre-commit
4747
key: cache-epoch-1|${{ env.pythonLocation }}|${{ hashFiles('.pre-commit-config.yaml') }}
48-
- name: Setup pre-commit
49-
run: make setup-git
5048
- name: Install dependencies
5149
run: |
5250
python -m pip install --upgrade pip
53-
make install-python-dependencies
51+
python -m pip install -r requirements-test.txt
52+
- name: Setup pre-commit
53+
run: make setup-git
5454
- uses: getsentry/paths-filter@v2
5555
id: files
5656
with:
@@ -441,4 +441,4 @@ jobs:
441441
- uses: getsentry/action-validate-devservices-config@02a078d1280293e6598cabfbd318a01609c12c83
442442
name: Validate devservices config
443443
with:
444-
requirements-file-path: requirements.txt
444+
requirements-file-path: requirements-test.txt

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ reset-python:
99
rm -rf .venv
1010
.PHONY: reset-python
1111

12-
develop: install-python-dependencies install-brew-dev install-rs-dev setup-git
12+
develop: install-python-dependencies install-brew-dev install-rs-dev
13+
make setup-git
1314

1415
setup-git:
1516
mkdir -p .git/hooks && cd .git/hooks && ln -sf ../../config/hooks/* ./
16-
pip install 'pre-commit==3.6.0'
1717
pre-commit install --install-hooks
1818

1919
test:

docs/source/contributing/environment.rst

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,7 @@ Clone this repo into your workspace::
4040
These commands set up the Python virtual environment::
4141

4242
cd snuba
43-
python -m venv .venv
44-
source .venv/bin/activate
45-
pip install --upgrade pip==22.2.2
46-
make develop
43+
devenv sync
4744

4845
This command starts the Snuba api, which is capable of processing queries::
4946

@@ -59,7 +56,7 @@ Running tests
5956

6057
This command runs unit and integration tests::
6158

62-
make develop (if you have not run it already)
59+
devenv sync (if you have not run it already)
6360
make test
6461

6562
Running sentry tests against snuba

requirements-test.txt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
--index-url https://pypi.devinfra.sentry.io/simple
22

3+
pre-commit==3.6.0
4+
5+
black==24.3.0
6+
devservices==1.2.1
7+
flake8==7.0.0
8+
freezegun==1.2.2
9+
honcho==1.1.0
10+
pytest==8.3.3
11+
pytest-cov==4.1.0
12+
pytest-watch==4.2.0
313
time-machine==2.13.0
414

515
# for typing

requirements.txt

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,14 @@
11
--index-url https://pypi.devinfra.sentry.io/simple
22

3-
black==24.3.0
43
blinker==1.5
54
click==8.1.7
65
clickhouse-driver==0.2.9
76
confluent-kafka==2.7.0
87
datadog==0.21.0
9-
devservices==1.2.1
10-
flake8==7.0.0
118
Flask==2.2.5
129
google-cloud-storage==2.18.0
1310
googleapis-common-protos==1.63.2
1411
google-api-core==2.19.1
15-
honcho==1.1.0
1612
python-jose[cryptography]==3.3.0
1713
jsonschema==4.23.0
1814
fastjsonschema==2.16.2
@@ -21,9 +17,6 @@ parsimonious==0.10.0
2117
progressbar2==4.2.0
2218
protobuf==5.29.5
2319
proto-plus==1.24.0
24-
pytest==8.3.3
25-
pytest-cov==4.1.0
26-
pytest-watch==4.2.0
2720
python-dateutil==2.8.2
2821
python-rapidjson==1.8
2922
redis==4.5.4
@@ -46,4 +39,3 @@ PyYAML==6.0
4639
sqlparse==0.5.0
4740
google-api-python-client==2.88.0
4841
sentry-usage-accountant==0.0.11
49-
freezegun==1.2.2

snuba/cli/devserver.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
from subprocess import call, list2cmdline
44

55
import click
6-
from honcho.manager import Manager
76

87
from snuba import settings
98

@@ -24,6 +23,8 @@
2423
def devserver(*, bootstrap: bool, workers: bool, log_level: str) -> None:
2524
"Starts all Snuba processes for local development."
2625

26+
from honcho.manager import Manager
27+
2728
os.environ["PYTHONUNBUFFERED"] = "1"
2829

2930
if bootstrap:

0 commit comments

Comments
 (0)