forked from rasterio/affine
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
executable file
·31 lines (26 loc) · 956 Bytes
/
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
from codecs import open as codecs_open
from setuptools import setup, find_packages
# Parse the version from the affine module.
with open('affine/__init__.py') as f:
for line in f:
if "__version__" in line:
version = line.split("=")[1].strip()
version = version.strip('"').strip("'")
break
with codecs_open('README.rst', encoding='utf-8') as f:
readme = f.read()
setup(name='affine',
version=version,
description="Matrices describing affine transformation of the plane",
long_description=readme,
classifiers=[],
keywords='affine transformation matrix',
author='Sean Gillies',
author_email='[email protected]',
url='https://github.com/sgillies/affine',
license='BSD',
packages=find_packages(exclude=['ez_setup', 'examples', 'tests']),
include_package_data=True,
zip_safe=False,
extras_require = {'test': ['pytest']}
)