-
-
Notifications
You must be signed in to change notification settings - Fork 38
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
Updated README.rst to include how to do the setup #555
base: main
Are you sure you want to change the base?
Changes from 5 commits
f4f3025
40b9c8f
c3f71d7
1c5f100
1df188e
663947c
912deb3
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||
---|---|---|---|---|
|
@@ -41,6 +41,27 @@ If a Python core developer approved a PR made by anyone and added the "🤖 auto | |||
it will be automatically merged once all the CI checks pass. | ||||
|
||||
|
||||
Setup Info | ||||
========== | ||||
|
||||
.. highlight:: shell | ||||
|
||||
Requires Python 3.6+ | ||||
|
||||
Comment on lines
+49
to
+50
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Let's not repeat this info from line 15:
Suggested change
It's probably out of date: since #657 we only test 3.11+ so should match that. |
||||
Create virtual environment and activate it:: | ||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Since #620, we have a tox.ini config, so we can replace the venv setup, dependency installation and pytest call with installing and running tox. |
||||
|
||||
$ python3 -m venv venv | ||||
$ source venv/bin/activate | ||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This assumes a unix environment and won't work for Windows I think. Is that an issue? |
||||
|
||||
Install development or production dependencies:: | ||||
|
||||
(venv) $ pip install -r dev-requirements.txt # for development | ||||
(venv) $ pip install -r requirements.txt # for production | ||||
|
||||
Run the test code:: | ||||
|
||||
(venv) $ pytest | ||||
|
||||
**Aside**: where does the name come from? | ||||
========================================= | ||||
|
||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This section is really about running tests, let's name it to reflect this.