Da PixelFed a Mastodon e Twitter crossposter. I feed di Atom di pixelfed vengono utilizzati per controllare i nuovi post. Per pubblicare i post di https://PixelFed.uno su Twitter, è necessario un crossposter Mastodon-Twitter. https://pixelfed.uno
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

51 lines
1.7 KiB

#!/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='ozcan@oyd.org.tr',
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()