-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsetup.py
36 lines (29 loc) · 987 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
32
33
34
35
36
"""
Use this setup for Python3 builds of errator
"""
from distutils.core import setup
from Cython.Build import cythonize
ext_modules = []
ext_modules.extend(cythonize("_errator.pyx",
compiler_directives={'language_level': '3',
'embedsignature': True}))
version = "0.4"
def get_readme():
with open("README.rst", "r") as f:
readme = f.read()
return readme
setup(
name="errator",
ext_modules=ext_modules,
py_modules=["errator"],
version=version,
description="Errator allows you to create human-readable exception narrations",
long_description=get_readme(),
author="Tom Carroll",
author_email="[email protected]",
url="https://github.com/haxsaw/errator",
download_url="https://github.com/haxsaw/errator/archive/%s.tar.gz" % version,
keywords=["exception", "logging", "traceback", "stacktrace"],
classifiers=[],
license="MIT"
)