diff options
author | umry8364 <morgan.richomme@orange.com> | 2019-08-28 12:06:30 +0200 |
---|---|---|
committer | DR695H <dr695h@att.com> | 2019-08-28 15:44:21 -0400 |
commit | d4af56d4c2f67a1285da783764f20a0c1c546592 (patch) | |
tree | 59e9b8921fe341f36f58168b4365cef2185879a0 /robotframework-onap/setup.py | |
parent | f2b75da8dd38077c60cc2c852f73092980c1f906 (diff) |
Add tox
it would create virtualenv to
- run tests in python2.7 and 3
- perform linting operations (flake8, pylint)
Issue-ID: INT-1228
Change-Id: I451e1108285f6ebffc650bf3de4f175594ec796d
Signed-off-by: umry8364 <morgan.richomme@orange.com>
Signed-off-by: DR695H <dr695h@att.com>
Diffstat (limited to 'robotframework-onap/setup.py')
-rw-r--r-- | robotframework-onap/setup.py | 69 |
1 files changed, 16 insertions, 53 deletions
diff --git a/robotframework-onap/setup.py b/robotframework-onap/setup.py index f5973df..566d844 100644 --- a/robotframework-onap/setup.py +++ b/robotframework-onap/setup.py @@ -1,66 +1,29 @@ -# Copyright 2019 AT&T Intellectual Property. All rights reserved. +# Copyright (c) 2013 Hewlett-Packard Development Company, L.P. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # -# http://www.apache.org/licenses/LICENSE-2.0 +# http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or +# implied. # See the License for the specific language governing permissions and # limitations under the License. +# THIS FILE IS MANAGED BY THE GLOBAL REQUIREMENTS REPO - DO NOT EDIT +import setuptools -from setuptools import setup +# In python < 2.7.4, a lazy loading of package `pbr` will break +# setuptools if some other modules registered functions in `atexit`. +# solution from: http://bugs.python.org/issue15881#msg170215 +try: + import multiprocessing # noqa +except ImportError: + pass -setup( - name='robotframework-onap', # This is the name of your PyPI-package. - keywords=["utils", "robotframework", "testing", "onap"], - version='0.5', # Update the version number for new releases - license="Apache 2.0", - description='Scripts written to be used during robot framework testing', # Info about script - long_description="python-package that provides convenience methods to make certain tasks in robot framework easier." - "since this uses robot framework internal libraries or may in the future, it is not meant as a" - "general purpose library", - url="https://github.com/onap/testsuite-python-testing-utils", - platforms=['all'], - install_requires=[ - 'deepdiff', - 'dnspython', - 'future', - 'jinja2', - 'jsonpath-rw', - 'kafka-python', - 'paramiko', - 'protobuf', - 'pyyaml', - 'requests', - 'robotframework', - 'robotframework-requests', - 'robotlibcore-temp', - 'six', - 'urllib3' - ], # what we need to run library - packages=['vcpeutils', 'ONAPLibrary'], # The name of your scripts package - package_dir={ - 'vcpeutils': 'vcpeutils', - 'ONAPLibrary': 'ONAPLibrary' - }, # The location of your scipts package - classifiers=[ - 'Development Status :: 4 - Beta', - 'Intended Audience :: Developers', - 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3.7', - 'Environment :: Plugins', - 'Framework :: Robot Framework', - 'Framework :: Robot Framework :: Library', - 'License :: OSI Approved :: Apache Software License' - ], - test_suite="tests.runner", - tests_require=[ - 'mock', - 'requests-mock' - ] -) +setuptools.setup( + setup_requires=['pbr>=2.0.0'], + pbr=True) |