forked from marcomusy/vedo
-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.py
105 lines (80 loc) · 2.93 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
from setuptools import setup
try:
VERSIONFILE = "vtkplotter/version.py"
verstrline = open(VERSIONFILE, "rt").read()
verstr = verstrline.split('=')[1].replace('\n','').replace("'","")
except:
verstr='unknown_version'
##############################################################
setup(
name='vtkplotter',
version=verstr,
packages=['vtkplotter'],
scripts=['bin/vtkplotter', 'bin/vtkconvert'],
install_requires=['vtk','k3d'],
description='''A python module for scientific visualization,
analysis and animation of 3D objects and point clouds based on VTK.''',
long_description="""A python module for scientific visualization,
analysis and animation of 3D objects and point clouds based on VTK.
Check out https://vtkplotter.embl.es for documentation.""",
author='Marco Musy',
author_email='marco.musy@gmail.com',
license='MIT',
url='https://github.com/marcomusy/vtkplotter',
keywords='vtk 3D visualization mesh numpy',
classifiers=['Intended Audience :: Science/Research',
'Intended Audience :: Education',
'Intended Audience :: Information Technology',
'Programming Language :: Python',
'License :: OSI Approved :: MIT License',
'Topic :: Scientific/Engineering :: Visualization',
'Topic :: Scientific/Engineering :: Physics',
'Topic :: Scientific/Engineering :: Medical Science Apps.',
'Topic :: Scientific/Engineering :: Information Analysis',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7'
],
include_package_data=True
)
##############################################################
# # check examples
# change version in vtkplotter/version.py
# cd ~/Projects/vtkplotter/
# pip install .
# ( sudo -H pip install . )
# cd examples && ./run_all.sh
# python test_filetypes.py
# check vtkconvert:
# vtkconvert vtkplotter/data/290.vtk -to ply
# rm vtkplotter/data/290.ply
# check on python2 the same stuff is ok
# check notebooks:
# cd ~/Projects/vtkplotter/
# jupyter notebook
# remove trailing spaces
# git status
# git add [files]
# git commit -a -m 'comment'
# git push
# git status
# (sudo apt install twine)
# (python -m pip install --user --upgrade twine)
# python setup.py sdist bdist_wheel
# twine upload dist/vtkplotter-?.?.?.tar.gz -r pypi
# make release
## to generate documentation:
# Install the dependencies in docs/requirements.txt
# pip install -r docs/requirements.txt
#
# Run the documentaion generation:
# cd docs
# make html
# Open the HTML webpage
# open build/html/index.html
#
# mount_staging
# cp -r build/html/* ~/Projects/StagingServer/var/www/html/vtkplotter.embl.es/
# version bump vtkplotter/version.py
## to generate gif: ezgif.com