Skip to main content

Tool to create virtualenvs, manage versions of packages in it and use it start a particular program

Project description

Program to bootstrap a virtualenv for your program!

Full documentation at http://venvstarter.readthedocs.io

Tests

To run the tests you must first create a pythons.json in the root of your checkout of venvstarter that tells the tests where to find each version of Python:

{
  "python3.7": "~/.pyenv/versions/3.7.12/bin/python",
  "python3.8": "~/.pyenv/versions/3.8.12/bin/python",
  "python3.9": "~/.pyenv/versions/3.9.6/bin/python"
  "python3.10": "~/.pyenv/versions/3.10.0/bin/python"
  "python3.11": "~/.pyenv/versions/3.11.0/bin/python"
}

In this example I’m using pyenv to get copies of each Python. Using pyenv isn’t a requirement, but it does make it easy! There is nothing in the tests that rely on features in any particular version, and so the minor patch of each version is irrelevant. All that matters is having some version of 3.7, 3.8, 3.9, 3.10 and 3.11.

I recommend running the tests in a virtualenv. I use virtualenvwrapper for this but you can also do a python3 -m venv my_venv somewhere and use that.

Then once you’re in a virtualenv:

> python -m pip install -e ".[tests]"
> ./test.sh

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

venvstarter-0.12.2.tar.gz (12.3 kB view details)

Uploaded Source

Built Distribution

venvstarter-0.12.2-py3-none-any.whl (15.2 kB view details)

Uploaded Python 3

File details

Details for the file venvstarter-0.12.2.tar.gz.

File metadata

  • Download URL: venvstarter-0.12.2.tar.gz
  • Upload date:
  • Size: 12.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.8.18

File hashes

Hashes for venvstarter-0.12.2.tar.gz
Algorithm Hash digest
SHA256 9c04a03b9278d75b2c2b3da55290e1a208db0449cdd88c785bb9b11000ba9238
MD5 65a0c2937ac7b8709f1f41c6e2af4e52
BLAKE2b-256 6f57eecb6064a4f01602ba6c4e344f288f0f4ed11f87a25bab932ee3f50b9518

See more details on using hashes here.

File details

Details for the file venvstarter-0.12.2-py3-none-any.whl.

File metadata

File hashes

Hashes for venvstarter-0.12.2-py3-none-any.whl
Algorithm Hash digest
SHA256 6061ed0a816d576af8a1f9be98d5448c40b49273cbc82f5ceb9a5a5523143fcc
MD5 39842ccc5f0117b9185f55f1a79fe8d8
BLAKE2b-256 0cec8b6935f0fbdfebd66452c5fc820eebabe0b9094c4c9173f3008bd5e942b6

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page