Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
run: |
cp .ci_support/environment-old.yml environment.yml
python .ci_support/release.py; cat pyproject.toml
git update-index --assume-unchanged pyproject.toml executorlib/_version.py
git update-index --assume-unchanged pyproject.toml src/executorlib/_version.py
hatchling build -t sdist -t wheel
- name: Publish distribution 📦 to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
8 changes: 4 additions & 4 deletions .github/workflows/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- uses: psf/black@stable
with:
options: "--check --diff"
src: ./${{ github.event.repository.name }}
src: ./src/${{ github.event.repository.name }}

black_fix: # in most cases pre-commit is faster
needs: [black]
Expand All @@ -29,7 +29,7 @@ jobs:
uses: psf/black@stable
with:
options: ""
src: "./${{ github.event.repository.name }}"
src: "./src/${{ github.event.repository.name }}"
- name: commit
run: |
git config --local user.email "[email protected]"
Expand All @@ -55,7 +55,7 @@ jobs:
- name: Install mypy
run: pip install mypy
- name: Test
run: mypy --ignore-missing-imports ${{ github.event.repository.name }}
run: mypy --ignore-missing-imports src/${{ github.event.repository.name }}

minimal:
needs: [black]
Expand Down Expand Up @@ -451,7 +451,7 @@ jobs:
timeout-minutes: 10
run: |
conda install -y pylint graphviz
pyreverse -o png -p ./${{ github.event.repository.name }} ./${{ github.event.repository.name }}
pyreverse -o png -p ./src/${{ github.event.repository.name }} ./src/${{ github.event.repository.name }}
zip -m uml.zip *.png
- uses: actions/upload-artifact@v4
with:
Expand Down
12 changes: 6 additions & 6 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -103,26 +103,26 @@ ignore = [

[tool.hatch.build]
include = [
"executorlib"
"src/executorlib"
]

[tool.hatch.build.hooks.vcs]
version-file = "executorlib/_version.py"
version-file = "src/executorlib/_version.py"

[tool.hatch.build.targets.sdist]
include = [
"executorlib"
"src/executorlib"
]

[tool.hatch.build.targets.wheel]
packages = [
"executorlib"
"src/executorlib"
]

[tool.hatch.version]
source = "vcs"
path = "executorlib/_version.py"
path = "src/executorlib/_version.py"

[tool.coverage.run]
omit = ["executorlib/_version.py", "tests/*"]
source = ["executorlib"]
command_line = "-m unittest discover tests"
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 4 additions & 0 deletions tests/test_standalone_interactive_communication.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ def test_interface_mpi(self):
__file__,
"..",
"..",
"src",
"executorlib",
"backend",
"interactive_parallel.py",
Expand Down Expand Up @@ -79,6 +80,7 @@ def test_interface_serial_without_debug(self):
__file__,
"..",
"..",
"src",
"executorlib",
"backend",
"interactive_serial.py",
Expand Down Expand Up @@ -109,6 +111,7 @@ def test_interface_serial_with_debug(self):
__file__,
"..",
"..",
"src",
"executorlib",
"backend",
"interactive_serial.py",
Expand Down Expand Up @@ -170,6 +173,7 @@ def test_interface_serial_with_stopped_process(self):
__file__,
"..",
"..",
"src",
"executorlib",
"backend",
"interactive_serial.py",
Expand Down
Loading