Skip to content

Commit

Permalink
Build Python 3.7 + w&b + wabucket
Browse files Browse the repository at this point in the history
  • Loading branch information
YevheniiSemendiak committed Feb 14, 2024
1 parent cbc4d2c commit ece01a7
Show file tree
Hide file tree
Showing 8 changed files with 23 additions and 9 deletions.
3 changes: 3 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
**
!/Dockerfile
!/wabucketref
!/requirements
!/setup.*
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -140,9 +140,9 @@ jobs:
run: |
docker build \
-t "ghcr.io/neuro-inc/wabucketref:${VERSION}" \
-t "ghcr.io/neuro-inc/wabucketref:latest" \
--build-arg COMMIT_SHA=${COMMIT_SHA} \
.
. \
-f python37.Dockerfile
- name: Push
env:
VERSION: ${{ needs.lint.outputs.version }}
Expand Down
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ repos:
hooks:
- id: yesqa
- repo: https://github.com/PyCQA/isort
rev: '5.12.0'
rev: '5.11.5'
hooks:
- id: isort
- repo: https://github.com/psf/black
Expand Down Expand Up @@ -39,7 +39,7 @@ repos:
- id: pyupgrade
args: ['--py37-plus']
- repo: https://github.com/pycqa/flake8
rev: '6.0.0'
rev: '5.0.4'
hooks:
- id: flake8
args:
Expand Down
6 changes: 6 additions & 0 deletions python37.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
FROM python:3.7.17-slim-bookworm as build

LABEL org.opencontainers.image.source = "https://github.com/neuro-inc/mlops-wandb-bucket-ref"

COPY . /tmp/wabucketref
RUN pip install --no-cache-dir /tmp/wabucketref
4 changes: 3 additions & 1 deletion requirements/python-base.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
neuro-cli>=23.7.0
aiobotocore~=2.6.0
boto3==1.28.17
neuro-cli>=22.7.1
wandb[aws]>=0.10.33,<=0.15.5
3 changes: 2 additions & 1 deletion requirements/python-dev.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
-r python-base.txt

mypy==1.1.1
pre-commit==3.1.1
pre-commit==3.1.1; python_version >= "3.8"
pre-commit==2.21.0; python_version < "3.8"
pytest==7.2.2
pytest-asyncio==0.20.3
towncrier==22.12.0
6 changes: 4 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,12 @@
setup(
name="wabucketref",
version=version,
python_requires=">=3.8.1",
python_requires=">=3.7.17",
install_requires=[
"neuro-cli>=23.7.0",
"neuro-cli>=22.7.1",
"wandb[aws]>=0.10.33,<=0.15.5",
"boto3==1.28.17",
"aiobotocore~=2.6.0",
],
include_package_data=True,
description=(
Expand Down
2 changes: 1 addition & 1 deletion wabucketref/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = "23.7.0"
__version__ = "23.7.0.post1"

from .api import WaBucketRefAPI
from .utils import parse_meta
Expand Down

0 comments on commit ece01a7

Please sign in to comment.