Skip to content

Commit

Permalink
[CIVIS-8784] ENH update dependency versions: civis-python v2.3.0, pyt…
Browse files Browse the repository at this point in the history
…hon v3.12.4 (#96)

* ENH bump civis-python to v2.3.0

* ENH bump python to v3.12.4
  • Loading branch information
jacksonlee-civis authored Jun 18, 2024
1 parent 9bd3581 commit 3271eb0
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 20 deletions.
10 changes: 10 additions & 0 deletions .circleci/test_image.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,18 @@ def test_scipy_links_to_openblas(self):
def test_numpy_can_import(self):
import numpy as np # noqa: F401

def test_sklearn_can_import(self):
import sklearn # noqa: F401

def test_civis_can_import(self):
import civis # noqa: F401
# civis-python uses lazy imports since v2.3.0,
# so try to import the top-level modules.
import civis.io # noqa: F401
import civis.parallel # noqa: F401
import civis.futures # noqa: F401
import civis.ml # noqa: F401
import civis.utils # noqa: F401


if __name__ == "__main__":
Expand Down
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,15 @@ Version number changes (major.minor.micro) in this package denote the following:

## Unreleased

## [7.3.0]
- Core dependencies updated to latest versions:
* awscli 1.32.112 -> 1.33.9
* boto3 1.34.112 -> 1.34.127
* civis 2.1.0 -> 2.3.0
* numpy 1.26.4 -> 2.0.0
* requests 2.32.2 -> 2.32.3
- Python version updated to v3.12.4

## [7.2.0]
- Core dependencies updated to latest versions:
* awscli 1.32.109 -> 1.32.112
Expand Down
9 changes: 4 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:3.12.3-slim AS production
FROM python:3.12.4-slim AS production

LABEL maintainer = [email protected]

Expand All @@ -25,8 +25,7 @@ RUN DEBIAN_FRONTEND=noninteractive apt-get update -y --no-install-recommends &&

COPY requirements-full.txt .

RUN pip install -r requirements-full.txt && \
pip cache purge && \
RUN pip install --progress-bar off --no-cache-dir -r requirements-full.txt && \
rm requirements-full.txt

# Instruct joblib to use disk for temporary files. Joblib defaults to
Expand All @@ -35,9 +34,9 @@ RUN pip install -r requirements-full.txt && \
# https://github.com/joblib/joblib/blob/0.11/joblib/parallel.py#L328L342
ENV JOBLIB_TEMP_FOLDER=/tmp

ENV VERSION=7.2.0 \
ENV VERSION=7.3.0 \
VERSION_MAJOR=7 \
VERSION_MINOR=2 \
VERSION_MINOR=3 \
VERSION_MICRO=0

FROM production AS test
Expand Down
10 changes: 5 additions & 5 deletions requirements-core.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
awscli==1.32.112
boto3==1.34.112
civis==2.1.0
numpy==1.26.4
awscli==1.33.9
boto3==1.34.127
civis==2.3.0
numpy==2.0.0
pandas==2.2.2
requests==2.32.2
requests==2.32.3
scikit-learn==1.5.0
scipy==1.13.1
20 changes: 10 additions & 10 deletions requirements-full.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,20 @@ attrs==23.2.0
# via
# jsonschema
# referencing
awscli==1.32.112
awscli==1.33.9
# via -r requirements-core.txt
boto3==1.34.112
boto3==1.34.127
# via -r requirements-core.txt
botocore==1.34.112
botocore==1.34.127
# via
# awscli
# boto3
# s3transfer
certifi==2024.2.2
certifi==2024.6.2
# via requests
charset-normalizer==3.3.2
# via requests
civis==2.1.0
civis==2.3.0
# via -r requirements-core.txt
click==8.1.7
# via civis
Expand All @@ -37,7 +37,7 @@ jmespath==1.0.1
# via
# boto3
# botocore
joblib==1.2.0
joblib==1.4.2
# via
# civis
# scikit-learn
Expand All @@ -47,7 +47,7 @@ jsonschema==4.22.0
# via civis
jsonschema-specifications==2023.12.1
# via jsonschema
numpy==1.26.4
numpy==2.0.0
# via
# -r requirements-core.txt
# pandas
Expand All @@ -71,7 +71,7 @@ referencing==0.35.1
# via
# jsonschema
# jsonschema-specifications
requests==2.32.2
requests==2.32.3
# via
# -r requirements-core.txt
# civis
Expand All @@ -93,13 +93,13 @@ scipy==1.13.1
# scikit-learn
six==1.16.0
# via python-dateutil
tenacity==8.3.0
tenacity==8.4.1
# via civis
threadpoolctl==3.5.0
# via scikit-learn
tzdata==2024.1
# via pandas
urllib3==2.2.1
urllib3==2.2.2
# via
# botocore
# requests

0 comments on commit 3271eb0

Please sign in to comment.