Commit 081c4e37 authored by oroulet's avatar oroulet Committed by oroulet

make `python3 setup.py test` work

parent f41327f0
[aliases]
test=pytest
[flake8]
max-line-length = 120
exclude = opcua/ua/,opcua/common/event_objects.py,opcua/server/standard_address_space/standard_address_space*.py
from setuptools import setup, find_packages
setup(name="asyncua",
version="0.5.0",
description="Pure Python OPC-UA client and server library",
author="Olivier Roulet-Dubonnet",
author_email="olivier.roulet@gmail.com",
url='http://freeopcua.github.io/',
packages=find_packages(),
provides=["asyncua"],
license="GNU Lesser General Public License v3 or later",
install_requires=["aiofiles", "asyncio-contextmanager", "python-dateutil", "pytz", "lxml"],
extras_require={
'encryption': ['cryptography']
},
classifiers=["Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"License :: OSI Approved :: GNU Lesser General Public License v3 or later (LGPLv3+)",
"Topic :: Software Development :: Libraries :: Python Modules",
],
entry_points={'console_scripts':
[
'uaread = asyncua.tools:uaread',
'uals = asyncua.tools:uals',
'uabrowse = asyncua.tools:uals',
'uawrite = asyncua.tools:uawrite',
'uasubscribe = asyncua.tools:uasubscribe',
'uahistoryread = asyncua.tools:uahistoryread',
'uaclient = asyncua.tools:uaclient',
'uaserver = asyncua.tools:uaserver',
'uadiscover = asyncua.tools:uadiscover',
'uacall = asyncua.tools:uacall',
'uageneratestructs = asyncua.tools:uageneratestructs',
]
}
)
setup(
name="asyncua",
version="0.5.0",
description="Pure Python OPC-UA client and server library",
author="Olivier Roulet-Dubonnet",
author_email="olivier.roulet@gmail.com",
url='http://freeopcua.github.io/',
packages=find_packages(),
provides=["asyncua"],
license="GNU Lesser General Public License v3 or later",
install_requires=["aiofiles", "asyncio-contextmanager", "python-dateutil", "pytz", "lxml"],
extras_require={'encryption': ['cryptography']},
classifiers=[
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"License :: OSI Approved :: GNU Lesser General Public License v3 or later (LGPLv3+)",
"Topic :: Software Development :: Libraries :: Python Modules",
],
entry_points={
'console_scripts': [
'uaread = asyncua.tools:uaread',
'uals = asyncua.tools:uals',
'uabrowse = asyncua.tools:uals',
'uawrite = asyncua.tools:uawrite',
'uasubscribe = asyncua.tools:uasubscribe',
'uahistoryread = asyncua.tools:uahistoryread',
'uaclient = asyncua.tools:uaclient',
'uaserver = asyncua.tools:uaserver',
'uadiscover = asyncua.tools:uadiscover',
'uacall = asyncua.tools:uacall',
'uageneratestructs = asyncua.tools:uageneratestructs',
]
},
setup_requires=['pytest-runner'],
tests_require=['pytest'],
)
import unittest
import logging
import sys
sys.path.insert(0, "..")
sys.path.insert(0, ".")
from tests_cmd_lines import TestCmdLines
from tests_server import TestServer, TestServerCaching, TestServerStartError
from tests_client import TestClient
from tests_standard_address_space import StandardAddressSpaceTests
from tests_unit import TestUnit, TestMaskEnum
from tests_history import TestHistory, TestHistorySQL, TestHistoryLimits, TestHistorySQLLimits
from tests_crypto_connect import TestCryptoConnect
from tests_uaerrors import TestUaErrors
from tests_custom_structures import TypeDictionaryBuilderTest
if __name__ == '__main__':
logging.basicConfig(level=logging.WARNING)
#l = logging.getLogger("asyncua.server.internal_subscription")
#l.setLevel(logging.DEBUG)
#l = logging.getLogger("asyncua.server.internal_server")
#l.setLevel(logging.DEBUG)
unittest.main(verbosity=3)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment