Python tool for helping making shorter and smarter setup.py scripts
Project description
Extended SetupTools
Python tool for helping in making shorter and smarter setup.py
scripts.
Features
- Automatically extracts application meta-info from the root
__init__.py
file:- Name
- Version
- License
- Automatically finds packages
- Finds and attaches ReadMe file
- Handles requirements files and maps to the respective
requires
setup arguments:setup_requires
:setup-requirements.txt
andrequirements/setup-requirements.txt
install_requires
:requirements.txt
andrequirements/requirements.txt
tests_require
:test-requirements.txt
andrequirements/test-requirements.txt
extras_require
:requirements/requirements-*.txt
- Also creates extras
all
that contains all available features
- Creates test runner with HTML reports
- Inserts link to the repository as the homepage
Usage
Install package:
python -m pip install extended-setup-tools
Instead of installing to the current scope, it is possible to install this package as setup_requires step:
from setuptools import _install_setup_requires
_install_setup_requires(dict(setup_requires=[ 'extended-setup-tools' ]))
src/python_package_name/__init__.py
from collections import namedtuple
__title__ = 'my-package'
__author__ = 'Peter Zaitcev / USSX Hares'
__license__ = 'BSD 2-clause'
__copyright__ = 'Copyright 2021 Peter Zaitcev'
__version__ = '0.1.0'
VersionInfo = namedtuple('VersionInfo', 'major minor micro releaselevel serial')
version_info = VersionInfo(*__version__.split('.'), releaselevel='alpha', serial=0)
__all__ = \
[
'version_info',
'__title__',
'__author__',
'__license__',
'__copyright__',
'__version__',
]
setup.py
from extended_setup import ExtendedSetupManager
ExtendedSetupManager('python_package_name').setup \
(
short_description = "Some short description",
classifiers = [ 'Programming Language :: Python :: 3.7' ],
)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
extended-setup-tools-0.1.9.tar.gz
(13.3 kB
view hashes)
Built Distribution
Close
Hashes for extended-setup-tools-0.1.9.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b7fadd357bdb3dd8c2ca816356d1825072fb9299228393840bb7c62b69347da3 |
|
MD5 | 74c8fbbf6b1f428758beadccb265542d |
|
BLAKE2b-256 | f26d507aa2b8044df159e4e931be3f1e2c28c0520883af5bbdb016f8b69bdd1b |
Close
Hashes for extended_setup_tools-0.1.9-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f4286063c57d9fba67c71a7282880c3f48ba7946430f31c1ba57447001908baa |
|
MD5 | 0b4cbe9628c080b2b9dc9e2b834a4f0e |
|
BLAKE2b-256 | 06d252f983e24c1ec494aae02c734659a3c2be3263476dbe33aff489d81540ce |