File: setup.py

package info (click to toggle)
python-tiny-proxy 0.2.1-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 212 kB
  • sloc: python: 1,154; makefile: 3
file content (45 lines) | stat: -rw-r--r-- 1,179 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
44
45
#!/usr/bin/env python
import os
import re
import sys

from setuptools import setup


def get_version():
    here = os.path.dirname(os.path.abspath(__file__))
    filename = os.path.join(here, 'tiny_proxy', '__init__.py')
    contents = open(filename).read()
    pattern = r"^__version__ = '(.*?)'$"
    return re.search(pattern, contents, re.MULTILINE).group(1)


def get_long_description():
    with open('README.md', mode='r', encoding='utf8') as f:
        return f.read()


if sys.version_info < (3, 7):
    raise RuntimeError('tiny-proxy requires Python 3.7+')


setup(
    name='tiny_proxy',
    author='Roman Snegirev',
    author_email='snegiryev@gmail.com',
    version=get_version(),
    license='Apache 2',
    url='https://github.com/romis2012/tiny-proxy',
    description='Simple proxy server (SOCKS4(a), SOCKS5(h), HTTP tunnel)',
    long_description=get_long_description(),
    long_description_content_type='text/markdown',
    packages=[
        'tiny_proxy',
        'tiny_proxy._proxy',
        'tiny_proxy._handlers',
    ],
    keywords='socks socks5 socks4 http proxy server asyncio trio anyio',
    install_requires=[
        'anyio>=3.6.1,<5.0',
    ],
)