project restructure
This commit is contained in:
36
microdot-asyncio/setup.py
Executable file
36
microdot-asyncio/setup.py
Executable file
@@ -0,0 +1,36 @@
|
||||
"""
|
||||
Microdot-AsyncIO
|
||||
----------------
|
||||
|
||||
AsyncIO support for the Microdot web framework.
|
||||
"""
|
||||
from setuptools import setup
|
||||
|
||||
setup(
|
||||
name='microdot-asyncio',
|
||||
version='0.1.0',
|
||||
url='http://github.com/miguelgrinberg/microdot/',
|
||||
license='MIT',
|
||||
author='Miguel Grinberg',
|
||||
author_email='miguel.grinberg@gmail.com',
|
||||
description='AsyncIO support for the Microdot web framework',
|
||||
long_description=__doc__,
|
||||
py_modules=['microdot_asyncio'],
|
||||
include_package_data=True,
|
||||
platforms='any',
|
||||
install_requires=[
|
||||
'microdot',
|
||||
'micropython-uasyncio;implementation_name=="micropython"'
|
||||
],
|
||||
classifiers=[
|
||||
'Environment :: Web Environment',
|
||||
'Intended Audience :: Developers',
|
||||
'License :: OSI Approved :: MIT License',
|
||||
'Operating System :: OS Independent',
|
||||
'Programming Language :: Python',
|
||||
'Programming Language :: Python :: 3',
|
||||
'Programming Language :: Python :: Implementation :: MicroPython',
|
||||
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
|
||||
'Topic :: Software Development :: Libraries :: Python Modules'
|
||||
]
|
||||
)
|
||||
@@ -1,5 +1,8 @@
|
||||
import sys
|
||||
sys.path.append('tests/libs')
|
||||
|
||||
sys.path.insert(0, 'microdot')
|
||||
sys.path.insert(1, 'microdot-asyncio')
|
||||
sys.path.insert(2, 'tests/libs')
|
||||
|
||||
import unittest
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
from tests.test_request import TestRequest
|
||||
from tests.test_response import TestResponse
|
||||
from tests.test_url_pattern import TestURLPattern
|
||||
from tests.test_microdot import TestMicrodot
|
||||
from tests.microdot.test_request import TestRequest
|
||||
from tests.microdot.test_response import TestResponse
|
||||
from tests.microdot.test_url_pattern import TestURLPattern
|
||||
from tests.microdot.test_microdot import TestMicrodot
|
||||
|
||||
from tests.test_request_asyncio import TestRequestAsync
|
||||
from tests.test_response_asyncio import TestResponseAsync
|
||||
from tests.test_microdot_asyncio import TestMicrodotAsync
|
||||
from tests.microdot_asyncio.test_request_asyncio import TestRequestAsync
|
||||
from tests.microdot_asyncio.test_response_asyncio import TestResponseAsync
|
||||
from tests.microdot_asyncio.test_microdot_asyncio import TestMicrodotAsync
|
||||
|
||||
0
tests/microdot/__init__.py
Normal file
0
tests/microdot/__init__.py
Normal file
0
tests/microdot_asyncio/__init__.py
Normal file
0
tests/microdot_asyncio/__init__.py
Normal file
5
tox.ini
5
tox.ini
@@ -1,9 +1,12 @@
|
||||
[tox]
|
||||
envlist=flake8,py35,py36,py37,upy
|
||||
skipsdist=True
|
||||
skip_missing_interpreters=True
|
||||
|
||||
[testenv]
|
||||
commands=
|
||||
pip install -e microdot
|
||||
pip install -e microdot-asyncio
|
||||
coverage run --branch --include="microdot*.py" -m unittest tests
|
||||
coverage report --show-missing
|
||||
coverage erase
|
||||
@@ -19,7 +22,7 @@ basepython=
|
||||
deps=
|
||||
flake8
|
||||
commands=
|
||||
flake8 --exclude=tests/unittest.py --exclude tests/libs microdot.py tests
|
||||
flake8 --exclude tests/libs microdot microdot-asyncio tests
|
||||
|
||||
[testenv:upy]
|
||||
whitelist_externals=sh
|
||||
|
||||
Reference in New Issue
Block a user