-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathsetup.py
More file actions
66 lines (62 loc) · 2.22 KB
/
Copy pathsetup.py
File metadata and controls
66 lines (62 loc) · 2.22 KB
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
import os
from glob import glob
from pathlib import Path
from Cython.Build import cythonize
from setuptools import Extension, find_packages, setup
with open("requirements.txt") as f:
requirements = list(map(str.strip, f.read().split("\n")))[:-1]
this_directory = Path(__file__).parent
long_description = (this_directory / "README.md").read_text()
setup(
name="ez_a_sync",
packages=find_packages(exclude=["tests", "tests.*"]),
use_scm_version={
"root": ".",
"relative_to": __file__,
"local_scheme": "no-local-version",
"version_scheme": "python-simplified-semver",
},
description="A library that makes it easy to define objects that can be used for both sync and async use cases.",
long_description=long_description,
long_description_content_type="text/markdown",
author="BobTheBuidler",
author_email="bobthebuidlerdefi@gmail.com",
url="https://github.com/BobTheBuidler/a-sync",
license="MIT",
classifiers=[
"Intended Audience :: Developers",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Programming Language :: Python :: Implementation :: CPython",
"Operating System :: OS Independent",
"Topic :: Software Development :: Libraries",
],
install_requires=requirements,
setup_requires=["setuptools_scm", "cython"],
python_requires=">=3.10,<3.15",
package_data={
"a_sync": ["py.typed", "*.pxd", "**/*.pxd"],
},
include_package_data=True,
ext_modules=cythonize(
[
Extension(
os.path.splitext(pyx_path)[0].replace(os.path.sep, "."),
sources=[pyx_path],
include_dirs=["include"],
)
for pyx_path in glob("a_sync/**/*.pyx", recursive=True)
],
compiler_directives={
"language_level": 3,
"embedsignature": True,
"linetrace": True,
},
),
zip_safe=False,
)