GarterSnake
GarterSnake is a set of functions that helps with using setuptools in
setup.py. It includes
- dynamically retrieving version info from VCS with
dunamai - installing packages
from Christoph Gohlke's Windows binaries
with
pipwin - installing packages using
conda
Usage
from setuptools import find_packages, setup
from gartersnake import install_conda_requirements, \
install_windows_requirements, is_conda, is_windows, missing_requirements, \
vcs_version
REQUIREMENTS = {
'fiona': ['gdal'],
'numpy': [],
'requests': [],
}
MISSING = missing_requirements(REQUIREMENTS)
if is_conda():
install_conda_requirements(MISSING)
MISSING = missing_requirements(REQUIREMENTS)
if is_windows():
install_windows_requirements(MISSING)
__version__ = vcs_version()
setup(
name='<package_name>',
version=__version__,
authors='<package_authors>',
url='<package_url>',
packages=find_packages(),
python_requires='>=3.6',
setup_requires=['dunamai', 'setuptools>=41.2'],
install_requires=list(REQUIREMENTS),
)
Metadata
Release files for gartersnake 1.0.1
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 |
|---|---|---|---|---|
| gartersnake-1.0.1.tar.gz | 4.8 kB | Without provenance | Details for gartersnake-1.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| gartersnake-1.0.1-py3-none-any.whl | Python 3 | none | any | Details for gartersnake-1.0.1-py3-none-any.whl |
Total release size: 11.1 kB
Release files / gartersnake-1.0.1.tar.gz
| Download URL | gartersnake-1.0.1.tar.gz |
|---|---|
| Size | 4.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b0d07198f3b8b586e6df2421a53db75d81fe0c8024d8af02737b9bf99cce4be4
|
|
BLAKE2b-256 checksum How to use checksums |
9ef2037a97d34bc5e5e8ebcc84bfc455bbbbb8daf338cfd8329436b5aae4d325
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10
|
Release files / gartersnake-1.0.1-py3-none-any.whl
| Download URL | gartersnake-1.0.1-py3-none-any.whl |
|---|---|
| Size | 6.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
615ed4783fddaad3b5973b191bde4a39263b171143ef529d3209f0c317b7875f
|
|
BLAKE2b-256 checksum How to use checksums |
f79b4308bb3ce037171b9fa252d3e560bf43f8267cb03a14106075e61840b01b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10
|
Security for gartersnake 1.0.1
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.