-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9ab8117
commit 45abdd4
Showing
6 changed files
with
2,639 additions
and
138 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,6 @@ | |
!dagster_ray | ||
!tests | ||
!pyproject.toml | ||
!poetry.lock | ||
!poetry.toml | ||
!uv.lock | ||
!README.md | ||
!.pre-commit-config.yaml |
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 |
---|---|---|
|
@@ -14,37 +14,34 @@ concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | ||
cancel-in-progress: true | ||
|
||
env: | ||
UV_SYSTEM_PYTHON: "1" | ||
|
||
jobs: | ||
test: | ||
name: Test Python ${{ matrix.py }} - Kubernetes ${{ matrix.kubernetes }} | ||
name: test ${{ matrix.py }} - ${{ matrix.os }} | ||
runs-on: ${{ matrix.os }}-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: | ||
- Ubuntu | ||
py: | ||
#- "3.12" | ||
- "3.12" | ||
- "3.11" | ||
- "3.10" | ||
- "3.9" | ||
kubernetes: | ||
- "1.31.0" | ||
- "1.30.0" | ||
- "1.29.0" | ||
steps: | ||
- name: Setup Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.py }} | ||
- uses: actions/checkout@v4 | ||
- name: Install and configure Poetry | ||
uses: snok/install-poetry@v1 | ||
- name: Install uv | ||
uses: astral-sh/setup-uv@v3 | ||
with: | ||
version: 1.8.2 | ||
virtualenvs-create: false | ||
virtualenvs-in-project: false | ||
installer-parallel: true | ||
version: 0.4.18 | ||
enable-cache: true | ||
- name: Set up Python ${{ matrix.py }} | ||
run: uv python install ${{ matrix.py }} | ||
- name: Install dependencies | ||
run: uv sync --all-extras --dev | ||
- uses: azure/[email protected] | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
|
@@ -53,13 +50,10 @@ jobs: | |
with: | ||
start: false | ||
driver: docker | ||
- name: Install dependencies | ||
run: poetry install --all-extras --sync | ||
- name: Run tests | ||
env: | ||
PYTEST_KUBERAY_VERSIONS: "1.2.0" # will run tests for all these KubeRay versions | ||
PYTEST_KUBERNETES_VERSION: ${{ matrix.kubernetes }} | ||
run: pytest -v . | ||
PYTEST_KUBERAY_VERSIONS: "1.0.0,1.1.0" # will run tests for all these KubeRay versions | ||
run: uv run pytest -v . | ||
|
||
lint: | ||
name: lint ${{ matrix.py }} - ${{ matrix.os }} | ||
|
@@ -70,27 +64,23 @@ jobs: | |
os: | ||
- Ubuntu | ||
py: | ||
#- "3.12" | ||
# - "3.12" | ||
- "3.11" | ||
- "3.10" | ||
- "3.9" | ||
steps: | ||
- name: Setup python for test ${{ matrix.py }} | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.py }} | ||
- uses: actions/checkout@v2 | ||
- name: Install and configure Poetry | ||
uses: snok/install-poetry@v1 | ||
- name: Install uv | ||
uses: astral-sh/setup-uv@v3 | ||
with: | ||
version: 1.8.2 | ||
virtualenvs-create: false | ||
virtualenvs-in-project: false | ||
installer-parallel: true | ||
version: 0.4.18 | ||
enable-cache: true | ||
- name: Set up Python ${{ matrix.py }} | ||
run: uv python install ${{ matrix.py }} | ||
- name: Install dependencies | ||
run: poetry install --all-extras --sync | ||
run: uv sync --all-extras --dev | ||
- name: Run pre-commit hooks | ||
run: pre-commit run --all-files | ||
run: uv run pre-commit run --all-files | ||
|
||
qa_success: | ||
name: QA Success | ||
|
@@ -110,19 +100,14 @@ jobs: | |
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.9 | ||
- uses: actions/checkout@v2 | ||
- name: Install and configure Poetry | ||
uses: snok/install-poetry@v1 | ||
- name: Install uv | ||
uses: astral-sh/setup-uv@v3 | ||
with: | ||
version: 1.8.2 | ||
virtualenvs-create: false | ||
virtualenvs-in-project: false | ||
installer-parallel: true | ||
- name: Install poetry-dynamic-versioning | ||
run: poetry self add [email protected] | ||
version: 0.3.4 | ||
enable-cache: true | ||
- name: Set up Python ${{ matrix.py }} | ||
run: uv python install | ||
- name: Publish to PyPI | ||
env: | ||
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }} | ||
run: | | ||
poetry config pypi-token.pypi $PYPI_TOKEN | ||
poetry publish --build | ||
UV_PUBLISH_TOKEN: ${{ secrets.PYPI_TOKEN }} | ||
run: uv publish |
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
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,13 +1,15 @@ | ||
[tool.poetry] | ||
|
||
[project] | ||
name = "dagster-ray" | ||
version = "0.0.0" | ||
urls = { repository = "https://github.com/danielgafni/dagster-ray" } | ||
description = "Dagster integration library for Ray" | ||
version = "0.0.0" | ||
authors = [ | ||
"Daniel Gafni <[email protected]>" | ||
{name = "Daniel Gafni", email = "[email protected]"}, | ||
] | ||
license = {text = "Apache-2.0"} | ||
requires-python = ">=3.8.1" | ||
readme = "README.md" | ||
packages = [{include = "dagster_ray"}] | ||
repository = "https://github.com/danielgafni/dagster-ray" | ||
keywords = [ | ||
"dagster", | ||
"ray", | ||
|
@@ -23,58 +25,42 @@ classifiers = [ | |
"Operating System :: OS Independent", | ||
"Topic :: Software Development :: Libraries :: Python Modules", | ||
] | ||
license = "Apache-2.0" | ||
|
||
[tool.poetry.dependencies] | ||
python = ">=3.8.1,<3.13" | ||
dagster = ">=1.8.0" | ||
tenacity = ">=8.0.0" | ||
grpcio = [ | ||
{version = "*", python = "<3.12"}, | ||
{version = ">=1.60.0", python = ">=3.12"} | ||
dependencies = [ | ||
"pyyaml>=4.0.0", | ||
"tenacity>=8.0.0", | ||
"dagster>=1.8.0", | ||
"tenacity>=8.0.0" | ||
] | ||
greenlet = [ | ||
{version = "*", python = "<3.12"}, | ||
{version = ">=3.0", python = ">=3.12"} | ||
] | ||
|
||
kubernetes = { version = ">=20.0.0", optional = true } | ||
dagster-k8s = { version = ">=0.19.0", optional = true } | ||
|
||
[tool.poetry.extras] | ||
[project.optional-dependencies] | ||
executor = [ | ||
"ray[client]" | ||
] | ||
kuberay = [ | ||
"kubernetes", | ||
"dagster-k8s", | ||
"pyyaml", | ||
"kubernetes>=20.0.0", | ||
"dagster-k8s>=0.19.0", | ||
] | ||
|
||
[tool.poetry.group.dev.dependencies] | ||
hypothesis = ">=6.77.0" | ||
pytest = ">=7.3.1" | ||
ruff = ">=0.3.0" | ||
pyright = "^1.1.313" | ||
pre-commit = "^3.3.2" | ||
dagster-webserver = ">=1.3.9" | ||
pytest-cases = ">=3.6.14" | ||
pytest-kubernetes = ">=0.3.1" | ||
blacken-docs = ">=1.16.0" | ||
ray = { version = ">=2.7.0", extras = ["all"] } | ||
|
||
[build-system] | ||
requires = ["poetry-core"] | ||
build-backend = "poetry.core.masonry.api" | ||
[tool.uv] | ||
dev-dependencies = [ | ||
"hypothesis<7.0.0,>=6.77.0", | ||
"pytest<8.0.0,>=7.3.1", | ||
"ruff<1.0.0,>=0.3.0", | ||
"pyright<2.0.0,>=1.1.313", | ||
"pre-commit>=3.3.2,<4.0.0", | ||
"dagit<2.0.0,>=1.3.9", | ||
"pytest-cases<4.0.0,>=3.6.14", | ||
"pytest-kubernetes<1.0.0,>=0.3.1", | ||
"blacken-docs<2.0.0,>=1.16.0", | ||
"ray[client]>=2.7.0", | ||
] | ||
|
||
[tool.poetry-dynamic-versioning] | ||
enable = true | ||
strict = false | ||
vcs = "git" | ||
style = "pep440" | ||
dirty = true | ||
|
||
[tool.poetry-dynamic-versioning.substitution] | ||
files = [ | ||
"pyproject.toml", | ||
"dagster_ray/_version.py" | ||
] | ||
[build-system] | ||
requires = ["hatchling"] | ||
build-backend = "hatchling.build" | ||
|
||
[tool.pytest.ini_options] | ||
addopts = "-vvv --capture=no --log-disable=faker" | ||
|
Oops, something went wrong.