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](https://www.
lfd.uci.edu/~gohlke/pythonlibs/) 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.0.tar.gz
(4.8 kB
view hashes)
Built Distribution
Close
Hashes for gartersnake-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | adc916fc6c4fb9c47335321c0cc2fd2caee702e56c6a2572548025ee0fcf2752 |
|
MD5 | 01e61b2892a9023215090ea60ffa65e9 |
|
BLAKE2b-256 | 590b92774ce317c7095a2ecf59126416cf4da16c82011505af0ee3eaf2074fd1 |