helpers for `setup.py`
Project description
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),
)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
gartersnake-1.0.1.tar.gz
(4.8 kB
view hashes)
Built Distribution
Close
Hashes for gartersnake-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 615ed4783fddaad3b5973b191bde4a39263b171143ef529d3209f0c317b7875f |
|
MD5 | b2755fd142ce4d3161db02fad5f27b06 |
|
BLAKE2b-256 | f79b4308bb3ce037171b9fa252d3e560bf43f8267cb03a14106075e61840b01b |