forked from dougthor42/wafer_map
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
64 lines (52 loc) · 2.04 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
61
62
63
64
# -*- coding: utf-8 -*-
#from distutils.core import setup
# ---------------------------------------------------------------------------
### Imports
# ---------------------------------------------------------------------------
# Standard Library
import os
from setuptools import setup, find_packages
import sys
# Third Party
# Package / Application
# Read the "__about__.py" file.
# This is how the `cryptography` package does it. Seems like a decent
# way because it prevents the main package from being imported.
# I'm not sure how I feel about `exec()` though...
about = {}
base_dir = os.path.dirname(__file__)
sys.path.insert(0, base_dir)
with open(os.path.join(base_dir, "wafer_map", "__about__.py")) as f:
exec(f.read(), about)
with open(os.path.join(base_dir, "README.md")) as f:
long_description = f.read()
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Manufacturing",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.4",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Topic :: Scientific/Engineering",
"Topic :: Scientific/Engineering :: Information Analysis",
"Topic :: Scientific/Engineering :: Visualization",
]
setup(
name=about["__package_name__"],
version=about["__version__"],
description=about["__description__"],
long_description_content_type="text/markdown",
long_description=long_description,
url=about["__project_url__"],
author=about["__author__"],
license=about["__license__"],
packages=find_packages(),
classifiers=classifiers,
install_requires=["wxPython>=4.0.0", "numpy>=1.12.1", "colour>=0.1.4"],
)