Skip to content

Commit

Permalink
build: add utils to source distribution (#290)
Browse files Browse the repository at this point in the history
* added utilities required by integration test to source distribution
* renamed utility folder from util to utils
  • Loading branch information
alexander-held authored Oct 7, 2021
1 parent 054c2ef commit 2b9edf8
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
black --check --diff --verbose .
- name: Run example
run: |
python util/create_ntuples.py
python utils/create_ntuples.py
python example.py
- name: Test with pytest, without typeguard, generate coverage report
if: matrix.python-version == 3.7
Expand Down
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
prune **
graft src
graft tests
graft utils

include setup.py
include setup.cfg
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ python -m pip install cabinetry[contrib]

## Hello world

To run the following example, first generate the input files via the script `util/create_ntuples.py`.
To run the following example, first generate the input files via the script `utils/create_ntuples.py`.

```python
import cabinetry
Expand Down
2 changes: 1 addition & 1 deletion example.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

# check whether input data exists
if not os.path.exists("ntuples/"):
print("run util/create_ntuples.py to create input data")
print("run utils/create_ntuples.py to create input data")
raise SystemExit

# import example config file
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ exclude = docs/conf.py
count = True
statistics = True
import-order-style = google
application-import-names = cabinetry, util
application-import-names = cabinetry, utils
extend-ignore = E203 # whitespace before ':'
# ignore print statements in example
per-file-ignores =
Expand Down
2 changes: 1 addition & 1 deletion tests/test_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import pytest

import cabinetry
from util import create_ntuples
from utils import create_ntuples


@pytest.fixture
Expand Down
File renamed without changes.

0 comments on commit 2b9edf8

Please # to comment.