File: setup.py

package info (click to toggle)
python-socksipy 1.7.1%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 192 kB
  • sloc: python: 994; makefile: 4
file content (43 lines) | stat: -rwxr-xr-x 1,396 bytes parent folder | download
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",
    ),
)