File: setup.py

package info (click to toggle)
python-snuggs 1.4.7-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 100 kB
  • sloc: python: 327; makefile: 8
file content (34 lines) | stat: -rw-r--r-- 1,001 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
"""Build the snuggs package."""

from codecs import open as codecs_open
from setuptools import setup, find_packages


# Get the long description from the relevant file
with codecs_open("README.rst", encoding="utf-8") as f:
    long_description = f.read()

with open("snuggs/__init__.py") as f:
    for line in f:
        if line.startswith("__version__"):
            version = line.split("=")[1]
            version = version.strip().strip('"')
            break

setup(
    name="snuggs",
    version=version,
    description=u"Snuggs are s-expressions for Numpy",
    long_description=long_description,
    classifiers=[],
    keywords="",
    author=u"Sean Gillies",
    author_email="sean@mapbox.com",
    url="https://github.com/mapbox/snuggs",
    license="MIT",
    packages=find_packages(exclude=["ez_setup", "examples", "tests"]),
    include_package_data=True,
    zip_safe=False,
    install_requires=["numpy", "pyparsing>=2.1.6"],
    extras_require={"test": ["pytest", "hypothesis"]},
)