Skip to content

Commit

Permalink
feat!: use numalogic v0.3 (#23)
Browse files Browse the repository at this point in the history
Signed-off-by: Avik Basu <[email protected]>
Co-authored-by: Nandita Koppisetty <[email protected]>
  • Loading branch information
ab93 and nkoppisetty authored Jan 14, 2023
1 parent ec6c2a8 commit e649807
Show file tree
Hide file tree
Showing 57 changed files with 1,780 additions and 1,201 deletions.
14 changes: 14 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
tests/
manifests/
docs/
.github
CHANGELOG.md
CODE_OF_CONDUCT.md
CONTRIBUTING.md
README.md
LICENSE
.gitignore
.idea/
.codecov.yml
.coveragerc
.flake8
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -130,3 +130,6 @@ dmypy.json

# Jetbrains project
.idea/

# Mac related
.DS_Store
7 changes: 3 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ ENV PYTHONFAULTHANDLER=1 \
PIP_NO_CACHE_DIR=on \
PIP_DISABLE_PIP_VERSION_CHECK=on \
PIP_DEFAULT_TIMEOUT=100 \
POETRY_VERSION=1.2.2 \
POETRY_VERSION=1.3.1 \
POETRY_HOME="/opt/poetry" \
POETRY_VIRTUALENVS_IN_PROJECT=true \
POETRY_NO_INTERACTION=1 \
Expand Down Expand Up @@ -59,9 +59,8 @@ EXPOSE 5000
FROM builder AS udf

WORKDIR $PYSETUP_PATH
COPY ./pyproject.toml ./poetry.lock ./
RUN poetry install --no-cache --no-root && \
rm -rf ~/.cache/pypoetry/
COPY ./requirements.txt .
RUN pip3 install --no-cache-dir -r requirements.txt

ADD . /app
WORKDIR /app
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ clean:
@find . -type f -name "*.py[co]" -exec rm -rf {} +

format: clean
poetry run black numaprom/
poetry run black numaprom/ tests/
poetry run black trainer.py
poetry run black starter.py

Expand All @@ -28,7 +28,7 @@ setup:
poetry install --with dev --all-extras

test:
poetry run python -m unittest discover
poetry run python -m unittest discover -s tests -t .

requirements:
poetry export -f requirements.txt --output requirements.txt --without-hashes
1 change: 0 additions & 1 deletion manifests/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ kind: Kustomization
namespace: numalogic-prometheus
resources:
- namespace.yaml
- ./argoworkflows
- ./mlflow
- ./redis
- ./pipeline
Loading

0 comments on commit e649807

Please sign in to comment.