-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
65 lines (56 loc) · 1.64 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 shutil
from setuptools import setup
import distutils.command.check
class TestCommand(distutils.command.check.check):
"""Custom test command."""
def run(self):
# run tests using doctest
import doctest
# filters folder
from rawls import scene
from rawls import rawls
from rawls import stats
from rawls import utils
print("==============================")
print("Runs test command...")
# pass test using doctest
doctest.testmod(scene)
print('Scene module')
doctest.testmod(rawls)
print('Rawls module')
doctest.testmod(stats)
print('Stats module')
doctest.testmod(utils)
print('Utils module')
distutils.command.check.check.run(self)
setup(
name='rawls',
version='1.1.7',
description='RAW Light Simulation file reader/converter package',
long_description=open('README.md').read(),
long_description_content_type='text/markdown',
classifiers=[
'Development Status :: 4 - Beta',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3.7',
'Topic :: Scientific/Engineering',
'Topic :: Utilities'
],
url='https://github.com/prise-3d/rawls',
author='Jérôme BUISINE',
author_email='[email protected]',
license='MIT',
packages=['rawls', 'rawls.scene'],
install_requires=[
'numpy',
'Pillow',
'scipy',
'astropy',
'ipfml',
'pandas',
'OpenEXR'
],
cmdclass={
'test': TestCommand,
},
zip_safe=False)