pytest==5.3.1
pytest-grpc==0.7.0
--r local.txt
\ No newline at end of file
+++ /dev/null
--r shared.txt
-/opt/app/onap/dependencies/common
\ No newline at end of file
+++ /dev/null
--r shared.txt
-../../py-modules/common
\ No newline at end of file
limitations under the License.
"""
-from distutils.core import setup
+from setuptools import setup
setup(
version="0.1",
description="CDS Artifact Manager",
packages=["manager"],
+ install_requires=[
+ "grpcio-tools>=1.25.0",
+ "protobuf>=3.20.1",
+ "onappylog>=1.0.9",
+ "click>=7.0",
+ ],
)
PYTHONPATH = {toxinidir}
CONFIGURATION = {toxinidir}/../configuration-local.ini
deps =
- -rrequirements/test.txt
+ -r{toxinidir}/requirements.txt
+ -r{toxinidir}/requirements-test.txt
+ {toxinidir}/../../py-modules/common
commands = pytest
[testenv:codelint]
deps =
commands = flake8 --doctest --docstring-convention google --max-line-length 120 --exclude .svn,CVS,.bzr,.hg,.git,__pycache__,.tox,.eggs,*.egg,*test.py --select=D {posargs:.}
[testenv:coverage]
basepython = python3.7
-setenv =
+setenv =
PYTHONPATH = {toxinidir}
CONFIGURATION = {toxinidir}/../configuration-local.ini
deps =
- -rrequirements/test.txt
+ -r{toxinidir}/requirements.txt
+ -r{toxinidir}/requirements-test.txt
+ {toxinidir}/../../py-modules/common
pytest-cov
commands = pytest --cov=manager --cov-fail-under=60 --cov-config={toxinidir}/.coveragerc .
--- /dev/null
+requests==2.26.0
+grpcio==1.20.0
+grpcio-tools==1.20.0
+virtualenv==16.7.9
+prometheus-client==0.11.0
+protobuf==3.20.1
+opentelemetry-distro==0.40b0
+opentelemetry-exporter-otlp-proto-http==1.19.0
&& chmod -R 755 /opt \
&& apt-get update && apt-get install -y procps iputils-ping curl telnet && rm -rf /var/lib/apt/lists/* \
&& python -m pip install --no-cache-dir --upgrade pip setuptools \
- && pip install --no-cache-dir requests==2.26.0 grpcio==1.20.0 grpcio-tools==1.20.0 virtualenv==16.7.9 prometheus-client==0.11.0 protobuf==3.20.1 \
- && pip install --no-cache-dir opentelemetry-distro==0.40b0 opentelemetry-exporter-otlp-proto-http==1.19.0
+ && pip install --no-cache-dir -r /opt/app/onap/python/requirements.txt
USER onap
ENTRYPOINT /opt/app/onap/command-executor/start.sh
<directory>${project.basedir}/src/main/python</directory>
<outputDirectory>opt/app/onap/python</outputDirectory>
</fileSet>
+ <fileSet>
+ <directory>${project.basedir}</directory>
+ <outputDirectory>opt/app/onap/python</outputDirectory>
+ <includes>
+ <include>requirements.txt</include>
+ </includes>
+ </fileSet>
</fileSets>
-</assembly>
\ No newline at end of file
+</assembly>
&& chmod -R 755 /opt
RUN python -m pip install --no-cache-dir --upgrade pip setuptools
-RUN pip install --no-cache-dir -r /opt/app/onap/python/requirements/docker.txt
+RUN pip install --no-cache-dir -r /opt/app/onap/python/requirements.txt
+RUN pip install --no-cache-dir /opt/app/onap/dependencies/common
+RUN pip install --no-cache-dir -r /opt/app/onap/dependencies/artifact-manager/requirements.txt
+RUN pip install --no-cache-dir /opt/app/onap/dependencies/artifact-manager
RUN pip install --no-cache-dir opentelemetry-distro==0.40b0 opentelemetry-exporter-otlp-proto-http==1.19.0
<directory>${project.basedir}</directory>
<outputDirectory>opt/app/onap/python</outputDirectory>
<includes>
- <include>requirements/*.txt</include>
+ <include>requirements.txt</include>
</includes>
<useDefaultExcludes>true</useDefaultExcludes>
<fileMode>0666</fileMode>
pytest==5.3.1
pytest-grpc==0.7.0
--r local.txt
\ No newline at end of file
+++ /dev/null
--r shared.txt
-/opt/app/onap/dependencies/common
--r /opt/app/onap/dependencies/artifact-manager/requirements/docker.txt
-/opt/app/onap/dependencies/artifact-manager
\ No newline at end of file
+++ /dev/null
--r shared.txt
-../../py-modules/common
--r ../../artifact-manager/requirements/local.txt
-../artifact-manager
\ No newline at end of file
--- /dev/null
+#!/usr/bin/env python
+"""Copyright 2019 AT&T Intellectual Property.
+
+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
+
+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.
+See the License for the specific language governing permissions and
+limitations under the License.
+"""
+
+from setuptools import setup, find_packages
+
+setup(
+ name="py-executor",
+ version="0.1",
+ description="CDS Python Executor",
+ packages=find_packages(exclude=["test", "test.*"]),
+ install_requires=[
+ "grpcio>=1.25.0",
+ "grpcio-tools>=1.25.0",
+ "protobuf>=3.20.1",
+ "configparser>=4.0.2",
+ "requests>=2.22.0",
+ "ncclient>=0.6.6",
+ "ansible>=2.8.5",
+ ],
+)
setenv =
CONFIGURATION = {toxinidir}/../configuration-local.ini
deps =
- -rrequirements/test.txt
+ -r{toxinidir}/requirements.txt
+ -r{toxinidir}/requirements-test.txt
+ {toxinidir}/../../py-modules/common
+ -r{toxinidir}/../artifact-manager/requirements.txt
+ {toxinidir}/../artifact-manager
commands = pytest resource_resolution/
[testenv:codelint]
deps =
commands = flake8 --doctest --docstring-convention google --max-line-length 120 --exclude .svn,CVS,.bzr,.hg,.git,__pycache__,.tox,.eggs,*.egg,*test.py --select=D {posargs:.}
[testenv:coverage]
basepython = python3.7
-setenv =
+setenv =
CONFIGURATION = {toxinidir}/../configuration-local.ini
deps =
- -rrequirements/test.txt
+ -r{toxinidir}/requirements.txt
+ -r{toxinidir}/requirements-test.txt
+ {toxinidir}/../../py-modules/common
+ -r{toxinidir}/../artifact-manager/requirements.txt
+ {toxinidir}/../artifact-manager
pytest-cov
commands = pytest --cov=manager --cov=resource_resolution --cov-fail-under=60 --cov-config={toxinidir}/.coveragerc resource_resolution/
limitations under the License.
"""
-from distutils.core import setup
+from setuptools import setup
setup(
name="cdscommon",
version="0.1",
description="CDS Common Python Modules",
packages=["proto"],
- install_requires=["grpcio-tools"],
+ install_requires=["grpcio-tools>=1.25.0"],
)