-
Notifications
You must be signed in to change notification settings - Fork 26
/
Copy pathsetup.py
61 lines (44 loc) · 1.71 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
#!/usr/bin/env python3
import sys
import os
from setuptools import find_packages, setup
from setuptools_rust import RustExtension
PACKAGE_NAME = "cryptg"
PACKAGE_VERSION = "0.5.0.post0"
ENVVAR_VERSION_SUFFIX = "PYPI_SETUP_VERSION_SUFFIX"
def main(args):
with open("README.rst", encoding='utf-8') as f:
long_description = f.read()
url = "https://github.com/cher-nov/" + PACKAGE_NAME
setup(
name=PACKAGE_NAME,
version=PACKAGE_VERSION+os.environ.get(ENVVAR_VERSION_SUFFIX, ""),
description="Cryptographic utilities for Telegram.",
long_description=long_description,
long_description_content_type="text/x-rst",
url=url,
download_url=url+"/releases",
author="Dmitry D. Chernov; Lonami E",
author_email="[email protected]",
license="CC0",
# https://pypi.python.org/pypi?:action=list_classifiers
classifiers=[
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Topic :: Security :: Cryptography",
"License :: CC0 1.0 Universal (CC0 1.0) Public Domain Dedication",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
],
keywords="telegram crypto cryptography mtproto aes",
packages=find_packages(),
python_requires=">=3.7",
rust_extensions=[RustExtension("cryptg.cryptg")],
zip_safe=False,
)
if __name__ == '__main__':
main(sys.argv)