Repository navigation
Expand file tree
/
Copy pathsetup.py
More file actions
76 lines (66 loc) · 2.07 KB
/
Copy pathsetup.py
File metadata and controls
76 lines (66 loc) · 2.07 KB
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
# -*- coding: utf-8 -*-
import codecs
import os
import sys
from setuptools import setup, find_packages
from datetime import datetime
VERSION = '2.4.1'
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"
excluded_packages = ['test*']
if os.environ.get('CI'):
excluded_packages.append('samples')
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.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Framework :: Pyramid",
"Topic :: Internet :: WWW/HTTP",
"Topic :: Internet :: WWW/HTTP :: WSGI :: Application",
],
author='Karsten Deininger',
author_email='karsten.deininger@bl.ch',
url='https://gitlab.com/gf-bl/oereb_client',
keywords='web pyramid oereb client react openlayers',
packages=find_packages(exclude=excluded_packages),
include_package_data=True,
zip_safe=False,
install_requires=requires,
dependency_links=[],
entry_points={
'paste.app_factory': [
'main = oereb_client:main'
]
}
)