-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #419 from PrefectHQ/3.0
upgrade to 3
- Loading branch information
Showing
9 changed files
with
94 additions
and
105 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,52 @@ | ||
# File for configuring project / deployment build, push and pull steps | ||
|
||
# Generic metadata about this project | ||
name: prefect-collection-registry | ||
prefect-version: 2.10.6 | ||
prefect-version: 3.0.0 | ||
|
||
|
||
definitions: | ||
work_pools: | ||
kubernetes_prd_internal_tools: &kubernetes_prd_internal_tools | ||
name: kubernetes-prd-internal-tools | ||
job_variables: | ||
image: prefecthq/prefect:3.0.0-python3.12 | ||
env: | ||
EXTRA_PIP_PACKAGES: github3.py fastjsonschema prefect-gcp | ||
|
||
|
||
# build section allows you to manage and build docker images | ||
build: null | ||
build: | ||
|
||
# push section allows you to manage if and how this project is uploaded to remote locations | ||
push: null | ||
push: | ||
|
||
# pull section allows you to provide instructions for cloning this project in remote locations | ||
pull: | ||
- prefect.deployments.steps.git_clone: | ||
repository: https://github.com/PrefectHQ/prefect-collection-registry | ||
branch: main | ||
- prefect.deployments.steps.git_clone: | ||
repository: https://github.com/PrefectHQ/prefect-collection-registry | ||
branch: main | ||
|
||
|
||
deployments: | ||
- name: update-a-collection | ||
tags: [] | ||
description: Updates each variety of metadata for a given package. | ||
schedules: | ||
entrypoint: src/update_collection_metadata.py:update_collection_metadata | ||
parameters: {} | ||
work_pool: *kubernetes_prd_internal_tools | ||
|
||
- name: update-all-collections | ||
tags: [] | ||
description: "`update-all-collections` triggers many instances of `update-collection-metadata` | ||
\nin order to update the [prefect-collection-registry](https://github.com/PrefectHQ/prefect-collection-registry) | ||
\nwith metadata generated from new releases of select packages (prefect collections | ||
+ prefect core).\n\n`update-all-collections` flow will check if any packages have | ||
a release and are not \nrecorded by the registry repo, and will trigger a run | ||
of `update_collection_metadata` for each such package." | ||
schedules: | ||
- cron: 0 6,12,18 * * 1-5 | ||
timezone: EST | ||
day_or: true | ||
active: true | ||
max_active_runs: | ||
catchup: false | ||
entrypoint: src/update_collection_metadata.py:update_all_collections | ||
work_pool: *kubernetes_prd_internal_tools | ||
parameters: {} | ||
enforce_parameter_schema: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,21 +4,12 @@ build-backend = "setuptools.build_meta" | |
|
||
[project] | ||
name = "prefect-collection-registry" | ||
authors = [ | ||
{name = "Prefect Technologies", email = "[email protected]"}, | ||
] | ||
authors = [{ name = "Prefect Technologies", email = "[email protected]" }] | ||
description = "Maintaining the Prefect Collection Registry" | ||
readme = "README.md" | ||
requires-python = ">=3.10" | ||
classifiers = [ | ||
"Programming Language :: Python :: 3", | ||
] | ||
dependencies = [ | ||
"prefect>=2.13.5", | ||
"fastjsonschema==2.16.2", | ||
"github3.py>=3.2.0", | ||
|
||
] | ||
classifiers = ["Programming Language :: Python :: 3"] | ||
dependencies = ["prefect>=3.0.0", "fastjsonschema==2.16.2", "github3.py>=3.2.0"] | ||
dynamic = ["version"] | ||
|
||
[project.optional-dependencies] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
fastjsonschema | ||
gcsfs | ||
github3.py==3.2.0 | ||
prefect>=2.10.6 | ||
prefect>=3.0.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import pytest | ||
from prefect.testing.utilities import prefect_test_harness | ||
|
||
|
||
@pytest.fixture(autouse=True) | ||
def prefect_db(): | ||
with prefect_test_harness(): | ||
yield |