aboutsummaryrefslogtreecommitdiff
blob: 56a4d7f0f311a41d074584843702aa91a7f0b760 (plain)
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
53
#!/usr/bin/env python
# vim:fileencoding=utf8:et:ts=4:sts=4:sw=4:ft=python

from setuptools import setup, find_packages
import glob
import okupy
import os

extra_deps = {}
files = glob.glob('requirements/extras/*')
for path in files:
    extra_deps[os.path.basename(path).split('.')[0]] = open(path).read().split('\n')[0]

with open('requirements/base.txt', 'r') as f:
    base_deps = []
    for line in f:
        if line.startswith('git+') or line.startswith('hg+'):
            line = line.split('#egg=')[1]
        base_deps.append(line.replace('\n', ''))

setup(
    name='okupy',
    version=okupy.__version__,
    license='AGPLv3',
    author='identity.gentoo.org development team',
    author_email='identity@gentoo.org',
    url='http://github.com/gentoo/identity.gentoo.org',
    description='Django LDAP webUI and OpenID provider for the Gentoo Linux project',
    long_description=open('README.rst').read(),
    keywords='django, ldap, gentoo',
    packages=find_packages(),
    include_package_data=True,
    test_suite='okupy.tests.runtests',
    classifiers=[
        'Development Status :: 4 - Beta',
        'Environment :: Web Environment',
        'Intended Audience :: System Administrators',
        'License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)',
        'Natural Language :: English',
        'Operating System :: OS Independent',
        'Programming Language :: Python :: 2.7',
        'Framework :: Django',
        'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
        'Topic :: Software Development',
    ],

    install_requires=base_deps,
    setup_requires=[
        'setuptools>=0.6c11',
    ],
    tests_require=open('requirements/tests.txt').read().split(),
    extras_require=extra_deps,
)