Added setup.

This commit is contained in:
AB
2020-05-24 22:00:20 +03:00
parent 46e59d3eb6
commit 12994f774c
10 changed files with 70 additions and 9 deletions

45
setup.py Normal file
View File

@ -0,0 +1,45 @@
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",
version = "0.0.1",
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'])