Skip to content

Setup tools extension, that can talks distutils2 setup.cfg, pip requirements file ...

License

Notifications You must be signed in to change notification settings

johnnoone/cardhu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cardhu

Extends setupools in order to parse Distutils2 setup.cfg, pip requirements file ... This project is largely inspired by the d2to1 library.

Usage

In your setup.py, the only requirement is:

from setuptools import setup

setup(
    setup_requires=['cardhu'],
    cardhu=True
)

Allows you to use a Distutils2 setup.cfg like configuration file:

[metadata]
name = cardhu
version = 0.1.1
author = Xavier Barbosa
summary = Allows using distutils2-like setup.cfg files for a package's metadata
 with a distribute/setuptools setup.py
keywords =
    setup
    distutils
[files]
packages = cardhu

This lib also allows to hook your setuptools commands:

# local hook
[install]

pre-hook.cardhu = cardhu.hooks.pre_install
post-hook.cardhu = cardhu.hooks.pre_install

# global hook
[entry_points]

cardhu.pre_hooks =
  install = cardhu.hooks:pre_install
  develop = cardhu.hooks:pre_develop

This lib expose more features, for example, the development requirements will be automatically installed when using python setup.py develop:

[metadata]
requires-dev =
  docutils >= 0.3

Or the same before running a test:

[metadata]
requires-test =
    py.test

Implementation

Goals:

Incompatibilities:

Currently implemented:

Distutils2

see http://alexis.notmyidea.org/distutils2/setupcfg.html, Distutils2

Pip and wheels

see ...

About

Setup tools extension, that can talks distutils2 setup.cfg, pip requirements file ...

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages