Skip to content

Commit baa4905

Browse files
authored
Fixing broken PyPI publishing (#350)
* Added explicit pip install for publish workflow * Added uninstall to publish.yml * Adding check of git status * Tracking test data * Checking out lfs
1 parent 40629f6 commit baa4905

File tree

7 files changed

+26
-1
lines changed

7 files changed

+26
-1
lines changed

.github/workflows/main.yml

+2
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ jobs:
2121

2222
steps:
2323
- uses: actions/checkout@v4
24+
with:
25+
lfs: true
2426

2527
- name: Set up Python ${{ matrix.python-version }}
2628
uses: actions/setup-python@v4

.github/workflows/publish.yml

+16
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,30 @@ jobs:
1919

2020
steps:
2121
- uses: actions/checkout@v4
22+
with:
23+
fetch-depth: 0
24+
2225
- name: Set up Python
2326
uses: actions/setup-python@v4
2427
with:
2528
python-version: "3.11"
29+
2630
- name: Install dependencies
2731
run: |
2832
python -m pip install --upgrade pip
2933
pip install build
34+
35+
- name: Check git status
36+
run: |
37+
git status
38+
git log -n 2
39+
git diff
40+
41+
- name: Install WallGo Python package
42+
run: |
43+
pip uninstall WallGo
44+
pip install . --upgrade -v
45+
3046
- name: Build package
3147
run: python -m build
3248

.github/workflows/tests.yml

+2
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ jobs:
2121

2222
steps:
2323
- uses: actions/checkout@v4
24+
with:
25+
lfs: true
2426

2527
- name: Set up Python ${{ matrix.python-version }}
2628
uses: actions/setup-python@v4

pyproject.toml

+6-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,12 @@ Issues = "https://github.com/Wall-Go/WallGo/issues"
6969
Changelog = "https://github.com/Wall-Go/WallGo/blob/main/CHANGELOG.rst"
7070

7171
[tool.setuptools]
72-
packages = ["WallGo", "WallGo.PotentialTools"]
72+
packages = [
73+
"WallGo",
74+
"WallGo.PotentialTools",
75+
"WallGo.PotentialTools.Config",
76+
"WallGo.PotentialTools.Data",
77+
]
7378
package-dir = {"" = "src"}
7479
include-package-data = true
7580

-160 KB
Binary file not shown.
-1.61 MB
Binary file not shown.
-4.41 KB
Binary file not shown.

0 commit comments

Comments
 (0)