Skip to content

Commit acd8887

Browse files
authored
chore: Migrate from pip/setuptools to uv package manager (#6)
Switch to uv for Python package management with exclude-newer=1week to prevent supply chain attacks.
1 parent b22230c commit acd8887

6 files changed

Lines changed: 2249 additions & 33 deletions

File tree

.github/workflows/publish.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,15 @@ jobs:
1414
steps:
1515
- name: Checkout
1616
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
17+
- name: Install uv
18+
uses: astral-sh/setup-uv@cec208311dfd045dd5311c1add060b2062131d57 # v8
19+
with:
20+
version: "0.11.2"
1721
- name: Set up Python
1822
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6
1923
with:
2024
python-version: "3.11"
21-
- name: Install dependencies
22-
run: |
23-
pip install --upgrade pip
24-
pip install -r requirements.txt
25-
pip install build
2625
- name: Build package
27-
run: python -m build
26+
run: uv build
2827
- name: Publish package distributions to PyPI
29-
uses: pypa/gh-action-pypi-publish@release/v1
28+
uses: pypa/gh-action-pypi-publish@release/v1

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ This implements a CloudQuery resource that can be used within Dagster.
55
### Installation
66

77
```bash
8-
pip install dagster-cloudquery
8+
uv add dagster-cloudquery
99
```

pyproject.toml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
[build-system]
2+
requires = ["setuptools>=75.0"]
3+
build-backend = "setuptools.build_meta"
4+
5+
[project]
6+
name = "dagster-cloudquery"
7+
version = "0.1.2"
8+
description = "Implements a CloudQuery resource that can be used within Dagster"
9+
readme = "README.md"
10+
license = "MIT"
11+
requires-python = ">=3.9"
12+
authors = [
13+
{ name = "CloudQuery" },
14+
]
15+
classifiers = [
16+
"Programming Language :: Python :: 3",
17+
"License :: OSI Approved :: MIT License",
18+
"Operating System :: OS Independent",
19+
]
20+
dependencies = [
21+
"dagster",
22+
"dagster-cloud",
23+
]
24+
25+
[project.urls]
26+
Homepage = "https://github.com/cloudquery/dagster-cloudquery"
27+
28+
[dependency-groups]
29+
dev = [
30+
"build>=1.0.0",
31+
]
32+
33+
[tool.setuptools.packages.find]
34+
where = ["."]
35+
36+
[tool.uv]
37+
exclude-newer = "1 week"

requirements.txt

Lines changed: 0 additions & 1 deletion
This file was deleted.

setup.py

Lines changed: 0 additions & 24 deletions
This file was deleted.

0 commit comments

Comments
 (0)