Skip to main content

helpers for `setup.py`

Project description

GarterSnake

tests build version license style

GarterSnake is a set of functions that helps with using setuptools in setup.py. It includes

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


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)

Uploaded Source

Built Distribution

gartersnake-1.0.1-py3-none-any.whl (6.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page