zacharyburnett/GarterSnake


helpers for `setup.py`

License: MIT

Language: Python


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 Statistics

Sourcerank 3
Repository Size 24.4 KB
Stars 0
Forks 0
Watchers 1
Open issues 0
Dependencies 7
Contributors 1
Tags 2
Created
Last updated
Last pushed

Top Contributors See all

Zach Burnett

Packages Referencing this Repo

gartersnake
helpers for `setup.py`
Latest release 1.0.1 - Updated

Recent Tags See all

v1.0.1 February 28, 2022
v1.0.0 February 28, 2022

Something wrong with this page? Make a suggestion

Last synced: 2022-02-28 23:35:36 UTC

Login to resync this repository