project restructure

This commit is contained in:
Miguel Grinberg
2019-05-05 17:23:40 +00:00
parent e5525c5c48
commit b06b6de584
16 changed files with 51 additions and 9 deletions

36
microdot-asyncio/setup.py Executable file
View 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'
]
)

View File

@@ -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

View File

@@ -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

View File

View File

View File

@@ -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