-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathsetup.py
58 lines (54 loc) · 1.7 KB
/
setup.py
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
54
55
56
57
58
#!/usr/bin/env python
'''
EasySettings Setup
@author: Christopher Welborn
'''
from setuptools import setup
defaultdesc = 'Easily set and retrieve application settings.'
try:
import pypandoc
except ImportError:
print('Pypandoc not installed, using default description.')
longdesc = defaultdesc
else:
# Convert using pypandoc.
try:
longdesc = pypandoc.convert('README.md', 'rst')
except EnvironmentError:
# Fallback to README.txt (may be behind on updates.)
try:
with open('README.txt') as f:
longdesc = f.read()
except EnvironmentError:
print('\nREADME.md and README.txt failed!')
longdesc = defaultdesc
setup(
name='EasySettings',
version='4.0.1',
author='Christopher Welborn',
author_email='[email protected]',
packages=['easysettings'],
url='https://github.com/welbornprod/easysettings',
license='LICENSE.txt',
description=open('DESC.txt').read(),
long_description=longdesc,
keywords=' '.join((
'python module library 3 settings easy',
'config setting configuration applications app',
'json toml yaml pickle ini dict userdict',
)),
classifiers=[
'Operating System :: Microsoft :: Windows',
'Operating System :: POSIX :: Linux',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Topic :: Software Development :: Libraries',
'Topic :: Software Development :: Libraries :: Python Modules'
],
python_requires='~=3.5',
extras_require={
'all': ['pyyaml >= 3.12', 'toml >= 0.10.0'],
'yaml': ['pyyaml >= 3.12'],
'toml': ['toml >= 0.10.0'],
},
)