aboutsummaryrefslogtreecommitdiff
path: root/setup.py
blob: 27cb9c79105dfeea2f1cfb3c0fedcb77a2e687b7 (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
from setuptools import setup, find_packages

find_packages

with open('configlib/version.py') as f:
    _loc, _glob = {}, {}
    exec(f.read(), _loc, _glob)
    version = {**_loc, **_glob}['VERSION']

with open('requirements.txt') as f:
    requirements = f.read().splitlines()

with open('requirements-dev.txt') as f:
    dev_requirements = f.read().splitlines()

with open('README.md') as f:
    readme = f.read()

if not version:
    raise RuntimeError('version is not set in configlib/version.py')

setup(
    name="configlib",
    author="romangraef",
    url="https://github.com/romangraef/configlib",
    version=str(version),
    install_requires=requirements,
    long_description=readme,
    setup_requires=['pytest-runner', 'pytest-pylint'],
    tests_require=['pytest', 'pylint'],
    license="MIT",
    extras_require={
        'dev': dev_requirements,
    },
    packages=['configlib'],
    description="An easy python config manager",
    classifiers=[
        'Topic :: Utilities',
    ]
)