forked from ema/pycodicefiscale
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
52 lines (40 loc) · 1.26 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#!/usr/bin/python
"""codicefiscale's setup script.
A new version can be built and uploaded to pypi as follows:
$ python setup.py bdist_egg sdist upload
"""
from setuptools import setup
import codicefiscale
LONGDESC = codicefiscale.__doc__
LONGDESC = """%s
codicefiscale Module Documentation
==================================
A quick example
---------------
>>> import datetime
>>> from codicefiscale import build
>>>
>>> build('Rocca', 'Emanuele', datetime.datetime(1983, 11, 18), 'M', 'D969')
'RCCMNL83S18D969H'
Module Contents
---------------
""" % LONGDESC
for what in dir(codicefiscale):
if not what.startswith("__"):
obj = getattr(codicefiscale, what)
if callable(obj) and obj.__doc__:
LONGDESC += obj.__doc__ + "\n\n\n"
setup(
name = 'codicefiscale',
author = codicefiscale.__author__,
author_email = '[email protected]',
url='https://github.com/ema/pycodicefiscale',
download_url='https://github.com/ema/pycodicefiscale/downloads',
version = codicefiscale.__version__,
py_modules = ['codicefiscale'],
zip_safe = True,
license='LGPL',
description="Python library for Italian fiscal code (codicefiscale)",
long_description = LONGDESC,
test_suite = "tests"
)