-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathsetup.py
52 lines (41 loc) · 1.56 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
#!/usr/bin/env python
import os
import sys
from setuptools import setup, find_packages
os.chdir(os.path.dirname(sys.argv[0]) or ".")
# Awesome hack to load `__version__`
__version__ = None
exec(open("src/winfspy/_version.py", encoding="utf-8").read())
requirements = open("requirements.txt").read().split("\n")
extra_requirements = {"test": ["pytest>=3.8.0", "pywin32"]}
extra_requirements["tests"] = extra_requirements["test"]
extra_requirements["all"] = extra_requirements["test"]
setup(
name="winfspy",
version=__version__,
description="CFFI bindings for WinFSP",
long_description=open("README.rst", "rt").read(),
url="https://github.com/Scille/winfspy",
author="Emmanuel Leblond",
author_email="[email protected]",
classifiers=[
"Development Status :: 4 - Beta",
"Operating System :: Microsoft :: Windows",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"License :: OSI Approved :: BSD License",
],
package_dir={"": "src"},
packages=find_packages(where="src", exclude=["_cffi_src", "_cffi_src.*"]),
install_requires=requirements,
setup_requires=requirements,
extras_require=extra_requirements,
tests_require=extra_requirements["tests"],
cffi_modules=["./src/_cffi_src/build_bindings.py:ffibuilder"],
# for cffi and test case .t files
zip_safe=False,
include_package_data=True,
)