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

QoL: Fix tox.ini syntax and other minor things #498

Merged
merged 1 commit into from
Mar 5, 2023

Conversation

m-ildefons
Copy link
Contributor

  • Fix tox.ini syntax

Modern tox versions require the expected environment variables to be listed one by one on separate lines in tox.ini

  • Add venv to list of ignored names for git

This is a common name for a local Python virtual environment. Less typing than virtualenv

  • Add tox to requirements.txt

Installing tox via pip has the advantage of including it in the virtual environment, thus avoiding trouble on operating systems shipping by default with python3.6 or older. It's also nice that pip install -r requirements.txt is now sufficient to set up the testing environment, after initializing the virtual environment with a moder-enough python version.

- Fix tox.ini syntax

Modern tox versions require the expected environment variables to be
listed one by one on separate lines in tox.ini

- Add `venv` to list of ignored names for git

This is a common name for a local Python virtual environment. Less
typing than `virtualenv`

- Add `tox` to requirements.txt

Installing `tox` via `pip` has the advantage of including it in the
virtual environment, thus avoiding trouble on operating systems shipping
by default with python3.6 or older. It's also nice that `pip install -r
requirements.txt` is now sufficient to set up the testing environment,
after initializing the virtual environment with a moder-enough python
version.

Signed-off-by: Moritz Röhrich <moritz.rohrich@suse.com>
@cbodley cbodley merged commit 359bde7 into ceph:master Mar 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants