-
Notifications
You must be signed in to change notification settings - Fork 260
/
setup.py
executable file
·43 lines (37 loc) · 1.36 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
#!/usr/bin/env python
import os
import sys
import re
from setuptools import setup
base_path = os.path.dirname(__file__)
requirements = []
if os.name == "nt" and sys.version_info < (3, 0):
# Required due to missing socket.inet_ntop & socket.inet_pton method in Windows Python 2.x
requirements.append("win-inet-pton")
with open("README.md") as f:
long_description = f.read()
with open(os.path.join(base_path, "socks.py")) as f:
VERSION = re.compile(r'.*__version__ = "(.*?)"', re.S).match(f.read()).group(1)
setup(
name="PySocks",
version=VERSION,
description="A Python SOCKS client module. See https://github.com/Anorov/PySocks for more information.",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/Anorov/PySocks",
license="BSD",
author="Anorov",
author_email="anorov.vorona@gmail.com",
keywords=["socks", "proxy"],
py_modules=["socks", "sockshandler"],
install_requires=requirements,
python_requires=">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*",
classifiers=(
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.4",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
),
)