Skip to content

Commit

Permalink
Add version cap (#65)
Browse files Browse the repository at this point in the history
* Add version cap

* fix
  • Loading branch information
goodwanghan authored Mar 16, 2023
1 parent b97039c commit 797b34e
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ repos:
- id: end-of-file-fixer
- id: trailing-whitespace
- id: check-vcs-permalinks
- repo: https://gitlab.com/pycqa/flake8
- repo: https://github.com/pycqa/flake8
rev: '3.8.3'
hooks:
- id: flake8
Expand Down
4 changes: 4 additions & 0 deletions RELEASE.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Release Notes

## 0.1.3

- Added Fugue version constraint to avoid breaking changes

## 0.1.2

- [54](https://github.com/fugue-project/tune/pull/54): Integrated with MLFlow
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def get_version() -> str:
author_email="goodwanghan@gmail.com",
keywords="hyper parameter hyperparameter tuning tune tuner optimzation",
url="http://github.com/fugue-project/tune",
install_requires=["fugue>=0.7.0", "cloudpickle"],
install_requires=["fugue>=0.7.0,<=0.8.1", "cloudpickle"],
extras_require={
"hyperopt": ["hyperopt"],
"optuna": ["optuna"],
Expand Down
5 changes: 4 additions & 1 deletion tests/tune/concepts/test_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ def assert_count(df: DataFrame, n: int, schema=None) -> None:
with FugueWorkflow() as dag:
df = builder.build(dag).data
df.show()
dag.run()

df1 = ArrayDataFrame([[0, 1], [1, 1], [0, 2]], "a:int,b:int")

Expand All @@ -52,6 +53,7 @@ def assert_count(df: DataFrame, n: int, schema=None) -> None:
assert_count,
params=dict(n=2, schema=f"__tune_df__x:str,{TUNE_DATASET_TRIALS}:str"),
)
dag.run()

space = Space(b=Rand(0, 1), a=1, c=Grid(2, 3), d=Grid("a", "b"))
df2 = ArrayDataFrame([[0, 1], [1, 1], [3, 2]], "a:int,bb:int")
Expand All @@ -60,7 +62,7 @@ def assert_count(df: DataFrame, n: int, schema=None) -> None:
engine = NativeExecutionEngine(conf={TUNE_TEMP_PATH: str(tmpdir)})

# test multiple dfs, batch_size and config
with FugueWorkflow(engine) as dag:
with FugueWorkflow() as dag:
dfs = WorkflowDataFrames(
a=dag.df(df1).partition_by("a"), b=dag.df(df2).partition_by("a")
)
Expand Down Expand Up @@ -90,6 +92,7 @@ def assert_count(df: DataFrame, n: int, schema=None) -> None:
f"__tune_df__c:str,{TUNE_DATASET_TRIALS}:str",
),
)
dag.run(engine)


def test_dataset(tmpdir):
Expand Down
2 changes: 1 addition & 1 deletion tune_version/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.1.2"
__version__ = "0.1.3"

0 comments on commit 797b34e

Please sign in to comment.