-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
83 lines (72 loc) · 2.04 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
#!/usr/bin/env python3
from codecs import open
from os.path import dirname, join
from subprocess import call
from setuptools import setup, find_packages, Extension, Command
def read(fname):
return open(join(dirname(__file__), fname)).read()
class RunTests(Command):
"""Run all tests."""
description = "run tests"
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
"""Run all tests!"""
errno = call(["py.test", "--verbose"])
raise SystemExit(errno)
setup(
name="numkey",
version="1.6.29.1",
keywords=("numkey E.164 shortcode lvn did encoding"),
description="NumKey Bindings for Python",
long_description=read("../README.md"),
author="Nicola Asuni",
author_email="[email protected] ",
url="https://github.com/Vonage/numkey",
license="RESERVED",
platforms="Linux",
packages=find_packages(exclude=["doc", "test*"]),
ext_modules=[
Extension(
"numkey",
["numkey/pynumkey.c"],
include_dirs=["../c/src/numkey", "numkey"],
extra_compile_args=[
"-O3",
"-pedantic",
"-std=c99",
"-Wall",
"-Wextra",
"-Wno-strict-prototypes",
"-Wunused-value",
"-Wcast-align",
"-Wundef",
"-Wformat-security",
"-Wshadow",
"-Wno-format-overflow",
"-I../c/src/numkey",
],
)
],
classifiers=[
"Development Status :: 5 - Production/Stable",
"License :: RESERVED",
"Intended Audience :: Developers",
"Programming Language :: C",
"Programming Language :: Python",
],
extras_require={
"test": [
"coverage",
"pytest",
"pytest-benchmark",
"pytest-cov",
"pycodestyle",
"black",
]
},
cmdclass={"test": RunTests},
)