Skip to main content

Additional common `setuptools` helpers - for Python.

Project description

setupextras PyPI version Build Status Coverage Status

Additional common setuptools helpers - for Python.

Introduction

TODO

Install

Install using pip:

$ pip install setupextras

Use

Very basic example:

# =========================================
#       IMPORTS
# --------------------------------------

import os
import json
import setuptools

import setupextras


# =========================================
#       PACKAGE
# --------------------------------------

name = 'foo'
version = '1.0.0'
description = 'A foo library.'
keywords = [
    'foo',
    'bar',
]

packages = setupextras.get_packages()
data_files = setupextras.get_data_files(['*.*'], os.path.join(name, 'tests', '__fixtures__'))
requirements = setupextras.get_requirements()
readme = setupextras.get_readme()

config = {
    'name': name,
    'version': version,
    'description': (description),
    'keywords': keywords,
    'author': 'Jonas Grimfelt',
    'author_email': 'grimen@gmail.com',
    'url': 'https://github.com/grimen/python-{name}'.format(name = name),
    'download_url': 'https://github.com/grimen/python-{name}'.format(name = name),
    'project_urls': {
        'repository': 'https://github.com/grimen/python-{name}'.format(name = name),
        'bugs': 'https://github.com/grimen/python-{name}/issues'.format(name = name),
    },
    'license': 'MIT',
    'long_description': readme,
    'packages': packages,
    'data_files': data_files,
    'install_requires': requirements,
}

print('CONFIG {0}'.format(json.dumps(config, indent = 4)))


# =========================================
#       MAIN
# --------------------------------------

setuptools.setup(**config)

Test

Clone down source code:

$ make install

Run colorful tests, with only native environment (dependency sandboxing up to you):

$ make test

Run less colorful tests, with multi-environment (using tox):

$ make test-tox

About

This project was mainly initiated - in lack of solid existing alternatives - to be used at our work at Markable.ai to have common code conventions between various programming environments where Python (research, CV, AI) is heavily used.

License

Released under the MIT license.

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

setupextras-0.1.5.tar.gz (13.1 kB view details)

Uploaded Source

Built Distribution

setupextras-0.1.5-py3-none-any.whl (16.0 kB view details)

Uploaded Python 3

File details

Details for the file setupextras-0.1.5.tar.gz.

File metadata

  • Download URL: setupextras-0.1.5.tar.gz
  • Upload date:
  • Size: 13.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.5

File hashes

Hashes for setupextras-0.1.5.tar.gz
Algorithm Hash digest
SHA256 2c21d99d01fdf3340a67066fcd0a97aae3f2f24b305d6c11b196526faa91df1a
MD5 02306fc78d9bc55995ceeb81c9c68aca
BLAKE2b-256 2bfce84b4f4ef49f669585ea8682899eead0406a688bf4d12d86c4da93d6aa8d

See more details on using hashes here.

File details

Details for the file setupextras-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: setupextras-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 16.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.5

File hashes

Hashes for setupextras-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 b065860551e9dd422efe35c15dd8cd7edf9ebaeb1309a7bca5475b6010f926aa
MD5 b60970b10847a334e422b0b2eccb1a07
BLAKE2b-256 182c8ffaab19cde5c47a04554d675c0de31ad9ae8da6261dac8808e2a178f50d

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