File: setup.py

package info (click to toggle)
python-setoptconf 0.3.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 252 kB
  • sloc: python: 1,427; sh: 7; makefile: 5
file content (52 lines) | stat: -rw-r--r-- 1,490 bytes parent folder | download | duplicates (2)
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
import os.path
import re
import sys

from setuptools import setup, find_packages


DEPENDENCIES = []


def get_version():
    init = os.path.join(os.path.dirname(__file__), 'setoptconf/__init__.py')
    source = open(init, 'r').read()
    version = re.search(
        r"__version__ = '(?P<version>[^']+)'",
        source,
    ).group('version')
    return version


def get_description():
    readme = os.path.join(os.path.dirname(__file__), 'README.rst')
    return open(readme, 'r').read()


setup(
    name='setoptconf',
    version=get_version(),
    author='Jason Simeone',
    author_email='jay@classless.net',
    license='MIT',
    keywords=['settings', 'options', 'configuration', 'config', 'arguments'],
    description='A module for retrieving program settings from various'
                ' sources in a consistant method.',
    long_description=get_description(),
    url='https://github.com/jayclassless/setoptconf',
    classifiers=[
        'Development Status :: 4 - Beta',
        'Intended Audience :: Developers',
        'License :: OSI Approved :: MIT License',
        'Operating System :: OS Independent',
        'Programming Language :: Python :: 3',
        'Programming Language :: Python :: 3 :: Only',
        'Topic :: Software Development :: Libraries :: Python Modules'
    ],
    packages=find_packages(exclude=['test.*', 'test']),
    install_requires=DEPENDENCIES,
    extras_require={
        'YAML': ['pyyaml'],
    },
    python_requires=">=3.0",
)