forked from geopython/stetl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
72 lines (62 loc) · 2.28 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
import logging
from setuptools import setup, find_packages
# To publish: python setup.py sdist upload -r pypi
# Have to do this after importing setuptools, which monkey patches distutils.
# from distutils.extension import Extension
logging.basicConfig()
log = logging.getLogger()
# Parse the version from the stetl module.
version = ''
with open('stetl/version.py', 'r') as f:
for line in f:
if line.find("__version__") >= 0:
version = line.split("=")[1].strip()
version = version.strip('"')
version = version.strip("'")
continue
with open('VERSION.txt', 'w') as f:
f.write(version)
# Get long description text from README.rst.
with open('README.md', 'r') as f:
readme = f.read()
with open('CREDITS.txt', 'r') as f:
credits = f.read()
with open('CHANGES.txt', 'r') as f:
changes = f.read()
with open('requirements-main.txt') as f:
requirements = f.read().splitlines()
setup(
name='Stetl',
version=version,
description="Transformation and conversion framework (ETL) mainly for geospatial data",
license='GNU GPL v3',
keywords='etl xsl gdal gis vector feature data gml xml',
author='Just van den Broecke',
author_email='[email protected]',
maintainer='Just van den Broecke',
maintainer_email='[email protected]',
url='http://github.com/geopython/stetl',
long_description=readme + "\n" + changes + "\n" + credits,
long_description_content_type="text/markdown",
packages=find_packages(exclude=['tests']),
namespace_packages=['stetl'],
include_package_data=True,
package_data={'': ['*.cfg','*.xml','*.gml']},
scripts=['bin/stetl'],
install_requires=requirements,
tests_require=['nose2'],
test_suite='nose2.collector.collector',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Console',
'Intended Audience :: Developers',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
'Operating System :: OS Independent',
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
'Topic :: Scientific/Engineering :: GIS',
],
zip_safe=True
)