Merge pull request #29 from cmehay/py10

Update dependencies and add support for python 3.9 and 3.10
master
cmehay 2 years ago committed by GitHub
commit d552129309
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -0,0 +1,22 @@
# Testing with python 3.10
FROM python:3.10
ENV POETRY_VIRTUALENVS_CREATE=false
RUN pip install poetry
RUN adduser --uid 1009 --system testuser
RUN addgroup --gid 1010 testgroup
ENV PYTHONPATH /opt/
COPY tests/test_template.yml.tpl /tmp/test_template.yml
COPY tests/test_template.yml.tpl /tmp/test_template2.yml.tpl
COPY pyproject.toml poetry.lock /opt/
RUN cd /opt && poetry install
WORKDIR /opt/tests
CMD ["pytest", "--verbose", "-rw", "."]

@ -0,0 +1,22 @@
# Testing with python 3.9
FROM python:3.9
ENV POETRY_VIRTUALENVS_CREATE=false
RUN pip install poetry
RUN adduser --uid 1009 --system testuser
RUN addgroup --gid 1010 testgroup
ENV PYTHONPATH /opt/
COPY tests/test_template.yml.tpl /tmp/test_template.yml
COPY tests/test_template.yml.tpl /tmp/test_template2.yml.tpl
COPY pyproject.toml poetry.lock /opt/
RUN cd /opt && poetry install
WORKDIR /opt/tests
CMD ["pytest", "--verbose", "-rw", "."]

@ -0,0 +1,13 @@
FROM python:3.10
ENV POETRY_VIRTUALENVS_CREATE=false
ADD . /usr/local/src/
RUN cd /usr/local/src/ && \
pip install --upgrade pip poetry && \
poetry install --no-dev
ONBUILD ADD entrypoint-config.yml .
ENTRYPOINT ["pyentrypoint"]

@ -0,0 +1,14 @@
FROM python:3.10-alpine
ENV POETRY_VIRTUALENVS_CREATE=false
ADD . /usr/local/src/
RUN cd /usr/local/src/ && \
apk add gcc && \
pip install --upgrade pip poetry && \
poetry install --no-dev
ONBUILD ADD entrypoint-config.yml .
ENTRYPOINT ["pyentrypoint"]

@ -0,0 +1,13 @@
FROM python:3.9
ENV POETRY_VIRTUALENVS_CREATE=false
ADD . /usr/local/src/
RUN cd /usr/local/src/ && \
pip install --upgrade pip poetry && \
poetry install --no-dev
ONBUILD ADD entrypoint-config.yml .
ENTRYPOINT ["pyentrypoint"]

@ -0,0 +1,14 @@
FROM python:3.9-alpine
ENV POETRY_VIRTUALENVS_CREATE=false
ADD . /usr/local/src/
RUN cd /usr/local/src/ && \
apk add gcc && \
pip install --upgrade pip poetry && \
poetry install --no-dev
ONBUILD ADD entrypoint-config.yml .
ENTRYPOINT ["pyentrypoint"]

@ -6,17 +6,17 @@ build:
clean:
docker-compose down --remove-orphans
test: build test-python3.6 test-python3.7 test-python3.8 clean
test-python3.6:
@docker-compose run --rm testpython3.6
test-python3.7:
@docker-compose run --rm testpython3.7
test: build test-python3.8 test-python3.9 test-python3.10 clean
test-python3.8:
@docker-compose run --rm testpython3.8
test-python3.9:
@docker-compose run --rm testpython3.9
test-python3.10:
@docker-compose run --rm testpython3.10
test-python3:
@docker-compose run --rm testpython3

@ -13,9 +13,9 @@ testpython3:
file: common.yml
service: environ
testpython3.6:
testpython3.8:
build: .
dockerfile: Dockerfile-test.py3.6
dockerfile: Dockerfile-test.py3.8
volumes:
- ./pyentrypoint:/opt/pyentrypoint:ro
- ./tests:/opt/tests
@ -28,9 +28,9 @@ testpython3.6:
file: common.yml
service: environ
testpython3.7:
testpython3.9:
build: .
dockerfile: Dockerfile-test.py3.7
dockerfile: Dockerfile-test.py3.9
volumes:
- ./pyentrypoint:/opt/pyentrypoint:ro
- ./tests:/opt/tests
@ -43,9 +43,10 @@ testpython3.7:
file: common.yml
service: environ
testpython3.8:
testpython3.10:
build: .
dockerfile: Dockerfile-test.py3.8
dockerfile: Dockerfile-test.py3.10
volumes:
- ./pyentrypoint:/opt/pyentrypoint:ro
- ./tests:/opt/tests
@ -58,6 +59,7 @@ testpython3.8:
file: common.yml
service: environ
test1:
image: busybox
command: sleep 30

1026
poetry.lock generated

File diff suppressed because it is too large Load Diff

@ -1,7 +1,7 @@
[tool]
[tool.poetry]
name = "pyentrypoint"
version = "0.7.4"
version = "0.8.0"
description = "pyentrypoint manages entrypoints in Docker containers."
license = "WTFPL"
classifiers = ["Programming Language :: Python", "Development Status :: 1 - Planning", "License :: OSI Approved :: BSD License", "Natural Language :: English", "Operating System :: POSIX :: Linux", "Programming Language :: Python :: 2", "Programming Language :: Python :: 3", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.6", "Topic :: System :: Installation/Setup"]
@ -10,20 +10,20 @@ authors = ["Christophe Mehay <cmehay@nospam.student.42.fr>"]
readme = "README.md"
[tool.poetry.dependencies]
python = "^3.6.1"
colorlog = "^4.1"
jinja2 = "^2.11"
pyyaml = "^5.3"
six = "^1.14"
python = ">= 3.8.0, < 3.11"
colorlog = "*"
jinja2 = "*"
pyyaml = "*"
six = "*"
watchdog = "^0.10"
toml = "^0.10.1"
toml = "*"
[tool.poetry.dev-dependencies]
docker-compose = "^1.25.5"
pytest = "^5.4.2"
pytest-mock = "^3.1.0"
pre-commit = "^2.3.0"
docker-compose = "*"
pytest = "*"
pytest-mock = "*"
pre-commit = "*"
[build-system]
requires = ["poetry>=1.0.8"]

Loading…
Cancel
Save