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.6": "~/.pyenv/versions/3.6.13/bin/python",
  "python3.7": "~/.pyenv/versions/3.7.10/bin/python",
  "python3.8": "~/.pyenv/versions/3.8.10/bin/python",
  "python3.9": "~/.pyenv/versions/3.9.5/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.6, 3.7, 3.8 and 3.9.

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

Uploaded Source

File details

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

File metadata

  • Download URL: venvstarter-0.9.1.tar.gz
  • Upload date:
  • Size: 9.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.8.11

File hashes

Hashes for venvstarter-0.9.1.tar.gz
Algorithm Hash digest
SHA256 496529e4ccc7ed1587a89202c6a7f8c9b9cf95680185099dffa0a9ed440523da
MD5 46b485ff5249c8f93392e82b803e99a1
BLAKE2b-256 0f07ef7fb9c1da7f3e690178ace23572ac0c83df095dae6804c67dd67e52312e

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