-
Notifications
You must be signed in to change notification settings - Fork 0
github actions to publish to Pypi #4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 3 commits
a777e23
c374ef9
0e7444a
91e9c55
3654c41
184afd4
b4d2a4f
56973a0
2659885
1a9dc52
466f46f
8bc7f72
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,80 @@ | ||||||||||||||||||
| name: distribute-PyPI | ||||||||||||||||||
|
|
||||||||||||||||||
| permissions: | ||||||||||||||||||
| contents: read | ||||||||||||||||||
|
|
||||||||||||||||||
| on: | ||||||||||||||||||
| push: | ||||||||||||||||||
| tags: ["v*"] | ||||||||||||||||||
| workflow_dispatch: | ||||||||||||||||||
|
|
||||||||||||||||||
| jobs: | ||||||||||||||||||
|
|
||||||||||||||||||
| test: | ||||||||||||||||||
| runs-on: ubuntu-latest | ||||||||||||||||||
| strategy: | ||||||||||||||||||
| matrix: | ||||||||||||||||||
| python-version: ["3.12", "3.13"] | ||||||||||||||||||
|
|
||||||||||||||||||
| steps: | ||||||||||||||||||
| - uses: actions/checkout@v4 | ||||||||||||||||||
|
|
||||||||||||||||||
| - name: Install uv | ||||||||||||||||||
| uses: astral-sh/setup-uv@v4 | ||||||||||||||||||
| with: | ||||||||||||||||||
| version: "latest" | ||||||||||||||||||
|
|
||||||||||||||||||
| - name: Set up Python ${{ matrix.python-version }} | ||||||||||||||||||
| run: uv python install ${{ matrix.python-version }} | ||||||||||||||||||
|
|
||||||||||||||||||
| - name: Install dependencies | ||||||||||||||||||
| run: uv sync --all-extras | ||||||||||||||||||
|
|
||||||||||||||||||
| - name: Lint | ||||||||||||||||||
| run: uv run ruff check . | ||||||||||||||||||
|
|
||||||||||||||||||
| - name: Format check | ||||||||||||||||||
| run: uv run ruff format --check . | ||||||||||||||||||
|
|
||||||||||||||||||
| - name: Test | ||||||||||||||||||
| run: uv run pytest | ||||||||||||||||||
|
|
||||||||||||||||||
|
hotung1027 marked this conversation as resolved.
Outdated
|
||||||||||||||||||
| build: | ||||||||||||||||||
|
|
||||||||||||||||||
| runs-on: ubuntu-latest | ||||||||||||||||||
| needs: test | ||||||||||||||||||
|
Comment on lines
+13
to
+18
|
||||||||||||||||||
| test: | |
| uses: ./.github/workflows/ci.yml | |
| secrets: inherit | |
| build: | |
| runs-on: ubuntu-latest | |
| needs: test | |
| build: | |
| runs-on: ubuntu-latest |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,13 +1,13 @@ | ||
| [project] | ||
| name = "anyiostream" | ||
| version = "0.1.0" | ||
| authors = [ | ||
| { name=" randy", email="hotung1027@gmail.com" }, | ||
|
hotung1027 marked this conversation as resolved.
Outdated
|
||
| ] | ||
|
hotung1027 marked this conversation as resolved.
|
||
| description = "Composable async pipelines with structured concurrency — built on anyio, inspired by aiostream and Rust's Result type." | ||
| readme = "README.md" | ||
| requires-python = ">=3.12" | ||
| license = { text = "Apache-2.0" } | ||
| authors = [ | ||
| { name = "randyt" }, | ||
| ] | ||
| keywords = [ | ||
| "async", | ||
| "pipeline", | ||
|
|
@@ -16,7 +16,6 @@ keywords = [ | |
| "concurrency", | ||
| "structured-concurrency", | ||
| "result", | ||
| "backpressure", | ||
| ] | ||
| classifiers = [ | ||
| "Development Status :: 3 - Alpha", | ||
|
|
@@ -49,15 +48,18 @@ docs = [ | |
| "sphinx-design>=0.6", | ||
| "sphinx-autodoc2>=0.5", | ||
| ] | ||
| build = [ | ||
| "uv_build>=0.10.0,<0.11.0", | ||
| ] | ||
|
hotung1027 marked this conversation as resolved.
Outdated
|
||
|
|
||
| [project.urls] | ||
| Homepage = "https://github.com/hotung1027/anyiostream" | ||
| Repository = "https://github.com/hotung1027/anyiostream" | ||
| Issues = "https://github.com/hotung1027/anyiostream/issues" | ||
|
|
||
| [build-system] | ||
| requires = ["hatchling"] | ||
| build-backend = "hatchling.build" | ||
| requires = ["uv_build >= 0.10.0, <0.11.0"] | ||
| build-backend = "uv_build" | ||
|
|
||
| [tool.hatch.build.targets.wheel] | ||
|
hotung1027 marked this conversation as resolved.
Outdated
|
||
| packages = ["src/anyiostream"] | ||
|
hotung1027 marked this conversation as resolved.
Comment on lines
+61
to
62
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Using
uv sync --all-extraswill install docs/build extras too, which can significantly slow down the release test job and increase the chance of unrelated dependency breakage. Consider syncing only what the test job needs (e.g.,--extra dev) or a dedicated test group/extra.