Skip to content

Commit

Permalink
Fix: Error
Browse files Browse the repository at this point in the history
  • Loading branch information
nutti committed Nov 19, 2023
1 parent 0d41fa3 commit 0ff7796
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 10 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/fake-bpy-module-latest-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -126,13 +126,13 @@ jobs:
with:
password: ${{ secrets.test_pypi_token }}
repository_url: https://test.pypi.org/legacy/
packages_dir: "dist/fake_bpy_modules_latest_pip_*/*/"
packages_dir: "dist/fake_bpy_modules_latest_pip_*/latest/"
- name: Publish distribution 📦 to Test PyPI (Non-versioned Package)
uses: pypa/[email protected]
with:
password: ${{ secrets.test_pypi_token }}
repository_url: https://test.pypi.org/legacy/
packages_dir: "dist/fake_bpy_modules_pip_*/*/"
packages_dir: "dist/fake_bpy_modules_latest_pip_*/non-version/"

pypi_release:
name: PyPI Release fake-bpy-module
Expand Down
2 changes: 1 addition & 1 deletion src/gen_module.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ mod_version=${7:-not-specified}
current_dir=$(pwd)
tmp_dir=${current_dir}/${TMP_DIR_NAME}
format="pep8"
output_log_level="debug"
output_log_level="warn"

# find blender binary
# shellcheck disable=SC2003,SC2308,SC2046
Expand Down
9 changes: 3 additions & 6 deletions tools/pip_package/build_pip_package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -189,20 +189,17 @@ if [ "${deploy_stage}" = "release" ]; then
ls -R .
${python_bin} setup.py sdist
${python_bin} setup.py bdist_wheel
mv dist "${release_dir}/${target_version}"

# Create non-versioned package for latest release
if [ "${target_version}" = "latest" ]; then
export NON_VERSION_PACKAGE=1
${python_bin} setup.py sdist
${python_bin} setup.py bdist_wheel
unset ${NON_VERSION_PACKAGE}
mv dist "${release_dir}/non-version"
fi

echo "@@@"
ls -R dist

# move the generated package to releaes directory
mv dist "${release_dir}/${target_version}"

# clean up
cd "${CURRENT_DIR}"
rm -rf "${tmp_dir}"
Expand Down
1 change: 0 additions & 1 deletion tools/pip_package/setup_blender.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
if "NON_VERSION_PACKAGE" in os.environ:
if os.environ["NON_VERSION_PACKAGE"] == "1":
module_name = f"fake-bpy-module"
print("TEST")

# release version
if "RELEASE_VERSION" in os.environ:
Expand Down

0 comments on commit 0ff7796

Please sign in to comment.