This repository has been archived by the owner on Jun 3, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathsetup.py
61 lines (50 loc) · 1.43 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
# -*- coding: utf-8 -*-
import os
import re
from setuptools import setup, find_packages
here = os.path.abspath(os.path.dirname(__file__))
requirements = (
'cython',
'numpy',
'triangle',
'psycopg2',
'flask',
'flask-restplus',
'pyyaml'
)
prod_requirements = (
'uwsgi'
)
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='building_server',
version=find_version('building_server', '__init__.py'),
description="Light OpenSource PointCloud Server",
url='https://github.com/Oslandia/building-server',
author='dev',
author_email='[email protected]',
license='GPLv3',
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'Programming Language :: Python :: 2.7',
],
packages=find_packages(),
install_requires=requirements,
extras_require={
'prod': prod_requirements,
}
)