-
Notifications
You must be signed in to change notification settings - Fork 9
/
setup.py
87 lines (80 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
# -*- coding: utf-8 -*-
################################ Begin license #################################
# Copyright (C) Laboratory of Imaging technologies,
# Faculty of Electrical Engineering,
# University of Ljubljana.
#
# This file is part of PyXOpto.
#
# PyXOpto is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# PyXOpto is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with PyXOpto. If not, see <https://www.gnu.org/licenses/>.
################################# End license ##################################
from setuptools import setup, find_packages
import os
import xopto
def long_description():
with open('README.md', 'r', encoding='utf-8') as fid:
readme = fid.read()
pos1 = readme.find('## Installation')
pos2 = readme.find('## Basic Monte Carlo')
readme_pypi = readme[:pos1] + readme[pos2:]
readme_pypi = readme_pypi.replace(
'(/docs/source/',
'(https://raw.githubusercontent.com/xopto/pyxopto/master/docs/source/'
)
readme_pypi = readme_pypi.replace(
'https://github.com/xopto/mcdataset/blob/master/docs/source/static/deposition-projection.gif',
'https://raw.githubusercontent.com/xopto/mcdataset/master/docs/source/static/deposition-projection.gif'
)
readme_pypi = readme_pypi.replace(
'(/examples/mcml/basic.py)',
'(https://github.com/xopto/pyxopto/blob/master/examples/mcml/basic.py)'
)
return readme_pypi
setup(
name='pyxopto',
version=xopto.__version__,
description='Python Monte Carlo light propagation tools',
long_description=long_description(),
long_description_content_type="text/markdown",
url='https://github.com/xopto/pyxopto',
author='XOpto team',
author_email='[email protected]',
license='GPLv3+',
packages=find_packages(
exclude=['pyxopto.egg-info*', 'build*', 'dist*', 'maintenance*',
'docs*', 'datasets*', 'mcdataset*', 'tmp*', 'xopto.tmp*']),
package_data={
'': ['*.c', '*.cpp', '*.h', '*.npz', '*.pkl', '*.md', '*.npy'],
},
#include_package_data=True,
install_requires=[
'scipy >= 1.4.1',
'numpy >= 1.18.4',
'matplotlib >= 1.18.1',
'pyopencl >= 2019.1.2',
'Shapely >= 1.6.4',
'Jinja2 >= 2.9.6',
'numba'
],
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)',
'Operating System :: POSIX :: Linux',
'Operating System :: Microsoft :: Windows',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
],
)