Skip to content

Commit

Permalink
Use explicit package list and ensure it is tested in CI (#232)
Browse files Browse the repository at this point in the history
* In `pyproject.toml`, use an explicit package list instead of using the
`find` directive.

* In GitHub Actions workflow, do not use an editable install since that
implicitly includes all modules below `uncertainties/` and we want to
make sure we test the package in its installed form.

Co-authored-by: Matt Newville <newville@cars.uchicago.edu>
  • Loading branch information
wshanks and newville committed Jun 4, 2024
1 parent 3c3853d commit e3426fd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -e .
python -m pip install pytest pytest-cov numpy
python -m pip install .[arrays,test]
- name: Test source code and docs
run: |
pytest --cov . --cov-report xml
Expand Down
5 changes: 2 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,8 @@ classifiers = [
]
dependencies = []

[tool.setuptools.packages.find]
include = ["uncertainties", "uncertainties.unumpy"]
exclude = ["doc", "test"]
[tool.setuptools]
packages = ["uncertainties", "uncertainties.unumpy"]

[project.urls]
Documentation = "http://uncertainties-python-package.readthedocs.io/"
Expand Down

0 comments on commit e3426fd

Please sign in to comment.