Skip to content

Commit

Permalink
Update build steps to exclude examples, docs (#695)
Browse files Browse the repository at this point in the history
* Update build steps to exclude examples, docs

* Also exclude tests

* Explicitly include kolena to have to exclude less

* Remove sources that shouldn't have been checked in
  • Loading branch information
gordonhart authored Sep 25, 2024
1 parent 88992cd commit 0d6e690
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:
run: sed -i "s/0.999.0/$(git describe --tags --abbrev=0)/g" pyproject.toml

- name: Build 'kolena' Python package
run: uv build --sdist
run: uvx hatch build -t sdist

- name: Publish 'kolena' documentation to production (S3)
run: |
Expand Down Expand Up @@ -94,7 +94,7 @@ jobs:
sed -i '0,/kolena/{s/kolena/kolena-client/}' pyproject.toml kolena/__init__.py
uv pip install --all-extras -r pyproject.toml
uv build --sdist
uvx hatch build -t sdist
- name: "[backcompat] Install twine for package distribution on CodeArtifact"
run: pip install twine
Expand Down
4 changes: 4 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,10 @@ kolena = 'kolena._utils.cli:run'
requires = ["hatchling"]
build-backend = "hatchling.build"

[tool.hatch.build.targets.sdist]
include = ["kolena"]
exclude = ["docs"]

[tool.pytest.ini_options]
# do not scan 'kolena' for tests, as there are many functions/classes that look like tests
norecursedirs = "kolena"
Expand Down

0 comments on commit 0d6e690

Please sign in to comment.