-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.py
54 lines (43 loc) · 1.4 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
#!/usr/bin/env python
import os.path
from setuptools import setup, find_packages
from rust_ext import build_rust_cmdclass, install_lib_including_rust
long_description = (
open("README.rst").read()
)
setup(
name="certitude",
version="1.0.1",
description="A library that provides access to system certificate stores.",
long_description=open("README.rst").read(),
url="https://github.com/python-hyper/certitude/",
license="MIT",
author="Cory Benfield",
author_email="[email protected]",
setup_requires=[
"cffi>=1.0.0",
],
install_requires=[
"cffi>=1.0.0",
],
cffi_modules=["src/certitude/build.py:ffi"],
packages=find_packages('src'),
package_dir={'': 'src'},
cmdclass={
"build_rust": build_rust_cmdclass(
os.path.join("src", "rust-certitude", "c-certitude", "Cargo.toml")
),
"install_lib": install_lib_including_rust,
},
ext_package="certitude",
classifiers=[
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.4",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
]
)