WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit 7132255

Browse files
authored
Follow Python standard packaging guidelines (#389)
1 parent a0c1fe7 commit 7132255

File tree

12 files changed

+8
-8
lines changed

12 files changed

+8
-8
lines changed

.github/workflows/deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
run: |
3333
cp .ci_support/environment-old.yml environment.yml
3434
python .ci_support/release.py; cat pyproject.toml
35-
git update-index --assume-unchanged pyproject.toml pylammpsmpi/_version.py
35+
git update-index --assume-unchanged pyproject.toml src/pylammpsmpi/_version.py
3636
hatchling build -t sdist -t wheel
3737
- name: Publish distribution 📦 to PyPI
3838
uses: pypa/gh-action-pypi-publish@release/v1

.github/workflows/pipeline.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
- uses: psf/black@stable
1414
with:
1515
options: "--check --diff"
16-
src: ./${{ github.event.repository.name }}
16+
src: ./src/${{ github.event.repository.name }}
1717

1818
black_fix: # in most cases pre-commit is faster
1919
needs: [black]
@@ -29,7 +29,7 @@ jobs:
2929
uses: psf/black@stable
3030
with:
3131
options: ""
32-
src: "./${{ github.event.repository.name }}"
32+
src: "./src/${{ github.event.repository.name }}"
3333
- name: commit
3434
run: |
3535
git config --local user.email "[email protected]"

pyproject.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ include = [
4848
]
4949

5050
[tool.hatch.build.hooks.vcs]
51-
version-file = "pylammpsmpi/_version.py"
51+
version-file = "src/pylammpsmpi/_version.py"
5252

5353
[tool.ruff]
5454
exclude = [".ci_support", "docs", "notebooks", "setup.py", "_version.py"]
@@ -91,18 +91,18 @@ ignore = [
9191

9292
[tool.hatch.build.targets.sdist]
9393
include = [
94-
"pylammpsmpi"
94+
"src/pylammpsmpi"
9595
]
9696

9797
[tool.hatch.build.targets.wheel]
9898
packages = [
99-
"pylammpsmpi"
99+
"src/pylammpsmpi"
100100
]
101101

102102
[tool.hatch.version]
103103
source = "vcs"
104-
path = "pylammpsmpi/_version.py"
104+
path = "src/pylammpsmpi/_version.py"
105105

106106
[tool.coverage.run]
107-
omit = ["pylammpsmpi/_version.py", "tests/*"]
107+
source = ["pylammpsmpi"]
108108
command_line = "-m unittest discover tests"

0 commit comments

Comments
 (0)