Skip to content

Commit fdaba43

Browse files
Fix setuptools in pyproject to include sub packages (#533)
* need to include sub packages manually * avoid red cross on pushing tag
1 parent 49ffa56 commit fdaba43

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.github/workflows/publish.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ jobs:
102102
103103
publish-to-testpypi:
104104
name: Publish Python 🐍 distribution 📦 to TestPyPI
105+
if: ${{ github.ref == 'refs/heads/main' }}
105106
needs:
106107
- build
107108
runs-on: ubuntu-latest

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ requires = ["setuptools>=61.0"]
7373
build-backend = "setuptools.build_meta"
7474

7575
[tool.setuptools]
76-
packages = ["btk"]
76+
packages = ["btk", "btk.metrics"]
7777

7878
[tool.ruff]
7979
# Exclude a variety of commonly ignored directories.

0 commit comments

Comments
 (0)