-
Notifications
You must be signed in to change notification settings - Fork 52
/
setup.py
109 lines (95 loc) · 3.28 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
107
108
109
# -*- coding: utf-8 -*-
import os
import re
from setuptools import setup, find_packages
here = os.path.abspath(os.path.dirname(__file__))
requirements = (
'wheel',
'numpy',
'psycopg2',
'pyproj',
'pywavefront',
'pyyaml',
'scipy',
'shapely',
'alphashape',
'py3dtiles @ git+https://gitlab.com/py3dtiles/py3dtiles@main',
'py3dtiles_temporal_extension @ git+https://gitlab.com/VCityTeam/py3dtiles_temporal_extension',
'earclip @ git+https://github.com/lionfish0/earclip',
'Pillow',
'ifcopenshell',
'sortedcollections',
'triangle'
)
dev_requirements = (
'flake8',
'line_profiler',
'pytest',
'pytest-cov',
'autopep8',
'pdoc3'
)
prod_requirements = (
'testing.postgresql @ git+https://github.com/tk0miya/testing.postgresql'
)
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
def find_version(*file_paths):
"""
see https://github.com/pypa/sampleproject/blob/master/setup.py
"""
with open(os.path.join(here, *file_paths), 'r') as f:
version_file = f.read()
# The version line must have the form
# __version__ = 'ver'
version_match = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]",
version_file, re.M)
if version_match:
return version_match.group(1)
raise RuntimeError("Unable to find version string. "
"Should be at the first line of __init__.py.")
setup(
name='py3dtilers',
version=find_version('py3dtilers', '__init__.py'),
description="Python module for computing 3D tiles",
long_description=read('README.md'),
url='https://github.com/VCityTeam/py3dtilers',
author='Université de Lyon',
author_email='[email protected]',
license='Apache License Version 2.0',
python_requires=">3.8,<3.13",
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
],
packages=find_packages(),
install_requires=requirements,
test_suite="tests",
extras_require={
'dev': dev_requirements,
'prod': prod_requirements
},
entry_points={
'console_scripts': ['citygml-tiler=py3dtilers.CityTiler:main',
'geojson-tiler=py3dtilers.GeojsonTiler:main',
'ifc-tiler=py3dtilers.IfcTiler:main',
'citygml-tiler-temporal=py3dtilers.CityTiler:main_temporal',
'obj-tiler=py3dtilers.ObjTiler:main',
'tileset-reader=py3dtilers.TilesetReader:main',
'tileset-merger=py3dtilers.TilesetReader:merger_main'],
},
data_files=[('py3dtilers/CityTiler',
['py3dtilers/CityTiler/CityTilerDBConfigReference.yml']
),
('py3dtilers/Color',
['py3dtilers/Color/default_config.json']
),
('py3dtilers/Color',
['py3dtilers/Color/citytiler_config.json']
)],
zip_safe=False # zip packaging conflicts with Numba cache (#25)
)