8000 Add devenv-requirements.txt and update env setup instructions by arr-ee · Pull Request #2761 · getsentry/sentry-python · GitHub
[go: up one dir, main page]

Skip to content

Add devenv-requirements.txt and update env setup instructions #2761

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 2 additions & 7 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ This file outlines the process to contribute to the SDK itself. For contributing

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!


## Submitting Changes

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

pip install -r linter-requirements.txt
pip install -r devenv-requirements.txt

pip install pre-commit

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

## Running Tests

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:
```bash
pip install -r test-requirements.txt
```
You can run all tests with the following command:

Once the requirements are installed, you can run all tests with the following command:
```bash
pytest tests/
```
Expand Down
5 changes: 5 additions & 0 deletions devenv-requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
-r linter-requirements.txt
-r test-requirements.txt
mockupdb # required by `pymongo` tests that are enabled by `pymongo` from linter requirements
pytest<7.0.0 # https://github.com/pytest-dev/pytest/issues/9621; see tox.ini
pytest-asyncio<=0.21.1 # https://github.com/pytest-dev/pytest-asyncio/issues/706
0