File: setup.py

package info (click to toggle)
python-affine 2.3.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid
  • size: 160 kB
  • sloc: python: 767; makefile: 3
file content (34 lines) | stat: -rwxr-xr-x 983 bytes parent folder | download | duplicates (2)
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
import codecs
import os

from setuptools import find_packages, setup


# Parse the version from the affine module.
with codecs.open(os.path.join("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="sean@mapbox.com",
    url="https://github.com/sgillies/affine",
    license="BSD",
    packages=find_packages(exclude=["ez_setup", "examples", "tests"]),
    include_package_data=True,
    zip_safe=True,
    extras_require={"test": ["pytest>=3.0", "pytest-cov", "pydocstyle", "coveralls"]},
)