venvtools
A simple setuptools command to help with virtualenv
DEPRECATED
Use either poetry or pipx according to your use case.
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-2023 Vítor Vasconcellos. All rights reserved.
Metadata
Release files for venvtools 2.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| venvtools-2.0.0.tar.gz | 7.6 kB | Without provenance | Details for venvtools-2.0.0.tar.gz |
Release files / venvtools-2.0.0.tar.gz
| Download URL | venvtools-2.0.0.tar.gz |
|---|---|
| Size | 7.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
039f98704fc2dc0ada7e2e825eb927361a14402cf5ed49851187238fbcbbb5c7
|
|
BLAKE2b-256 checksum How to use checksums |
45f42baa33cd8901a7be9d2ffb1443474a5d5c1805054e0e5f03e2fb62732887
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.5
|
Security for venvtools 2.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.