Skip to content

Commit 2093ec6

Browse files
uv publish (#132)
1 parent a9cee00 commit 2093ec6

File tree

7 files changed

+55
-12
lines changed

7 files changed

+55
-12
lines changed

Diff for: .github/workflows/publish-to-pypi.yml

+1-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@ jobs:
1010
- uses: actions/setup-python@v2
1111
- run: pip install uv
1212
- run: uv build
13-
- run: pip install twine==4.0.1
14-
- run: twine upload dist/* -u __token__ -p ${{ secrets.PYPI_API_TOKEN }}
13+
- run: uv publish -t ${{ secrets.PYPI_API_TOKEN }}
1514
- uses: EndBug/[email protected]
1615
with:
1716
author_name: github-actions

Diff for: .github/workflows/pytest.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ jobs:
1212
- run: npm install -g @devcontainers/[email protected]
1313
- run: devcontainer up --workspace-folder=.
1414
- run: devcontainer exec --workspace-folder=. uv venv
15-
- run: devcontainer exec --workspace-folder=. uv pip install pre-commit pytest
15+
- run: devcontainer exec --workspace-folder=. uv lock --check -p 3.11
16+
- run: devcontainer exec --workspace-folder=. uv pip install -e .
1617
- run: devcontainer exec --workspace-folder=. uv run pre-commit run --verbose --all-files
1718
- run: devcontainer exec --workspace-folder=. uv run pytest
1819
pytest:

Diff for: .github/workflows/test-publish-to-pypi.yml

+1-2
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,4 @@ jobs:
1616
- run: pytest --nbmake tests/resources/mock.ipynb
1717
- run: pip install dist/*whl --force-reinstall
1818
- run: pytest --nbmake tests/resources/mock.ipynb
19-
- run: pip install twine==4.0.1
20-
- run: twine upload -r testpypi dist/* -u __token__ -p ${{ secrets.TEST_PYPI_API_TOKEN }}
19+
- run: uv publish --check-url https://test.pypi.org/project/nbmake/ --publish-url "https://test.pypi.org/legacy/" -t ${{ secrets.TEST_PYPI_API_TOKEN }}

Diff for: .gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -134,3 +134,4 @@ typeshed
134134
trash
135135
**/_build
136136
.aider*
137+
scratch/

Diff for: pyproject.toml

+13-4
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ requires-python = ">=3.8.0"
1111
dependencies = [
1212
"pytest>=6.1.0",
1313
"nbclient>=0.6.6",
14-
"nbformat>=5.0.8",
14+
"nbformat>=5.0.4",
1515
"Pygments>=2.7.3",
1616
"ipykernel>=5.4.0",
1717
]
@@ -23,14 +23,23 @@ nbmake = "nbmake.pytest_plugin"
2323
Homepage = "https://github.com/treebeardtech/nbmake"
2424

2525
[build-system]
26-
requires = ["setuptools>=65.0.0", "wheel"]
27-
build-backend = "setuptools.build_meta"
26+
requires = ["hatchling"]
27+
build-backend = "hatchling.build"
2828

2929
[dependency-groups]
3030
dev = [
31+
"hatchling>=1.27.0",
3132
"pre-commit>=3.5.0",
3233
"pytest-xdist>=3.6.1",
3334
"ruff>=0.8.4",
34-
"pytest>=8.1",
3535
"typing-extensions>=4.12.2",
3636
]
37+
38+
# [[tool.uv.index]]
39+
# url = "https://pypi.org/simple"
40+
# default = true
41+
42+
# [[tool.uv.index]]
43+
# name = "testpypi"
44+
# url = "https://test.pypi.org/simple/"
45+
# publish-url = "https://test.pypi.org/legacy/"

Diff for: src/nbmake/__init__.py

Whitespace-only changes.

Diff for: uv.lock

+37-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)