-
Notifications
You must be signed in to change notification settings - Fork 6
/
setup.py
45 lines (39 loc) · 1.45 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
#! /usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages
import os
__name__ = 'mccd'
release_info = {}
infopath = os.path.abspath(os.path.join(os.path.dirname(__file__),
__name__, 'info.py'))
with open(infopath) as open_file:
exec(open_file.read(), release_info)
this_directory = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(this_directory, 'pypi_pkg_info.rst'),
encoding='utf-8') as f:
long_description = f.read()
with open('requirements.txt') as open_file:
install_requires = open_file.read()
setup(
name=__name__,
author=release_info['__author__'],
author_email=release_info['__email__'],
version=release_info['__version__'],
url=release_info['__url__'],
packages=find_packages(),
install_requires=install_requires,
license=release_info['__license__'],
description=release_info['__about__'],
long_description=long_description,
long_description_content_type="text/x-rst",
setup_requires=release_info['__setup_requires__'],
tests_require=release_info['__tests_require__'],
classifiers=[
"Programming Language :: Python :: 3.6",
"License :: OSI Approved :: MIT License",
"Operating System :: MacOS",
"Operating System :: POSIX :: Linux",
"Topic :: Scientific/Engineering",
"Intended Audience :: Science/Research",
"Intended Audience :: Developers"],
)