/
setup.py
65 lines (57 loc) · 1.96 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
#######################################################################
# This file is part of dennis.
#
# Copyright (C) 2013-2022 Will Kahn-Greene
# Licensed under the Simplified BSD License. See LICENSE for full
# license.
#######################################################################
from setuptools import setup, find_packages
import re
import os
READMEFILE = "README.rst"
VERSIONFILE = os.path.join("dennis", "__init__.py")
VSRE = r"""^__version__ = ['"]([^'"]*)['"]"""
def get_version():
version_file = open(VERSIONFILE, "rt").read()
return re.search(VSRE, version_file, re.M).group(1)
INSTALL_REQUIRES = [
"polib>=1.0.8",
"click>=6",
]
setup(
name="dennis",
version=get_version(),
description=(
"Utilities for working with gettext PO and POT files to ease development "
"and improve localization quality"
),
long_description=open(READMEFILE).read(),
license="Simplified BSD License",
maintainer="Mozilla",
author="Will Kahn-Greene",
keywords="l10n localization gettext PO POT lint translate development",
url="https://github.com/mozilla/dennis",
zip_safe=True,
packages=find_packages(),
include_package_data=True,
install_requires=INSTALL_REQUIRES,
entry_points="""
[console_scripts]
dennis-cmd=dennis.cmdline:click_run
""",
python_requires=">=3.8",
classifiers=[
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"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 :: Only",
"Topic :: Software Development :: Localization",
],
)