Skip to main content

A simple setuptools command to help with virtualenv

Project description

venvtools

A simple setuptools command to help with virtualenv

Motivation

The objective of this utility is to provide means for easy creation of a virtual environment for local packages using python's standard venv module and to integrate with setuptools distribution model for seamless resolution and installation of dependencies.

How to use

Inside your package root folder execute the following to create the venv and install your package dependencies inside it:

python ./setup.py venv

or (if your setup.py is executable)

./setup.py venv

Currently updating dependencies inside the venv is not working correctly. It's recommended to recreate the venv to archive it.

(This will be fixed in a posterior version)

./setup.py venv --rm && ./setup.py venv

Options

--env-name (-n)         Virtual environment name.
                        (DEFAULT: Project name)
--get-pip               Virtual env get-pip.py URL.
                        (DEFAULT: https://bootstrap.pypa.io/get-pip.py)
--extras (-e)           Comma separated list of extras to be installed.
--system-site-packages  Make the system (global) site-packages dir available to the
                        created environment.
--rm                    Remove virtual environment.
--editable              Install package to venv as editable.
--location (-l)         Retrieve virtual environment location.
--old-resolver          Force pip to use its old resolver.

License

See LICENSE

COPYRIGHT

Copyright (c) 2018-2020 Vítor Augusto da Silva Vasconcellos. All rights reserved.

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

venvtools-1.0.0-py2.py3-none-any.whl (8.5 kB view details)

Uploaded Python 2Python 3

File details

Details for the file venvtools-1.0.0-py2.py3-none-any.whl.

File metadata

  • Download URL: venvtools-1.0.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 8.5 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.1.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.9.1

File hashes

Hashes for venvtools-1.0.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 f65394397b4e863bc49a3ed98f166bd736934083356600f396c365121e57dcfe
MD5 903aaed0edcbeefc03f3a3ecc0cb3aeb
BLAKE2b-256 d2d19fa49db31b949ce229258571a3e4e223a9b5fe9cb827980c7638c6b979bb

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