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.1.tar.gz (12.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

venvstarter-0.12.1-py3-none-any.whl (14.9 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for venvstarter-0.12.1.tar.gz
Algorithm Hash digest
SHA256 7f18d87a99974546311f691074f2da0bcd1f03f34044af8f4f7bfb203753f5bf
MD5 56a1c1877dd44f7cbf8254d79340949e
BLAKE2b-256 11f9c594c7b76912a9b7c81d36f52d520192d7242efa96cea573c3f6b9c9dbbc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: venvstarter-0.12.1-py3-none-any.whl
  • Upload date:
  • Size: 14.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.18

File hashes

Hashes for venvstarter-0.12.1-py3-none-any.whl
Algorithm Hash digest
SHA256 85b7b5e9ff45bb8ecf6adea3a842ba7787bae0c7187372dd2e2784067be9dd0c
MD5 89c66e767240500791339e65ba822150
BLAKE2b-256 5fc609ce62abd74843594b2de797e81bd48976b10481f0f23b0dcddb3c60f64a

See more details on using hashes here.

Supported by

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