forked from pnnl/buildingid-py
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
executable file
·94 lines (80 loc) · 2.36 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
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# pnnl-buildingid: setup.py
#
# Copyright (c) 2018, Battelle Memorial Institute
# All rights reserved.
#
# See LICENSE.txt and WARRANTY.txt for details.
from setuptools import setup, find_packages
from codecs import open
from os import path
here = path.abspath(path.dirname(__file__))
with open(path.join(here, 'README.rst'), encoding='utf-8') as f:
long_description = f.read()
def get_version(relpath):
with open(path.join(here, relpath), encoding='cp437') as f:
for line in f:
if '__version__' in line:
if '"' in line:
return line.split('"')[1]
elif "'" in line:
return line.split("'")[1]
return None
setup(
name='pnnl-buildingid',
version=get_version('buildingid/version.py'),
description='Unique Building Identifier (UBID)',
long_description=long_description,
url='https://github.com/pnnl/buildingid',
author='Mark Borkum',
author_email='[email protected]',
license='BSD-2-Clause',
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'Topic :: Scientific/Engineering :: GIS',
'License :: OSI Approved :: BSD License',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
],
# keywords=[],
packages=find_packages(exclude=['tests*']),
install_requires=[
'click',
'click_log',
'numpy==1.26.4',
'openlocationcode',
'pandas>=2.2.2,<3',
'pyqtree',
'shapely',
'tqdm',
],
setup_requires=[
'requests',
],
python_requires='>=3',
extras_require={
'dev': [
'check-manifest',
],
'test': [
'coverage',
'nose',
],
},
entry_points={
'console_scripts': [
'buildingid=buildingid.command_line:cli',
],
},
)