-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
55 lines (49 loc) · 1.6 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
from __future__ import absolute_import
from __future__ import print_function
import io
import re
from os.path import dirname
from os.path import join
from setuptools import find_packages
from setuptools import setup
def read(*names, **kwargs):
return io.open(
join(dirname(__file__), *names),
encoding=kwargs.get('encoding', 'utf8')
).read()
setup(
name='ini_cfg_demo',
version='0.1.0',
author='Laurent LAPORTE',
author_email='[email protected]',
url='https://github.com/tantale/python-ini-cfg-demo',
description="Example of project with two levels of configuration files",
long_description='%s\n%s' % (
read('README.rst'),
re.sub(':[a-z]+:`~?(.*?)`', r'``\1``', read('CHANGELOG.rst'))
),
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: Python Software Foundation License',
'Operating System :: MacOS :: MacOS X',
'Operating System :: Microsoft :: Windows',
'Operating System :: POSIX',
'Programming Language :: Python',
'Topic :: Software Development',
],
platforms=["Linux", "Windows", "OS X"],
license="MIT License",
keywords="configuration ini demonstration python setup application installation",
packages=find_packages("src"),
package_dir={'': 'src'},
package_data={
'ini_cfg_demo': ['IniCfgDemo.ini'],
'': ["LICENCE.rst"]
},
entry_points={
'console_scripts': [
'ini_cfg_demo = ini_cfg_demo.__main__:run_ini_cfg_demo',
],
},
)