Skip to content

Commit 69bd449

Browse files
committed
Try publishing with TestPyPI
1 parent 94a9e6f commit 69bd449

File tree

4 files changed

+70
-49
lines changed

4 files changed

+70
-49
lines changed
Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
name: Publish Python 🐍 distribution 📦 to PyPI and TestPyPI
2+
3+
on: push
4+
5+
jobs:
6+
build:
7+
name: Build distribution 📦
8+
runs-on: ubuntu-latest
9+
10+
steps:
11+
- uses: actions/checkout@v4
12+
with:
13+
persist-credentials: false
14+
- name: Set up Python
15+
uses: actions/setup-python@v5
16+
with:
17+
python-version: "3.x"
18+
19+
- uses: astral-sh/setup-uv@v6
20+
21+
- name: build
22+
run: uv build
23+
24+
- name: Store the distribution packages
25+
uses: actions/upload-artifact@v4
26+
with:
27+
name: python-package-distributions
28+
path: dist/
29+
30+
publish-to-pypi:
31+
name: >-
32+
Publish Python 🐍 distribution 📦 to PyPI
33+
if: startsWith(github.ref, 'refs/tags/') # only publish to PyPI on tag pushes
34+
needs:
35+
- build
36+
runs-on: ubuntu-latest
37+
environment:
38+
name: pypi
39+
url: https://pypi.org/p/async-kernel
40+
permissions:
41+
id-token: write # IMPORTANT: mandatory for trusted publishing
42+
43+
publish-to-testpypi:
44+
name: Publish Python 🐍 distribution 📦 to TestPyPI
45+
needs:
46+
- build
47+
runs-on: ubuntu-latest
48+
49+
environment:
50+
name: testpypi
51+
url: https://test.pypi.org/p/async-kernel
52+
53+
permissions:
54+
id-token: write # IMPORTANT: mandatory for trusted publishing
55+
56+
steps:
57+
- name: Download all the dists
58+
uses: actions/download-artifact@v4
59+
with:
60+
name: python-package-distributions
61+
path: dist/
62+
- name: Publish distribution 📦 to TestPyPI
63+
uses: pypa/gh-action-pypi-publish@release/v1
64+
with:
65+
repository-url: https://test.pypi.org/legacy/
Lines changed: 3 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Async-kernel tests
1+
name: Async-kernel test
22

33
on: [push]
44
jobs:
@@ -26,25 +26,9 @@ jobs:
2626
- name: Install the project
2727
run: uv sync --locked --dev
2828

29-
- name: Run the tests
29+
- name: Run the test
3030
timeout-minutes: 5
3131
run: uv run pytest -v
3232

33-
- name: Ruff
34-
uses: astral-sh/ruff-action@v3
35-
36-
- name: Type checking
33+
- name: Type checking with basedpyright
3734
run: uv run basedpyright
38-
39-
- name: Build
40-
run: uv build
41-
42-
- name: Distribution
43-
uses: actions/upload-artifact@v4
44-
with:
45-
name: "dist built in ${{ matrix.python-version }}-${{ matrix.os }}"
46-
path: dist/*
47-
48-
- name: Coverage
49-
if: ${{ ( matrix.python-version >= '3.12' ) && ( matrix.os == 'ubuntu-latest' ) }}
50-
run: uv run pytest --cov --cov-fail-under 99

README.md

Lines changed: 1 addition & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -83,34 +83,6 @@ pytest
8383
pytest -vv -s --cov
8484
```
8585

86-
## About the IPython Development Team
87-
88-
The IPython Development Team is the set of all contributors to the IPython project.
89-
This includes all of the IPython subprojects.
90-
91-
The core team that coordinates development on GitHub can be found here:
92-
https://github.com/ipython/.
93-
94-
## Origin
86+
# Origin
9587

9688
Async-kernel started as fork of [IPyKernel](https://pypi.org/project/ipykernel/) commit [#8322a7684b004ee95f07b2f86f61e28146a5996d](https://github.com/ipython/ipykernel/commit/8322a7684b004ee95f07b2f86f61e28146a5996d).
97-
98-
## Our Copyright Policy
99-
100-
IPython uses a shared copyright model. Each contributor maintains copyright
101-
over their contributions to IPython. But, it is important to note that these
102-
contributions are typically only changes to the repositories. Thus, the IPython
103-
source code, in its entirety is not the copyright of any single person or
104-
institution. Instead, it is the collective copyright of the entire IPython
105-
Development Team. If individual contributors want to maintain a record of what
106-
changes/contributions they have specific copyright on, they should indicate
107-
their copyright in the commit message of the change, when they commit the
108-
change to one of the IPython repositories.
109-
110-
With this in mind, the following banner should be used in any source code file
111-
to indicate the copyright and license terms:
112-
113-
```
114-
# Copyright (c) IPython Development Team.
115-
# Distributed under the terms of the Modified BSD License.
116-
```

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ build-backend = "hatchling.build"
66
name = "async-kernel"
77

88
dynamic = ["version"]
9-
authors = [{name = "IPython Development Team", email = "[email protected]"}]
9+
authors = [{name = "", email = "[email protected]"}]
1010
license = {file = "LICENSE"}
1111
readme = "README.md"
1212
description = "A python kernel for Jupyter running inside an anyio (asyncio or trio) event loop."

0 commit comments

Comments
 (0)