diff --git a/.github/workflows/github-ci.yml b/.github/workflows/github-ci.yml index c8066b3..b78e817 100644 --- a/.github/workflows/github-ci.yml +++ b/.github/workflows/github-ci.yml @@ -51,11 +51,23 @@ jobs: run: | pip install build python -m build + if [ $(grep -o "\.py" uc_micro_py.egg-info/SOURCES.txt | wc -l) -eq 14 ]; then + echo "Success build" + else + echo "Failed build" + exit 1 + fi - name: Build package test (with tmp folder) run: | mkdir tmp pip install build python -m build + if [ $(grep -o "\.py" uc_micro_py.egg-info/SOURCES.txt | wc -l) -eq 14 ]; then + echo "Success build" + else + echo "Failed build" + exit 1 + fi publish: name: Publish to PyPi diff --git a/pyproject.toml b/pyproject.toml index 60e63ee..782d532 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -29,8 +29,9 @@ dynamic = ["version"] [project.optional-dependencies] test = ["pytest", "coverage", "pytest-cov"] -[tool.setuptools] -packages = ["uc_micro"] +[tool.setuptools.packages.find] +include = ["uc_micro*"] +namespaces = false [tool.setuptools.dynamic] version = { attr = "uc_micro.__version__" }