From e05f71320cf72cbad4d288514727b57979c7be22 Mon Sep 17 00:00:00 2001 From: Andrea Censi Date: Mon, 21 Feb 2022 18:01:08 +0100 Subject: fix --- Dockerfile | 2 +- MANIFEST.in | 4 ---- Makefile | 6 ++++-- 3 files changed, 5 insertions(+), 7 deletions(-) diff --git a/Dockerfile b/Dockerfile index 8d27c13..78c1975 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -ARG DOCKER_REGISTRY +ARG DOCKER_REGISTRY=docker.io FROM ${DOCKER_REGISTRY}/act4e/act4e-tests:alphubel WORKDIR /ACT4E diff --git a/MANIFEST.in b/MANIFEST.in index dc1dc93..4e280e6 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -12,10 +12,6 @@ exclude LICENSE* prune .* exclude .* exclude src/conf.py -recursive-exclude src *.rst -recursive-exclude src *.less -recursive-include src *.css -recursive-include src *.sql prune src/**/__pycache__ prune src/*_tests* prune out diff --git a/Makefile b/Makefile index 83fd1b8..dfc1e28 100644 --- a/Makefile +++ b/Makefile @@ -12,9 +12,11 @@ build: pull check: build - docker run -it --rm -v $(PWD)/out-results:/ACT4E/out-results $(tag) act4e-tests --module act4e_solutions + docker run -it --rm -v $(PWD)/out-results:/ACT4E/out-results $(tag) \ + act4e-test --collections act4e_checks --module act4e_solutions check-%: build - docker run -it --rm -v $(PWD)/out-results:/ACT4E/out-results $(tag) act4e-tests --module act4e_solutions --group $* + docker run -it --rm -v $(PWD)/out-results:/ACT4E/out-results $(tag) \ + act4e-test --collections act4e_checks --module act4e_solutions --group $* -- cgit v1.2.1 From 6e943c21c2ab9dfbf754ffeed76066f08b8bfc09 Mon Sep 17 00:00:00 2001 From: Andrea Censi Date: Mon, 21 Feb 2022 22:32:36 +0100 Subject: ok --- .gitignore | 1 + Dockerfile | 7 +++++-- setup.json | 18 ------------------ setup.py | 17 +++++++++-------- 4 files changed, 15 insertions(+), 28 deletions(-) delete mode 100644 setup.json diff --git a/.gitignore b/.gitignore index 9bea433..ad71b0c 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ .DS_Store +.python-version diff --git a/Dockerfile b/Dockerfile index 78c1975..d029f7f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,8 +1,11 @@ -ARG DOCKER_REGISTRY=docker.io -FROM ${DOCKER_REGISTRY}/act4e/act4e-tests:alphubel +# ARG DOCKER_REGISTRY=docker.io +# FROM ${DOCKER_REGISTRY}/act4e/act4e-tests:alphubel +FROM python:3.10 +RUN python3 -m pip install -U pip -v WORKDIR /ACT4E +RUN uname -a COPY requirements.txt . RUN python3 -m pip install -r requirements.txt diff --git a/setup.json b/setup.json deleted file mode 100644 index f6a4dd8..0000000 --- a/setup.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "install_requires": [], - "tests_require": [], - "srcdir": "src", - "package_name": "ACT4E-MySolutions", - "entry_points": { - "console_scripts": [] - }, - "zip_safe": true, - "include_package_data": true, - "modules": [ - "act4e_solutions" - ], - "version": "7.1.2202211124", - "author": "", - "author_email": "", - "url": "" -} \ No newline at end of file diff --git a/setup.py b/setup.py index e64c8cc..e20c8f1 100644 --- a/setup.py +++ b/setup.py @@ -1,10 +1,11 @@ from setuptools import find_packages, setup -setup(name='ACT4E-MySolutions', - version="0.1", - package_dir={'': 'src'}, - packages=find_packages('src'), - entry_points={ - }, - extras_require={}, - ) +setup( +name='ACT4E-MySolutions', +version="0.1", +package_dir={'': 'src'}, +packages=find_packages('src'), +entry_points={}, +extras_require={}, +install_requires=['ACT4E-exercises'], +) -- cgit v1.2.1 From 337213bbd4431554e3ea9cb332b6a71da8080a14 Mon Sep 17 00:00:00 2001 From: Andrea Censi Date: Mon, 21 Feb 2022 22:38:09 +0100 Subject: fix --- Makefile | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/Makefile b/Makefile index dfc1e28..5177571 100644 --- a/Makefile +++ b/Makefile @@ -1,13 +1,8 @@ all: -DOCKER_REGISTRY ?= reg-z7-prod.zuper.ai - tag=mytag -pull: - docker pull ${DOCKER_REGISTRY}/act4e/act4e-tests:alphubel - -build: pull +build: docker build --build-arg DOCKER_REGISTRY=${DOCKER_REGISTRY} -t $(tag) . -- cgit v1.2.1