2020-08-24 10:52:30 +02:00
|
|
|
#!/usr/bin/env python3
|
2020-08-24 07:36:37 +02:00
|
|
|
|
|
|
|
from setuptools import setup
|
|
|
|
from setuptools import find_packages
|
2020-08-24 10:52:30 +02:00
|
|
|
import os
|
|
|
|
import pfxposter
|
2020-08-24 11:17:21 +02:00
|
|
|
from crontab import CronTab
|
2020-08-24 10:52:30 +02:00
|
|
|
|
|
|
|
with open("README.md", "r") as fh:
|
|
|
|
long_description = fh.read()
|
|
|
|
|
2020-08-24 11:17:21 +02:00
|
|
|
def _post_install():
|
|
|
|
cron_job = CronTab(user=os.getenv("USER"))
|
|
|
|
autochecker = cron_job.new(command='pfxposter')
|
|
|
|
autochecker.minute.every(1)
|
|
|
|
cron_job.write()
|
2020-08-24 07:36:37 +02:00
|
|
|
|
|
|
|
setup(
|
2020-08-24 10:52:30 +02:00
|
|
|
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='ozcan@oyd.org.tr',
|
|
|
|
license='GLWTS(Good Luck With That Shit) Public License',
|
2020-08-24 07:36:37 +02:00
|
|
|
packages=find_packages(),
|
|
|
|
zip_safe=False,
|
2020-08-24 11:17:21 +02:00
|
|
|
include_package_data=True,
|
2020-08-24 10:52:30 +02:00
|
|
|
project_urls={
|
|
|
|
"Bug Tracker": "https://github.com/ooguz/pfxposter/issues",
|
|
|
|
"Source Code": "https://github.com/ooguz/pfxposter",
|
|
|
|
},
|
2020-08-24 07:36:37 +02:00
|
|
|
classifiers=[
|
|
|
|
"Development Status :: 4 - Beta",
|
2020-08-24 10:52:30 +02:00
|
|
|
"Environment :: No Input/Output (Daemon)",
|
2020-08-24 07:36:37 +02:00
|
|
|
"Intended Audience :: Developers",
|
2020-08-24 10:52:30 +02:00
|
|
|
"License :: Public Domain",
|
2020-08-24 07:36:37 +02:00
|
|
|
"Operating System :: POSIX :: Linux",
|
|
|
|
"Programming Language :: Python :: 3.6",
|
|
|
|
"Programming Language :: Python :: Implementation :: PyPy",
|
2020-08-24 10:52:30 +02:00
|
|
|
"Topic :: Internet",
|
2020-08-24 07:36:37 +02:00
|
|
|
],
|
2020-08-24 13:10:20 +02:00
|
|
|
entry_points={"console_scripts": ["pfxposter = pfxposter.poster:main"]},
|
2020-08-24 14:14:00 +02:00
|
|
|
#data_files=[('/home/{}/.pfxposter'.format(os.getenv("USER")), ['data/config.toml'])],
|
2020-08-24 07:36:37 +02:00
|
|
|
python_requires=">=3.6",
|
2020-08-24 13:10:20 +02:00
|
|
|
install_requires=['Mastodon.py>=1.5.1', 'atoma>=0.0.17', 'toml>=0.10.1', 'python-crontab>=2.5.1', 'requests']
|
2020-08-24 10:52:30 +02:00
|
|
|
)
|
2020-08-24 11:17:21 +02:00
|
|
|
|
|
|
|
_post_install()
|