-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
67 lines (48 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
59
60
61
62
63
64
65
66
67
#!/usr/bin/env python
import os
import sys
from setuptools import setup
from setuptools import find_packages
here = os.path.abspath(os.path.dirname(__file__))
packages = ['p5']
requires = []
with open("requirements.txt", "r", encoding="UTF-8") as f:
require = f.read().split("\n")
for i in range(len(require)): requires.append(require[i].split("=")[0])
meta_data = {}
with open(os.path.join(here, 'p5', '__version__.py'), 'r', encoding='utf-8') as f:
exec(f.read(), meta_data)
with open('README.rst', 'r', encoding='utf-8') as f:
readme = f.read()
setup(
name=meta_data['__title__'],
version=meta_data['__version__'],
description=meta_data['__description__'],
long_description=readme,
long_description_content_type="text/x-rst",
author=meta_data['__author__'],
url=meta_data['__url__'],
author_email=meta_data['__author_email__'],
license=meta_data['__license__'],
packages=find_packages(),
package_data={'': ['LICENSE'], },
package_dir={'p5': 'p5'},
include_package_data=True,
setup_requires=['numpy'],
install_requires=requires,
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'Intended Audience :: Education',
'Topic :: Artistic Software',
'Topic :: Education',
'Topic :: Multimedia',
'Topic :: Multimedia :: Graphics',
'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
],
)