This repository was archived by the owner on Dec 14, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathsetup.py
66 lines (58 loc) · 2.07 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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import versioneer
from setuptools import setup
from pip.req import parse_requirements
PACKAGE = 'src'
LONG = """This is an online data converter for GIS vector file formats.
It is based on the open source GDAL/OGR tools.
"""
def get_packages(package):
"""Return root package and all sub-packages."""
return [dirpath
for dirpath, _, _ in os.walk(package)
if os.path.exists(os.path.join(dirpath, '__init__.py'))]
def get_requirements():
requirements_file_path = os.path.join(
os.path.dirname(__file__),
'requirements.txt')
if os.path.exists(requirements_file_path):
parsed_requirements = parse_requirements(
requirements_file_path,
session=False)
requirements = [str(ir.req) for ir in parsed_requirements]
else:
requirements = []
return requirements
setup(
name="GeoConverter",
version=versioneer.get_version(),
cmdclass=versioneer.get_cmdclass(),
author="Josua Stähli",
author_email="jstaehli@hsr.ch",
maintainer="Marcel Huber",
maintainer_email="marcel.huber@hsr.ch",
description="GIS file format converter",
long_description=LONG,
license="MIT",
keywords=['GIS', 'format', 'converter', 'GDAL', 'OGR'],
url="https://github.com/geometalab/geoconverter",
packages=get_packages(PACKAGE),
install_requires=get_requirements(),
setup_requires=[],
classifiers=[
"Development Status :: 5 - Production/Stable",
"Environment :: Web Environment",
"Framework :: Django :: 1.5",
"Intended Audience :: Developers",
"Intended Audience :: Education",
"Intended Audience :: Information Technology",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python :: 3",
"Topic :: Scientific/Engineering :: GIS",
"Topic :: Scientific/Engineering :: Information Analysis"],
)