-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathsetup.py
69 lines (60 loc) · 2.14 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
from setuptools import setup
from ast import literal_eval
from sys import version_info
CURRENT_PYTHON = version_info[:2]
REQUIRED_PYTHON = (3, 8)
if CURRENT_PYTHON < REQUIRED_PYTHON:
raise RuntimeError('The "tgbox" library require Python v3.8+')
with open('tgbox/version.py', encoding='utf-8') as f:
version = literal_eval(f.read().split('=',1)[1].strip())
setup(
name = 'tgbox',
packages = ['tgbox', 'tgbox.api'],
version = version,
license = 'LGPL-2.1',
description = 'Encrypted cloud storage Protocol based on a Telegram API',
long_description = open('README.rst', encoding='utf-8').read(),
author = 'NonProjects',
author_email = 'thenonproton@pm.me',
url = 'https://github.com/NonProjects/tgbox',
download_url = f'https://github.com/NonProjects/tgbox/archive/refs/tags/v{version}.tar.gz',
long_description_content_type='text/x-rst',
package_data = {
'tgbox': ['tgbox/other'],
},
include_package_data = True,
install_requires = [
'aiosqlite==0.20.0',
'telethon==1.38.1',
'ecdsa==0.19.0',
'filetype==1.2.0',
'pysocks==1.7.1'
],
keywords = [
'Telegram', 'Cloud-Storage', 'Cloud',
'API', 'Asyncio', 'Non-official'
],
extras_require = {
'fast': [
'cryptography<45.0.0',
'cryptg==0.5.0.post0'
],
'doc': [
'sphinx-book-theme==1.1.3',
'sphinx-togglebutton==0.3.2'
]
},
classifiers = [
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'Topic :: Security :: Cryptography',
'Topic :: Software Development :: Libraries',
'Topic :: Software Development :: Libraries :: Python Modules',
'License :: OSI Approved :: GNU General Public License v2 (GPLv2)',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12'
]
)