-
Notifications
You must be signed in to change notification settings - Fork 69
/
setup.py
58 lines (51 loc) · 1.79 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
import os
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
from setuptools import find_packages
package_directory = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(package_directory, "README.md"), encoding="utf-8") as fh:
long_description = fh.read()
with open(
os.path.join(package_directory, "requirements.txt"), encoding="utf-8"
) as req_file:
requirements = req_file.readlines()
on_rtd = os.environ.get("READTHEDOCS") == "True"
if on_rtd:
requirements = []
setup_args = dict(
name="scribe-data",
packages=find_packages(where="src"),
package_dir={"": "src"},
version="3.3.0",
author="Andrew Tavis McAllister",
author_email="[email protected]",
classifiers=[
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Intended Audience :: Education",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Operating System :: OS Independent",
],
python_requires=">=3.9",
install_requires=requirements,
package_data={"": ["2021_ranked.tsv"]},
include_package_data=True,
description="Wikidata, Wiktionary and Wikipedia language data extraction",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/scribe-org/Scribe-Data",
entry_points={
"console_scripts": [
"scribe-data=scribe_data.cli.main:main",
],
},
)
if __name__ == "__main__":
setup(**setup_args)