Browse Source

Turn this into a proper python module using setup.py...

Use requirements in setup.py for dev via requirements.txt...
tags/v0.1.0
John-Mark Gurney 5 years ago
parent
commit
3798779670
4 changed files with 43 additions and 4 deletions
  1. +2
    -2
      Makefile
  2. +0
    -0
      ntunnel/__init__.py
  3. +4
    -2
      requirements.txt
  4. +37
    -0
      setup.py

+ 2
- 2
Makefile View File

@@ -1,10 +1,10 @@
VIRTUALENV ?= virtualenv
VRITUALENVARGS =

MODULES=ntunnel.py
FILES=ntunnel/__init__.py

test:
(echo $(MODULES) | entr sh -c 'python -m coverage run -m unittest $(basename $(MODULES)) && coverage report --omit=p/\* -m -i')
(echo $(FILES) | entr sh -c 'python -m coverage run -m unittest ntunnel && coverage report --omit=p/\* -m -i')

env:
($(VIRTUALENV) $(VIRTUALENVARGS) p && . ./p/bin/activate && pip install -r requirements.txt)

ntunnel.py → ntunnel/__init__.py View File


+ 4
- 2
requirements.txt View File

@@ -1,2 +1,4 @@
coverage
-e git+https://github.com/jmgurney/noiseprotocol.git@f1c048242c807328724c8119505293975fe7c614#egg=noiseprotocol
# use setup.py for dependancy info
-e .

-e .[dev]

+ 37
- 0
setup.py View File

@@ -0,0 +1,37 @@
#!/usr/bin/env python

from setuptools import setup

# Install requirements for git:
# https://stackoverflow.com/questions/18026980/python-setuptools-how-can-i-list-a-private-repository-under-install-requires

setup(name='ntunnel',
version='0.1.0',
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/ntunnel',
packages=[ 'ntunnel', ],
python_requires='~=3.7',
install_requires=[
'noiseprotocol @ git+https://github.com/jmgurney/noiseprotocol.git@f1c048242c807328724c8119505293975fe7c614'
],
extras_require = {
'dev': [ 'coverage' ],
},
entry_poitns={
'console_scripts': {
'ntunnel': 'ntunnel:main',
}
}
)

Loading…
Cancel
Save