-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathsetup.py
More file actions
44 lines (38 loc) · 1.54 KB
/
setup.py
File metadata and controls
44 lines (38 loc) · 1.54 KB
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
import os, sys
from setuptools import setup, find_packages
_here = os.path.abspath(os.path.dirname(__file__))
def get_version():
with open(os.path.join(_here, "atomic_p2p", "__init__.py"), encoding="UTF-8") as f:
text = f.read()
version = text.split("__version__ = \"")[1].split("\"")[0]
return version
def get_long_description():
with open(os.path.join(_here, "README.md"), encoding="UTF-8") as f:
return f.read()
setup(
name = "AtomicP2P",
packages = find_packages(),
version = get_version(),
license = "GNU Lesser General Public License v2.1",
description = "A P2P framework which base on multi-process and threading with DNS syncing mechanism.",
long_description = get_long_description(),
long_description_content_type = "text/markdown",
author = "Clooooode",
author_email = "jackey8616@gmail.com",
url = "https://github.com/YuntechNet/AtomicP2P",
download_url = "https://github.com/YuntechNet/AtomicP2P/releases/tag/{}".format(get_version()),
keywords = ["peer-to-peer", "P2P", "p2p", "distribute", "HA", "High-Availability"],
install_requires = [
"dnspython==1.16.0",
"pycryptodome==3.8.1",
"pyOpenSSL==19.0.0"
],
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: GNU Lesser General Public License v2 or later (LGPLv2+)",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6"
],
python_requires=">=3.5"
)