Skip to content
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

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open
Changes from 5 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
21 changes: 21 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
==========
Comment on lines +44 to +45
Copy link
Member

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.


.. highlight:: shell

Requires Python 3.6+

Comment on lines +49 to +50
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's not repeat this info from line 15:

Suggested change
Requires Python 3.6+

It's probably out of date: since #657 we only test 3.11+ so should match that.

Create virtual environment and activate it::
Copy link
Member

Choose a reason for hiding this comment

The 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
Copy link
Contributor

Choose a reason for hiding this comment

The 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?
=========================================

Expand Down