-
Notifications
You must be signed in to change notification settings - Fork 51
/
Copy pathsetup.py
65 lines (58 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
import os
import platform
import unittest
from setuptools import setup
here = os.path.abspath(os.path.dirname(__file__))
README = open(os.path.join(here, 'README.md')).read()
LICENSE = open(os.path.join(here, 'LICENSE')).read()
_ON_POSIX = (platform.system().lower() in ['linux', 'linux2', 'darwin'])
data = {
'name': 'Ecosystem',
'author': 'Peregrine*Labs',
'author_email': '[email protected]',
'bin': [
],
'entry_points': {
'console_scripts': [
'eco = ecosystem.main:main',
'elist = ecosystem.main:elist',
'eneedenv = ecosystem.main:eneedenv',
],
},
'description': 'Ecosystem is a cross-platform environment management system',
'license': LICENSE,
'long_description': README,
'packages': [
'ecosystem',
],
'package_data': {
'ecosystem': [
'dev/cmake/*.cmake',
'dev/templates/maya/*.txt',
'dev/templates/maya/*.cpp',
'dev/templates/maya/*.mel',
'dev/templates/maya/*.in',
'dev/templates/nuke/py/*.py',
'dev/templates/nuke/*.py',
'dev/templates/nuke/*.cpp',
'dev/templates/nuke/*.txt'
'env/*.txt',
'etc/*.aliases',
'images/*.png',
],
},
'scripts': [],
'test_suite': 'setup.test_suite',
'version': 'v0.6.0',
'url': 'https://github.com/PeregrineLabs/Ecosystem',
}
def test_suite():
test_loader = unittest.TestLoader()
test_suite = test_loader.discover('tests', pattern='test_*.py')
return test_suite
# multi-platform custom scripts
if _ON_POSIX:
data['scripts'] = data.pop('bin')
else:
data.pop('bin')
setup(**data)