Files
gaspar/setup.py

46 lines
1.2 KiB
Python
Raw Normal View History

2020-05-24 22:00:20 +03:00
import os, subprocess
from setuptools import setup
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
def get_requires(rfile):
"""Get list of required Python packages."""
requires = list()
with open(rfile, "r") as reqfile:
for line in reqfile.readlines():
requires.append(line.strip())
return requires
setup(
name = "gaspar",
2021-02-27 02:30:17 +03:00
version = "0.0.5",
2020-05-24 22:00:20 +03:00
author = "UltraDesu",
author_email = "ultradesu@hexor.ru",
description = ("Telegram bot. Keep an eye on rutracker.org topics and let you "
"know if it has been updated."),
license = "WTFPL",
keywords = "telegram bot",
url = "https://github.com/house-of-vanity/gapsar",
packages=['gaspar'],
long_description=read('README'),
classifiers=[
"Development Status :: 3 - Alpha",
"Topic :: Utilities",
],
entry_points={
'console_scripts': [
'gaspar = gaspar.gaspar:main',
]
},
data_files=[
("/usr/share/gaspar", ['gaspar/scheme.sql']),
],
install_requires=get_requires("./requirements.txt")
)
os.umask(0o666)
subprocess.call(['chmod', '-R', 'a+rwX', '/usr/share/gaspar'])