-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
65 lines (59 loc) · 1.8 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
# -*- coding: utf-8 -*-
"""
recent_topics
~~~~~~~~~~~~~~
Track unread topics.
:copyright: (c) 2018 by Михаил Лебедев.
:license: BSD License, see LICENSE for more details.
"""
import ast
import re
from setuptools import find_packages, setup
from setuptools.command.install import install
with open("recent_topics/__init__.py", "rb") as f:
version_line = re.search(
r"__version__\s+=\s+(.*)", f.read().decode("utf-8")
).group(1)
version = str(ast.literal_eval(version_line))
setup(
name="flaskbb-plugin-recent_topics",
version=version,
license="BSD License",
author="Михаил Лебедев",
author_email="micha030201@gmail.com",
description="Track unread topics.",
long_description=__doc__,
keywords="flaskbb plugin",
packages=find_packages("."),
include_package_data=True,
package_data={
"": ["recent_topics/translations/*/*/*.mo",
"recent_topics/translations/*/*/*.po"]
},
zip_safe=False,
platforms="any",
entry_points={
"flaskbb_plugins": [
"recent_topics = recent_topics"
]
},
install_requires=[
"FlaskBB" # pin to a version to has pluggy integration
],
setup_requires=[
"Babel",
],
classifiers=[
"Development Status :: 5 - Production/Stable",
"Environment :: Web Environment",
"Environment :: Plugins",
"Framework :: Flask",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Topic :: Internet :: WWW/HTTP :: Dynamic Content",
"Topic :: Software Development :: Libraries :: Python Modules"
],
)