Additional common `setuptools` helpers - for Python.
Project description
setupextras
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.4.tar.gz
(13.0 kB
view hashes)
Built Distribution
Close
Hashes for setupextras-0.1.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c4ebee2fdef64c60735f95908e5477e3c65cdf0a67f3aa515449d7682da5c839 |
|
MD5 | 7dc69bef682b0cf9a88451e9a00d701e |
|
BLAKE2b-256 | 64c276b9ee7205d4710b2a55f1d5130fa032ca7e72bea8504ac8500097a14ff7 |