-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
51 lines (46 loc) · 1.69 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
# SPDX-License-Identifier: GPL-3.0-or-later
import os
try:
from setuptools import find_packages, setup
except ImportError:
from distutils.core import setup
package_directory = os.path.abspath(os.path.dirname(__file__))
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="",
version="0.0.1",
package_dir={"": "src"},
author="Andrew Tavis McAllister",
author_email="[email protected]",
description="Check i18n/L10n keys and values",
long_description=open("README.md").read(),
long_description_content_type="text/markdown",
url="https://github.com/activist-org/i18n-check",
packages=find_packages(),
install_requires=requirements,
classifiers=[
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Topic :: Software Development :: Internationalization",
"Topic :: Software Development :: Localization",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"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",
"Programming Language :: Python :: 3.13",
"Operating System :: OS Independent",
],
python_requires=">=3.8",
)
if __name__ == "__main__":
setup(**setup_args)