Commit e06d228f authored by Federico Sismondi's avatar Federico Sismondi

Merge branch 'refact_package' into 'master'

Refact package

See merge request !15
parents 2b144e68 5e149417
Pipeline #2208 passed with stage
in 0 seconds
from .ioppytest_cli import *
from . import *
if __name__ == '__main__':
main()
from .messages import *
\ No newline at end of file
......@@ -5,17 +5,17 @@
About the library:
-----------------
This module provides the API message formats used in F-Interop.
This module provides the API message formats used by ioppytest test framework.
The idea is to be able to have an
- organized and centralized way of dealing with the big amount of messages formats used in the platform;
- to be able to import (or just copy/paste) these messages formats from any component in the F-Interop platform,
- to be able to import (or just copy/paste) these messages for interacting with components on the event bus ,
- re-use this also for the integration testing;
- to have version control the messages e.g. messages_testcase_start API v1 and API v2;
- to have a direct way of exporting this as doc.
F-Interop conventions:
Some conventions:
---------------------
- if event is a service request then the routing key (r_key) is someRpcExecutionEvent.request
- a reply to a service will be on topic/r_key : someRpcExecutionEvent.reply
......
# Author:
# Federico Sismondi <federico.sismondi@gmail.com>
#
# License: see LICENSE document
import io
from setuptools import setup, find_packages
MAJOR = 0
MINOR = 1
PATCH = 2
VERSION = "{}.{}.{}".format(MAJOR, MINOR, PATCH)
name = 'ioppytest-utils'
description = "Command line interface for interacting with ioppytest testing tool " \
"(all interactions happen over AMQP even bus)."
CLASSIFIERS = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Science/Research",
"Intended Audience :: Developers",
"Intended Audience :: Testers",
"Intended Audience :: Network Testers",
# "License :: OSI Approved :: BSD License",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Topic :: Networks",
"Topic :: Interoperability testing",
"Topic :: Scientific/Engineering",
# "Operating System :: Microsoft :: Windows", not there yet..
"Operating System :: POSIX",
"Operating System :: Unix",
"Operating System :: MacOS"
]
with open("version.py", "w") as f:
f.write("__version__ = '{}'\n".format(VERSION))
setup(
name=name,
author='Federico Sismondi',
author_email="federicosismondi@gmail.com",
maintainer='Federico Sismondi',
maintainer_email="federicosismondi@gmail.com",
description=description,
version=VERSION,
license="??",
classifiers=CLASSIFIERS,
packages=find_packages(exclude=["tests"]),
py_modules=['tabulate', 'event_bus_utils'],
long_description=io.open('README.md', 'r', encoding='utf-8').read(),
install_requires=[
'click==6.7',
'click_repl==0.1.2',
'pika==0.11.0',
'prompt_toolkit==1.0.15',
'wcwidth==0.1.7',
],
entry_points={'console_scripts': [
'ioppytest-cli=ioppytest_cli.ioppytest_cli:main',
],
},
)
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