-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
executable file
·51 lines (46 loc) · 1.7 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
#!/usr/bin/env python3
from setuptools import setup
from setuptools import find_packages
import os
import pfxposter
from crontab import CronTab
with open("README.md", "r") as fh:
long_description = fh.read()
def _post_install():
cron_job = CronTab(user=os.getenv("USER"))
autochecker = cron_job.new(command='pfxposter')
autochecker.minute.every(1)
cron_job.write()
setup(
name='pfxposter',
version=pfxposter.__version__,
description='A simple PixelFed to Mastodon/Twitter crossposter',
long_description=long_description,
long_description_content_type="text/markdown",
url='https://github.com/ooguz/pfxposter',
author='Özcan Oğuz',
author_email='[email protected]',
license='GLWTS(Good Luck With That Shit) Public License',
packages=find_packages(),
zip_safe=False,
include_package_data=True,
project_urls={
"Bug Tracker": "https://github.com/ooguz/pfxposter/issues",
"Source Code": "https://github.com/ooguz/pfxposter",
},
classifiers=[
"Development Status :: 4 - Beta",
"Environment :: No Input/Output (Daemon)",
"Intended Audience :: Developers",
"License :: Public Domain",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: Implementation :: PyPy",
"Topic :: Internet",
],
entry_points={"console_scripts": ["pfxposter = pfxposter.poster:main"]},
#data_files=[('/home/{}/.pfxposter'.format(os.getenv("USER")), ['data/config.toml'])],
python_requires=">=3.6",
install_requires=['Mastodon.py>=1.5.1', 'atoma>=0.0.17', 'toml>=0.10.1', 'python-crontab>=2.5.1', 'requests']
)
_post_install()