-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
60 lines (53 loc) · 1.87 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
import os
from mypyc.build import mypycify
from setuptools import find_packages, setup
version = ""
with open("stringmatch/__init__.py", encoding="utf-8") as f:
for line in f:
if line.startswith("__version__"):
version = line.split("=")[1].strip().strip('"')
required_packages = []
with open("requirements.txt", "r", encoding="utf-8") as f:
required_packages = f.read().splitlines()
readme = ""
with open("README.md", "r", encoding="utf-8") as f:
readme = f.read()
all_files = [
f"stringmatch/{file}"
for file in os.listdir("./stringmatch")
if file.endswith(".py")
]
# We can append mypy flags to the list of files.
all_files.append("--ignore-missing-imports")
setup(
name="stringmatch",
author="atomflunder",
author_email="[email protected]",
url="https://github.com/atomflunder/stringmatch",
keywords="stringmatch string match fuzzy matching",
license="MIT",
description="A library to match and compare strings.",
long_description=readme,
long_description_content_type="text/markdown",
packages=find_packages(),
package_data={"stringmatch": ["py.typed"]},
ext_modules=mypycify(all_files), # type: ignore
version=version,
install_requires=required_packages,
python_requires=">=3.9",
setup_requires=["pytest-runner"],
tests_require=["pytest"],
test_suite="tests",
classifiers=[
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
],
)