Commit 34931c23 authored by Federico Sismondi's avatar Federico Sismondi

markdown docuemntation for Pypi, also fixed import error

parent f86ce161
from __future__ import absolute_import
from . import messages
from . import packet_dumper
from . import serial_listener
......
......@@ -6,7 +6,6 @@ import sys
from kombu import Exchange
from ..utils import messages
from ..utils import arrow_up
STATE_OK = 0
STATE_ESC = 1
......@@ -20,6 +19,49 @@ logging.basicConfig(level=logging.DEBUG)
log = logging.getLogger(__name__)
arrow_up = """
_
/ \\
/ \\
/ \\
/ \\
/__ __\\
| | _ _ _
| | | (_) | |
| | _ _ _ __ | |_ _ __ | | __
| | | | | | '_ \| | | '_ \\| |/ /
| | | |_| | |_) | | | | | | <
| | \__,_| .__/|_|_|_| |_|_|\_\\
| | | |
| | |_|
!___!
\\ O /
\\/|\/
|
/ \\
_/ \\ _
"""
arrow_down = """
___
| |
| | _ _ _ _
| | | | | (_) | |
| | __| | _____ ___ __ | |_ _ __ | | __
| | / _` |/ _ \\ \\ /\\ / / '_ \\| | | '_ '\\| |/ /
| | | (_| | (_) \\ V V /| | | | | | | | | <
| | \\__,_|\\___/ \\_/\\_/ |_| |_|_|_|_| |_|_|\_\\
| |
__! !__,
\\ / \O
\\ / \/|
\\ / |
\\ / / \\
Y _/ _\\
"""
class SerialListener(object):
def __init__(self, agent_name, rmq_connection, rmq_exchange="amq.topic", serial_port='/dev/ttyUSB0',
serial_boudrate='460800'):
......
# Author:
# Authors:
# Federico Sismondi <federicosismondi@gmail.com>
# Remy Leone
from __future__ import absolute_import
import io
from setuptools import setup, find_packages
MAJOR = 0
MINOR = 1
PATCH = 8
VERSION = "{}.{}.{}".format(MAJOR, MINOR, PATCH)
PATCH = 9
VERSION = '{}.{}.{}'.format(MAJOR, MINOR, PATCH)
name = 'ioppytest-agent'
CLASSIFIERS = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Science/Research",
"Intended Audience :: Developers",
"Programming Language :: Python",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 2.7",
"Topic :: Internet",
"Topic :: Software Development :: Testing",
"Topic :: Scientific/Engineering",
"Operating System :: POSIX",
"Operating System :: Unix",
"Operating System :: MacOS"
'Development Status :: 3 - Alpha',
'Intended Audience :: Science/Research',
'Intended Audience :: Developers',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Topic :: Internet',
'Topic :: Software Development :: Testing',
'Topic :: Scientific/Engineering',
'Operating System :: POSIX',
'Operating System :: Unix',
'Operating System :: MacOS'
]
with open("version.py", "w") as f:
f.write("__version__ = '{}'\n".format(VERSION))
with open('version.py', 'w') as f:
f.write('__version__ = "{version}"\n'.format(version=VERSION))
with open('README.md', 'r') as fh:
long_description = fh.read()
setup(
name=name,
author='Federico Sismondi',
author_email="federicosismondi@gmail.com",
author_email='federicosismondi@gmail.com',
maintainer='Federico Sismondi',
maintainer_email="federicosismondi@gmail.com",
maintainer_email='federicosismondi@gmail.com',
url='https://gitlab.f-interop.eu/f-interop-contributors/agent',
description="Component for setting up user's environment for the tests",
description='Component for setting up users environment for the tests',
version=VERSION,
license='GPLv3+',
classifiers=CLASSIFIERS,
packages=find_packages(exclude=["tests"]),
long_description=io.open('README.md', 'r', encoding='utf-8').read(),
packages=find_packages(exclude=['tests']),
long_description=long_description,
long_description_content_type='text/markdown',
install_requires=[
'click',
'six',
......@@ -53,4 +57,3 @@ setup(
],
entry_points={'console_scripts': ['ioppytest-agent=agent.agent_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