Project

General

Profile

« Previous | Next » 

Revision 75f0588d

Added by Jérôme Schneider almost 10 years ago

setup: fixing get_version and cleanning install_requires

View differences:

setup.py
3 3
import os
4 4

  
5 5
def get_version():
6
    import glob
7
    import re
8

  
9
    version = None
10
    for d in glob.glob('*'):
11
        if not os.path.isdir(d):
12
            continue
13
        module_file = os.path.join(d, '__init__.py')
14
        if not os.path.exists(module_file):
15
            continue
16
        for v in re.findall("""__version__ *= *['"](.*)['"]""",
17
                open(module_file).read()):
18
            assert version is None
19
            version = v
20
        if version:
21
            break
22
    assert version is not None
6
    from calebasse import __version__
7
    version = __version__
23 8
    if os.path.exists('.git'):
24 9
        import subprocess
25 10
        p = subprocess.Popen(['git','describe','--dirty'],
......
54 39
            'interval == 1.0.0',
55 40
            'python-entrouvert >= 1.3'
56 41
            'django-localflavor',
57
            'PyGTK',
58 42
            'xhtml2pdf',
59 43
            'M2Crypto',
60
            'pycairo',
61 44
        ],
62 45
        dependency_links = [
63 46
            'http://django-swingtime.googlecode.com/files/django-swingtime-0.2.1.tar.gz#egg=django-swingtime-0.2.1',

Also available in: Unified diff