Skip to content

Commit

Permalink
0.4.0 (#110)
Browse files Browse the repository at this point in the history
  • Loading branch information
suzhoum authored May 15, 2024
1 parent 1a065d4 commit 3f11c81
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/continuous_integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ jobs:
strategy:
fail-fast: false
matrix:
AG_VERSION: ["source", "0.7.0"]
AG_VERSION: ["source", "1.1.0"]
needs: cloud_lint_check
runs-on: ubuntu-latest
steps:
Expand Down
14 changes: 6 additions & 8 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,37 +104,35 @@ def default_setup_args(*, version):
return setup_args


version = "0.3.1"
version = "0.4.0"
version = update_version(version, use_file_if_exists=False, create_file=True)

install_requires = [
# common module provides utils with stable api across minor version
"autogluon.common>=0.7,<1.1",
"autogluon.common>=0.7",
# <2 because unlikely to introduce breaking changes in minor releases. >=1.10 because 1.10 is 3 years old, no need to support older
"boto3>=1.10,<2.0",
"numpy>=1.21,<1.27",
"packaging>=23.0,<24.0",
"pandas>=2.0.0,<2.2.0",
# updated sagemaker is required to fetch latest container info, so we don't want to cap the version too strict
# otherwise cloud module needs to be released to support new container
"sagemaker>=2.126.0,<3.0",
"pyarrow>=11.0,<11.1",
"PyYAML~=6.0",
"Pillow>=9.3.0,<10.0", # unlikely to introduce breaking changes in minor releases
"ray[default]>=2.6.3,<2.7",
"Pillow>=10.2,<11", # unlikely to introduce breaking changes in minor releases
"ray[default]>=2.10.0,<2.11",
]

extras_require = dict()

all_requires = ["autogluon>=0.7,<1.0"] # To allow user to pass ag objects
all_requires = ["autogluon>=0.7"] # To allow user to pass ag objects
extras_require["all"] = all_requires

test_requirements = [
"tox",
"pytest",
"pytest-cov",
"moto",
"autogluon.common>=0.7.0b,<1.1",
"autogluon.common>=0.7",
] # Install pre-release of common for testing

test_requirements = list(set(test_requirements))
Expand Down
4 changes: 2 additions & 2 deletions tests/unittests/general/test_ec2.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import os
import tempfile

from moto import mock_ec2
from moto import mock_aws

from autogluon.cloud.utils.ec2 import _get_key_pair, create_key_pair, delete_key_pair, get_latest_ami


@mock_ec2
@mock_aws
def test_key_pair():
with tempfile.TemporaryDirectory() as temp_dir:
os.chdir(temp_dir)
Expand Down
4 changes: 2 additions & 2 deletions tests/unittests/general/test_iam.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import boto3
from moto import mock_iam
from moto import mock_aws

from autogluon.cloud.utils.iam import (
add_role_to_instance_profile,
Expand All @@ -12,7 +12,7 @@
)


@mock_iam
@mock_aws
def test_iam_utils():
iam_client = boto3.client("iam")
dummy_role = "dummy_role"
Expand Down
4 changes: 2 additions & 2 deletions tests/unittests/general/test_s3_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
import tempfile

import boto3
from moto import mock_s3
from moto import mock_aws

from autogluon.cloud.utils.s3_utils import upload_file


@mock_s3
@mock_aws
def test_upload_file():
s3 = boto3.client("s3")
# We need to create the bucket since this is all in Moto's 'virtual' AWS account
Expand Down

0 comments on commit 3f11c81

Please sign in to comment.