Skip to content

Commit 1ed424a

Browse files
rename to test-package
*Use build's --outdir option
1 parent 7f724a4 commit 1ed424a

File tree

5 files changed

+7
-8
lines changed

5 files changed

+7
-8
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,17 +35,16 @@ jobs:
3535
3636
- name: Build a wheel and a sdist
3737
run: |
38-
PYTHONWARNINGS=error,default::DeprecationWarning python -m build tests/debug_project
39-
mv tests/debug_project/dist .
38+
PYTHONWARNINGS=error,default::DeprecationWarning python -m build --outdir ./dist tests/test_package
4039
4140
- name: Verify the distribution
4241
run: twine check --strict dist/*
4342

4443
- name: List contents of sdist
45-
run: python -m tarfile --list dist/debug-*.tar.gz
44+
run: python -m tarfile --list dist/test_package-*.tar.gz
4645

4746
- name: List contents of wheel
48-
run: python -m zipfile --list dist/debug-*.whl
47+
run: python -m zipfile --list dist/test_package-*.whl
4948

5049
- name: Test upload
5150
uses: ./

tests/debug_project/README.md

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

tests/test_package/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Test README

tests/debug_project/pyproject.toml renamed to tests/test_package/pyproject.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ requires = ["hatchling"]
33
build-backend = "hatchling.build"
44

55
[project]
6-
name = "debug"
6+
name = "test-package"
77
version = "0.0.1"
88
authors = [
9-
{ name="Scientifc Python", email="[email protected]" },
9+
{ name="Scientifc Python Developers", email="[email protected]" },
1010
]
11-
description = "Debug project for testing GitHub Action"
11+
description = "Test project for testing GitHub Action"
1212
readme = "README.md"
1313
requires-python = ">=3.8"

0 commit comments

Comments
 (0)