-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
executable file
·60 lines (50 loc) · 1.8 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
59
60
from setuptools import setup
from setuptools import find_packages
from xmm import __author__, __email__, __url__, __license__, __version__, __summary__, __keywords__
with open('requirements.in') as f:
install_requires = f.read().splitlines()
try:
import pypandoc
readme_contents = pypandoc.convert('README.md', 'rst')
changelog_contents = pypandoc.convert('CHANGELOG.md', 'rst')
except(IOError, ImportError):
with open('README.md') as f:
readme_contents = f.read()
with open('CHANGELOG.md') as f:
changelog_contents = f.read()
long_description = '{}\n{}'.format(readme_contents, changelog_contents)
setup(
name='xmm',
version=__version__,
description=__summary__,
long_description=long_description,
author=__author__,
author_email=__email__,
url=__url__,
license=__license__,
packages=find_packages(exclude=('tests', 'docs')),
package_data={'': ['LICENSE', 'README.md', 'CHANGELOG.md', 'docs/*', 'config/*', 'bin/*', 'pkg/*', 'resources/*']},
include_package_data=True,
install_requires=install_requires,
setup_requires=['pytest-runner'],
tests_require=['pytest'],
scripts=['pkg/xmm.bash', 'pkg/xmm.zsh'],
entry_points={
'console_scripts': [
'xmm = xmm.cli:main'
]
},
keywords=__keywords__,
classifiers=[
'Intended Audience :: End Users/Desktop',
'Intended Audience :: System Administrators',
'License :: OSI Approved :: MIT License',
'Development Status :: 5 - Production/Stable',
'Environment :: Console',
'Topic :: Games/Entertainment',
'Topic :: System :: Archiving :: Packaging',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
],
)