forked from vispy/vispy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
106 lines (88 loc) · 3.14 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
# -*- coding: utf-8 -*-
# Copyright (c) 2013, Vispy Development Team.
# Distributed under the (new) BSD License. See LICENSE.txt for more info.
""" Vispy setup script.
Steps to do a new release:
Preparations:
* Test on Windows, Linux, Mac
* Make release notes
* Update API documentation and other docs that need updating.
Test installation:
* clear the build and dist dir (if they exist)
* python setup.py register -r http://testpypi.python.org/pypi
* python setup.py sdist upload -r http://testpypi.python.org/pypi
* pip install -i http://testpypi.python.org/pypi
Define the version:
* update __version__ in __init__.py
* Tag the tip changeset as version x.x
Generate and upload package (preferably on Windows)
* python setup.py register
* python setup.py sdist upload
* python setup.py bdist_wininst upload
Announcing:
* It can be worth waiting a day for eager users to report critical bugs
* Announce in scipy-user, vispy mailing list, G+
"""
import os
from distutils.core import setup
name = 'vispy'
description = 'Interactive visualization in Python'
# Get version and docstring
__version__ = None
__doc__ = ''
docStatus = 0 # Not started, in progress, done
initFile = os.path.join(os.path.dirname(__file__), 'vispy', '__init__.py')
for line in open(initFile).readlines():
if (line.startswith('__version__')):
exec(line.strip())
elif line.startswith('"""'):
if docStatus == 0:
docStatus = 1
line = line.lstrip('"')
elif docStatus == 1:
docStatus = 2
if docStatus == 1:
__doc__ += line
setup(
name = name,
version = __version__,
author = 'Vispy contributers',
author_email = '[email protected]',
license = '(new) BSD',
url = 'http://vispy.org',
download_url = 'https://pypi.python.org/pypi/vispy',
keywords = "visualization OpenGl ES medical imaging 3D plotting numpy bigdata",
description = description,
long_description = __doc__,
platforms = 'any',
provides = ['vispy'],
install_requires = ['numpy', 'pyOpenGl'],
packages = ['vispy',
'vispy.app',
'vispy.app.backends',
'vispy.gl',
'vispy.core',
'vispy.oogl',
'vispy.util',
'vispy.io',
],
package_dir = {'vispy': 'vispy'},
package_data = {'vispy': ['resources/*']},
zip_safe = False,
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Science/Research',
'Intended Audience :: Education',
'Intended Audience :: Developers',
'Topic :: Scientific/Engineering :: Visualization',
'License :: OSI Approved :: BSD License',
'Operating System :: MacOS :: MacOS X',
'Operating System :: Microsoft :: Windows',
'Operating System :: POSIX',
'Programming Language :: Python',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.2',
'Programming Language :: Python :: 3.3',
],
)