|
- #!/usr/bin/env python
-
- def getversion(fname):
- with open(fname) as fp:
- v = [ x for x in fp.readlines() if x.startswith('__version__') ]
- if len(v) != 1:
- raise ValueError('too many lines start with __version__')
- return v[0].split("'")[1]
-
- from setuptools import setup
- import os.path
- __version__ = getversion(os.path.join('privrdns', '__init__.py'))
-
- # Install requirements for git:
- # https://stackoverflow.com/questions/18026980/python-setuptools-how-can-i-list-a-private-repository-under-install-requires
-
- setup(name='privrdns',
- version=__version__,
- description='A socket tunning tool using the Noise Protocol',
- author='John-Mark Gurney',
- author_email='jmg@funkthat.com',
- classifiers=[
- 'Development Status :: 3 - Alpha',
- 'Environment :: Console',
- 'Intended Audience :: Information Technology',
- 'Intended Audience :: System Administrators',
- 'License :: OSI Approved :: BSD License',
- 'Topic :: Security',
- 'Topic :: System :: Networking',
- 'Topic :: Utilities',
- ],
- url='https://www.funkthat.com/gitea/jmg/privrdns',
- packages=[ 'privrdns', ],
- python_requires='~=3.7',
- install_requires=[
- 'ntunnel @ git+https://www.funkthat.com/gitea/jmg/ntunnel.git@c203547c28e935d11855601ce4e4f31db4e9065d',
- 'dnspython @ git+https://github.com/rthalley/dnspython.git',
- 'dnslib @ git+https://github.com/paulc/dnslib.git',
- ],
- extras_require = {
- 'dev': [ 'coverage' ],
- },
- entry_points={
- 'console_scripts': [
- 'privrdns = privrdns.__main__:main',
- ]
- }
- )
|