Skip to content

Commit 8af2e9a

Browse files
Bordalexierule
authored andcommitted
fixing build meta pkg flow (#13926)
* debug pulled version * pre flags * only meta (cherry picked from commit c65bbe0)
1 parent 094ce4c commit 8af2e9a

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

.github/actions/pkg-install/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ runs:
2828
- name: Install | Uninstall package - archive
2929
working-directory: ./dist
3030
run: |
31-
pip install *.tar.gz ${PKG_NAME}
31+
pip install *.tar.gz ${PKG_NAME} ${{ inputs.pip-flags }}
3232
pip list | grep lightning
3333
python -c "import ${PKG_NAME} ; print(${PKG_NAME}.__version__)"
3434
pip uninstall -y ${PKG_NAME}

.github/workflows/ci_pkg-install.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,3 +139,4 @@ jobs:
139139
- uses: ./.github/actions/pkg-install
140140
with:
141141
pkg-name: "lightning"
142+
pip-flags: "-U --pre --find-links ../pypi/"

setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,8 @@ def _load_py_module(name: str, location: str) -> ModuleType:
8989
# engineer specific practices
9090
if __name__ == "__main__":
9191
_SETUP_TOOLS = _load_py_module(name="setup_tools", location=os.path.join(".actions", "setup_tools.py"))
92-
_SETUP_TOOLS.set_version_today(os.path.join(_PATH_SRC, "lightning", "__version__.py"))
92+
if _PACKAGE_NAME not in _PACKAGE_MAPPING:
93+
_SETUP_TOOLS.set_version_today(os.path.join(_PATH_SRC, "lightning", "__version__.py"))
9394
for lit_name, pkg_name in _PACKAGE_MAPPING.items():
9495
# fixme: if we run creation of meta pkg against stable we shall pull the source
9596
_SETUP_TOOLS.create_meta_package(os.path.join(_PATH_ROOT, "src"), pkg_name, lit_name)

0 commit comments

Comments
 (0)