-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
71 lines (62 loc) · 1.93 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
# -*- coding: utf-8 -*-
import codecs
import os
import sys
from setuptools import setup, find_packages
from datetime import datetime
VERSION = '2.1.4'
test_mode = False
is_beta = False
timestamp = datetime.now().strftime('%Y%m%d%H%M')
if "--test" in sys.argv:
test_mode = True
sys.argv.remove("--test")
if "beta" in VERSION:
is_beta = True
here = os.path.abspath(os.path.dirname(__file__))
with codecs.open(os.path.join(here, 'README.rst'), encoding='utf-8') as f:
README = f.read()
with codecs.open(os.path.join(here, 'CHANGELOG.rst'), encoding='utf-8') as f:
CHANGES = f.read()
requires = [
'pyaml-env',
'pyramid',
'pyramid_mako',
'requests-futures',
'waitress'
]
if test_mode or is_beta:
development_status = "Development Status :: 4 - Beta"
else:
development_status = "Development Status :: 5 - Production/Stable"
setup(
name='oereb_client',
version=VERSION.split('-')[0] + '-dev{0}'.format(timestamp) if test_mode else VERSION,
description='ÖREB Client',
long_description=README + '\n\n' + CHANGES,
classifiers=[
"License :: OSI Approved :: BSD License",
development_status,
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Framework :: Pyramid",
"Topic :: Internet :: WWW/HTTP",
"Topic :: Internet :: WWW/HTTP :: WSGI :: Application",
],
author='Karsten Deininger',
author_email='[email protected]',
url='https://gitlab.com/gf-bl/oereb_client',
keywords='web pyramid oereb client react openlayers',
packages=find_packages(exclude=['samples', 'test*']),
include_package_data=True,
zip_safe=False,
install_requires=requires,
dependency_links=[],
entry_points={
'paste.app_factory': [
'main = oereb_client:main'
]
}
)