Browse Source

bring in my standard testing framework... update setup.py add some

extras_require for dev, and set versions properly...
main
John-Mark Gurney 4 years ago
parent
commit
b506b3d40c
3 changed files with 22 additions and 1 deletions
  1. +14
    -0
      Makefile
  2. +4
    -0
      requirements.txt
  3. +4
    -1
      setup.py

+ 14
- 0
Makefile View File

@@ -0,0 +1,14 @@
PROJNAME=aiosocks
VIRTUALENV ?= virtualenv-3.7
VRITUALENVARGS =

FILES=$(PROJNAME)/*.py tests/*.py

test:
(ls $(FILES) | entr sh -c 'python -m coverage run -m pytest && coverage report --omit=p/\* -m -i')

test-noentr:
python -m coverage run -m pytest && coverage report --omit=p/\* -m -i

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

+ 4
- 0
requirements.txt View File

@@ -0,0 +1,4 @@
# use setup.py for dependancy info
-e .

-e .[dev]

+ 4
- 1
setup.py View File

@@ -33,5 +33,8 @@ setup(

description='SOCKS proxy client for asyncio and aiohttp',
long_description=open("README.rst").read(),
packages=['aiosocks']
packages=['aiosocks'],
extras_require = {
'dev': [ 'aiohttp<3.0.0>=2.3.2', 'coverage', 'pytest', ],
},
)

Loading…
Cancel
Save