-
-
Notifications
You must be signed in to change notification settings - Fork 19
/
setup.py
59 lines (55 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
52
53
54
55
56
57
58
59
import re
import setuptools
from os.path import join
with open("README.md", "r") as fh:
long_description = fh.read()
with open(join('pleroma_bot', '__init__.py')) as f:
line = next(l for l in f if l.startswith('__version__'))
version = re.match('__version__ = [\'"]([^\'"]+)[\'"]', line).group(1)
setuptools.setup(
name="pleroma-bot",
version=version,
author="Roberto Chamorro",
author_email='[email protected]',
description="Mirror one or multiple Twitter accounts in Pleroma/Mastodon",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/robertoszek/pleroma-bot",
project_urls={
"Documentation": "https://robertoszek.github.io/pleroma-bot",
},
packages=['pleroma_bot'],
package_data={'pleroma_bot': ['locale/*/*/*.mo', 'pleroma-bot.service']},
include_package_data=True,
classifiers=[
'Environment :: Console',
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
],
entry_points={
'console_scripts': ['pleroma-bot=pleroma_bot.cli:init']
},
python_requires='>=3.6',
install_requires=[
'requests>=2.24.0',
'PyYAML>=5.3.1',
'requests-oauthlib>=1.3.0',
'feedparser>=6.0.10',
'beautifulsoup4>=4.9.3',
'tqdm>=4.64.1',
],
extras_require={
'lint': [
'flake8',
'flake8-quotes',
],
'test': [
'tox',
'pytest',
'requests-mock',
'pytest-cov',
'python-magic-bin ; platform_system=="Windows"'
],
}
)