File: setup.py

package info (click to toggle)
codicefiscale 0.9%2Bds0-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 68 kB
  • sloc: python: 112; makefile: 4
file content (52 lines) | stat: -rw-r--r-- 1,287 bytes parent folder | download | duplicates (3)
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 = 'ema@linux.it',
       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"
)