This repository has been archived by the owner on Jun 9, 2022. It is now read-only.
/
setup.py
58 lines (49 loc) · 1.62 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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# This file is part of fionautil.
# http://github.com/fitnr/fionautil
# Licensed under the GPLv3 license:
# http://http://opensource.org/licenses/GPL-3.0
# Copyright (c) 2015, Neil Freeman <contact@fakeisthenewreal.org>
from setuptools import setup, find_packages
try:
readme = open('README.rst').read()
except IOError:
readme = ''
shapely = 'shapely>=1.5.0,<2.0'
with open('fionautil/__init__.py') as i:
version = next(r for r in i.readlines() if '__version__' in r).split('=')[1].strip('"\' \n')
setup(
name='fionautil',
version=version,
description='helpful utilities for working with geodata with Fiona',
long_description=readme,
keywords='GIS',
author='Neil Freeman',
author_email='contact@fakeisthenewreal.org',
url='http://github.com/fitnr/fionautil/',
license='GNU General Public License v3 (GPLv3)',
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Operating System :: OS Independent',
],
packages=find_packages(),
include_package_data=True,
install_requires=[
'fiona>=1.7.1,<2.0',
],
extras_require={
'shapify': [shapely],
'shape': [shapely],
'length': [shapely],
'dissolve': [shapely],
'speed': ['numpy>1.9'],
'azimuth': ['pyproj>=1.9.5,<1.10'],
},
test_suite='tests',
)