8000 Add devenv-requirements.txt and update env setup instructions · getsentry/sentry-python@95a6403 · GitHub
[go: up one dir, main page]

Skip to content

Commit 95a6403

Browse files
committed
Add devenv-requirements.txt and update env setup instructions
This is a quick fix for #2760. It's far from ideal, but it's quick.
1 parent b85cd10 commit 95a6403

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

CONTRIBUTING.md

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ This file outlines the process to contribute to the SDK itself. For contributing
88

99
Please search the [issue tracker](https://github.com/getsentry/sentry-python/issues) before creating a new issue (a problem or an improvement request). Please also ask in our [Sentry Community on Discord](https://discord.com/invite/Ww9hbqr) before submitting a new issue. There are a ton of great people in our Discord community ready to help you!
1010

11-
1211
## Submitting Changes
1312

1413
- Fork the `sentry-python` repo and prepare your changes.
@@ -64,7 +63,7 @@ This will make sure that your commits will have the correct coding style.
6463
```bash
6564
cd sentry-python
6665

67-
pip install -r linter-requirements.txt
66+
pip install -r devenv-requirements.txt
6867

6968
pip install pre-commit
7069

@@ -75,12 +74,8 @@ That's it. You should be ready to make changes, run tests, and make commits! If
7574

7675
## Running Tests
7776

78-
To run the tests, first setup your development environment according to the instructions above. Then, install the required packages for running tests with the following command:
79-
```bash
80-
pip install -r test-requirements.txt
81-
```
77+
You can run all tests with the following command:
8278

83-
Once the requirements are installed, you can run all tests with the following command:
8479
```bash
8580
pytest tests/
8681
```

devenv-requirements.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
-r linter-requirements.txt
2+
-r test-requirements.txt
3+
mockupdb # required by `pymongo` tests that are enabled by `pymongo` from linter requirements
4+
pytest<7.0.0 # https://github.com/pytest-dev/pytest/issues/9621; see tox.ini
5+
pytest-asyncio<=0.21.1 # https://github.com/pytest-dev/pytest-asyncio/issues/706

0 commit comments

Comments
 (0)
0