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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file gartersnake-1.0.1.tar.gz.

File metadata

  • Download URL: gartersnake-1.0.1.tar.gz
  • Upload date:
  • Size: 4.8 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for gartersnake-1.0.1.tar.gz
Algorithm Hash digest
SHA256 b0d07198f3b8b586e6df2421a53db75d81fe0c8024d8af02737b9bf99cce4be4
MD5 0cf4f3a527f239aab549e0e088443739
BLAKE2b-256 9ef2037a97d34bc5e5e8ebcc84bfc455bbbbb8daf338cfd8329436b5aae4d325

See more details on using hashes here.

File details

Details for the file gartersnake-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: gartersnake-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 6.3 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for gartersnake-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 615ed4783fddaad3b5973b191bde4a39263b171143ef529d3209f0c317b7875f
MD5 b2755fd142ce4d3161db02fad5f27b06
BLAKE2b-256 f79b4308bb3ce037171b9fa252d3e560bf43f8267cb03a14106075e61840b01b

See more details on using hashes here.

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