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.




Install using pip:

$ pip install setupextras


Very basic example:

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

import os
import json
import setuptools

import setupextras

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

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

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': '',
    'url': '{name}'.format(name = name),
    'download_url': '{name}'.format(name = name),
    'project_urls': {
        'repository': '{name}'.format(name = name),
        'bugs': '{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
# --------------------------------------



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


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


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.

Files for setupextras, version 0.1.5
Filename, size File type Python version Upload date Hashes
Filename, size setupextras-0.1.5-py3-none-any.whl (16.0 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size setupextras-0.1.5.tar.gz (13.1 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page