|
1 | | -"""Static memory-efficient and fast Trie-like structures for Python.""" |
2 | | - |
3 | 1 | import glob |
4 | 2 | import itertools |
5 | 3 | import os.path |
6 | 4 |
|
7 | 5 | from setuptools import setup, Extension |
8 | 6 |
|
9 | 7 |
|
10 | | -# Note: keep requirements here to ease distributions packaging |
11 | | -tests_require = [ |
12 | | - "hypothesis", |
13 | | - "pytest", |
14 | | - "readme_renderer", |
15 | | -] |
16 | | -install_requires = [ |
17 | | - "setuptools", |
18 | | -] |
19 | | - |
20 | 8 | MARISA_ROOT_DIR = "marisa-trie" |
21 | 9 | MARISA_SOURCE_DIR = os.path.join(MARISA_ROOT_DIR, "lib") |
22 | 10 | MARISA_INCLUDE_DIR = os.path.join(MARISA_ROOT_DIR, "include") |
|
32 | 20 | *(glob.glob(os.path.join(MARISA_SOURCE_DIR, path)) for path in MARISA_FILES) |
33 | 21 | ) |
34 | 22 |
|
35 | | -DESCRIPTION = __doc__ |
36 | | -with open("README.rst", encoding="utf-8") as f1, open( |
37 | | - "CHANGES.rst", encoding="utf-8" |
38 | | -) as f2: |
39 | | - LONG_DESCRIPTION = f1.read() + f2.read() |
40 | | -LICENSE = "MIT" |
41 | | - |
42 | | -CLASSIFIERS = [ |
43 | | - "Development Status :: 4 - Beta", |
44 | | - "Intended Audience :: Developers", |
45 | | - "Intended Audience :: Science/Research", |
46 | | - "License :: OSI Approved :: MIT License", |
47 | | - "Programming Language :: Cython", |
48 | | - "Programming Language :: Python", |
49 | | - "Programming Language :: Python :: 3", |
50 | | - "Programming Language :: Python :: 3.8", |
51 | | - "Programming Language :: Python :: 3.9", |
52 | | - "Programming Language :: Python :: 3.10", |
53 | | - "Programming Language :: Python :: 3.11", |
54 | | - "Programming Language :: Python :: 3.12", |
55 | | - "Programming Language :: Python :: 3.13", |
56 | | - "Programming Language :: Python :: 3.14", |
57 | | - "Programming Language :: Python :: Implementation :: CPython", |
58 | | - "Topic :: Software Development :: Libraries :: Python Modules", |
59 | | - "Topic :: Scientific/Engineering :: Information Analysis", |
60 | | - "Topic :: Text Processing :: Linguistic", |
61 | | -] |
62 | 23 |
|
63 | 24 | setup( |
64 | | - name="marisa-trie", |
65 | | - version="1.2.1", |
66 | | - description=DESCRIPTION, |
67 | | - long_description=LONG_DESCRIPTION, |
68 | | - long_description_content_type="text/x-rst", |
69 | | - author="Mikhail Korobov", |
70 | | - author_email="kmike84@gmail.com", |
71 | | - license=LICENSE, |
72 | | - url="https://github.com/pytries/marisa-trie", |
73 | | - classifiers=CLASSIFIERS, |
74 | 25 | libraries=[ |
75 | 26 | ( |
76 | 27 | "libmarisa-trie", |
|
97 | 48 | include_dirs=[MARISA_INCLUDE_DIR], |
98 | 49 | ) |
99 | 50 | ], |
100 | | - python_requires=">=3.8", |
101 | | - install_requires=install_requires, |
102 | | - extras_require={ |
103 | | - "test": tests_require, |
104 | | - }, |
105 | 51 | ) |
0 commit comments