Skip to content

Commit

Permalink
Fix build config (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
tsutsu3 committed Feb 9, 2024
1 parent edb11d0 commit 67e366e
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/github-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 3 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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__" }

0 comments on commit 67e366e

Please sign in to comment.