-
Notifications
You must be signed in to change notification settings - Fork 23
/
setup.py
87 lines (75 loc) · 2.2 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
79
80
81
82
83
84
85
86
87
#!/usr/bin/env python
#coding:utf-8
from __future__ import unicode_literals
from setuptools import setup
import setuptools
import codecs
import sys
if sys.version_info[0:2] < (3, 9):
raise RuntimeError('Requires Python 3.9 or newer')
# adds version to the local namespace
VERSION = {}
with open('packtools/version.py') as fp:
exec(fp.read(), VERSION)
INSTALL_REQUIRES = [
'lxml>=4.9.2',
'langcodes>=3.3.0',
'picles.plumber>=0.11',
'Pillow',
]
EXTRAS_REQUIRE = {
'webapp':[
'Flask',
'flask-babel',
'Flask-WTF',
'Werkzeug',
]
}
TESTS_REQUIRE = [
'Flask-Testing>=0.6.2',
'flask-babel',
'Flask-WTF',
'python-magic',
'charset-normalizer<3.0',
'aiohttp',
'tenacity',
'requests',
]
setup(
name="packtools",
version=VERSION['__version__'],
description="Handle SPS packages like a breeze.",
long_description=codecs.open('README.md', mode='r', encoding='utf-8').read() + '\n\n' +
codecs.open('HISTORY.md', mode='r', encoding='utf-8').read(),
long_description_content_type="text/markdown",
author="SciELO",
author_email="[email protected]",
maintainer="SciELO Team",
maintainer_email="[email protected]",
license="BSD License",
url="http://docs.scielo.org",
packages=setuptools.find_packages(
exclude=["*.tests", "*.tests.*", "tests.*", "tests", "docs"]
),
include_package_data=True,
classifiers=[
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Topic :: Software Development :: Libraries :: Python Modules",
],
tests_require=TESTS_REQUIRE,
test_suite='tests',
install_requires=INSTALL_REQUIRES,
extras_require=EXTRAS_REQUIRE,
entry_points={
"console_scripts":[
"stylechecker=packtools.stylechecker:main",
"htmlgenerator=packtools.htmlgenerator:main",
"package_optimiser=packtools.package_optimiser:main",
"package_maker=packtools.package_maker:main",
]
}
)