-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsetup.py
78 lines (72 loc) · 2.38 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
"""Setup script for pyunormalize."""
import os
from setuptools import setup, find_packages
URL = "https://github.com/mlodewijck/pyunormalize"
def get_version():
version_file = os.path.join("pyunormalize", "_version.py")
namespace = {}
with open(version_file) as f:
exec(compile(f.read(), version_file, "exec"), namespace)
return namespace["__version__"]
with open("README.md", encoding="utf-8") as f:
README = f.read()
setup(
name="pyunormalize",
version=get_version(),
description=(
"Unicode normalization forms (NFC, NFKC, NFD, NFKD). A library "
"independent of the Python core Unicode database."
),
long_description=README,
long_description_content_type="text/markdown",
author="Marc Lodewijck",
author_email="mlodewijck@gmail.com",
license="MIT",
url=URL,
project_urls={
"Bug Reports": "{}/issues".format(URL),
"Source": "{}/".format(URL),
},
keywords=[
"Unicode",
"Unicode data",
"Unicode normalization",
"normalization",
"NFC",
"NFD",
"NFKC",
"NFKD",
"Unicode Normalization Forms",
"Canonical Ordering Algorithm",
"Canonical Composition Algorithm",
"canonical ordering",
"canonical composition",
"Hangul Syllable Composition Algorithm",
"Hangul Syllable Decomposition Algorithm",
"Hangul syllables",
"Hangul jamo characters",
],
# Trove classifiers
classifiers=[
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Software Development",
"Topic :: Software Development :: Internationalization",
"Topic :: Text Processing",
"Topic :: Text Processing :: Linguistic",
"Topic :: Utilities",
],
python_requires=">=3.6",
packages=find_packages(exclude=["tests"]),
include_package_data=True,
# All data files matched by MANIFEST.in will get included
# if they are inside a package directory.
zip_safe=False,
)