-
-
Notifications
You must be signed in to change notification settings - Fork 96
FileNotFoundError: [Errno 2] No such file or directory: '/github/workspace/wheelhouse/*' #90
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I've come up with the work around - I've set
allows the publishing to complete unabated |
It could be due to this script rewrite |
@meowmeowmeowcat could you take a look? |
Do you have a nested dir structure for the dists? |
From the log it seems like it's a user error — I don't think that the trailing forward slash ( |
Sorry - for the confusion, my first build crash had omitted the trailing slash but it expired before I could copy/paste. Yes - the , twine finds and verifies the nested wheels just fine and pathlib is not fooled by the double slash. Checking wheelhouse/btc_pip_dist-3.9-ubuntu-latest/brainome-1.8.80-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_24_x86_64.whl: PASSED
**--- Broken dev build reproduction ---**
Run pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ***
repository_url: https://test.pypi.org/legacy/
packages_dir: wheelhouse/*
verbose: true
verify_metadata: true
skip_existing: false
print_hash: false
/usr/bin/docker run --name a6825ffc5a13e2f7b41459b40f91a0ce2ec0b_28fcd4 --label 6a6825 --workdir /github/workspace --rm -e INPUT_USER -e INPUT_PASSWORD -e INPUT_REPOSITORY_URL -e INPUT_PACKAGES_DIR -e INPUT_VERBOSE -e INPUT_VERIFY_METADATA -e INPUT_SKIP_EXISTING -e INPUT_PRINT_HASH -e HOME -e GITHUB_JOB -e GITHUB_REF -e GITHUB_SHA -e GITHUB_REPOSITORY -e GITHUB_REPOSITORY_OWNER -e GITHUB_RUN_ID -e GITHUB_RUN_NUMBER -e GITHUB_RETENTION_DAYS -e GITHUB_RUN_ATTEMPT -e GITHUB_ACTOR -e GITHUB_WORKFLOW -e GITHUB_HEAD_REF -e GITHUB_BASE_REF -e GITHUB_EVENT_NAME -e GITHUB_SERVER_URL -e GITHUB_API_URL -e GITHUB_GRAPHQL_URL -e GITHUB_REF_NAME -e GITHUB_REF_PROTECTED -e GITHUB_REF_TYPE -e GITHUB_WORKSPACE -e GITHUB_ACTION -e GITHUB_EVENT_PATH -e GITHUB_ACTION_REPOSITORY -e GITHUB_ACTION_REF -e GITHUB_PATH -e GITHUB_ENV -e RUNNER_OS -e RUNNER_ARCH -e RUNNER_NAME -e RUNNER_TOOL_CACHE -e RUNNER_TEMP -e RUNNER_WORKSPACE -e ACTIONS_RUNTIME_URL -e ACTIONS_RUNTIME_TOKEN -e ACTIONS_CACHE_URL -e GITHUB_ACTIONS=true -e CI=true -v "/var/run/docker.sock":"/var/run/docker.sock" -v "/home/runner/work/_temp/_github_home":"/github/home" -v "/home/runner/work/_temp/_github_workflow":"/github/workflow" -v "/home/runner/work/_temp/_runner_file_commands":"/github/file_commands" -v "/home/runner/work/mlmeter/mlmeter":"/github/workspace" 6a6825:ffc5a13e2f7b41459b40f91a0ce2ec0b "__token__" "***" "https://test.pypi.org/legacy/" "wheelhouse/*" "true" "false" "true" "false"
Checking wheelhouse/btc_pip_dist-3.8-ubuntu-latest/brainome-1.8.83-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_24_x86_64.whl: PASSED
Traceback (most recent call last):
File "/app/print-hash.py", line 9, in <module>
for file_object in packages_dir.iterdir():
File "/usr/local/lib/python3.9/pathlib.py", line 1160, in iterdir
for name in self._accessor.listdir(self):
FileNotFoundError: [Errno 2] No such file or directory: '/github/workspace/wheelhouse/*' Showing hash values of files to be uploaded: **--- Working PRODUCTION build== verbose=false---**
Run pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ***
repository_url: https://test.pypi.org/legacy/
packages_dir: wheelhouse/*
verbose: false
verify_metadata: true
skip_existing: false
print_hash: false
/usr/bin/docker run --name a6825133466598ff544f7bb5db9f4888bd7e9_bd0fad --label 6a6825 --workdir /github/workspace --rm -e INPUT_USER -e INPUT_PASSWORD -e INPUT_REPOSITORY_URL -e INPUT_PACKAGES_DIR -e INPUT_VERBOSE -e INPUT_VERIFY_METADATA -e INPUT_SKIP_EXISTING -e INPUT_PRINT_HASH -e HOME -e GITHUB_JOB -e GITHUB_REF -e GITHUB_SHA -e GITHUB_REPOSITORY -e GITHUB_REPOSITORY_OWNER -e GITHUB_RUN_ID -e GITHUB_RUN_NUMBER -e GITHUB_RETENTION_DAYS -e GITHUB_RUN_ATTEMPT -e GITHUB_ACTOR -e GITHUB_WORKFLOW -e GITHUB_HEAD_REF -e GITHUB_BASE_REF -e GITHUB_EVENT_NAME -e GITHUB_SERVER_URL -e GITHUB_API_URL -e GITHUB_GRAPHQL_URL -e GITHUB_REF_NAME -e GITHUB_REF_PROTECTED -e GITHUB_REF_TYPE -e GITHUB_WORKSPACE -e GITHUB_ACTION -e GITHUB_EVENT_PATH -e GITHUB_ACTION_REPOSITORY -e GITHUB_ACTION_REF -e GITHUB_PATH -e GITHUB_ENV -e RUNNER_OS -e RUNNER_ARCH -e RUNNER_NAME -e RUNNER_TOOL_CACHE -e RUNNER_TEMP -e RUNNER_WORKSPACE -e ACTIONS_RUNTIME_URL -e ACTIONS_RUNTIME_TOKEN -e ACTIONS_CACHE_URL -e GITHUB_ACTIONS=true -e CI=true -v "/var/run/docker.sock":"/var/run/docker.sock" -v "/home/runner/work/_temp/_github_home":"/github/home" -v "/home/runner/work/_temp/_github_workflow":"/github/workflow" -v "/home/runner/work/_temp/_runner_file_commands":"/github/file_commands" -v "/home/runner/work/mlmeter/mlmeter":"/github/workspace" 6a6825:133466598ff544f7bb5db9f4888bd7e9 "__token__" "***" "https://test.pypi.org/legacy/" "wheelhouse/*" "true" "false" "false" "false"
Checking wheelhouse/btc_pip_dist-3.7-Linux/brainome-1.8.115-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_24_x86_64.whl: PASSED
Checking wheelhouse/btc_pip_dist-3.7-Windows/brainome-1.8.115-cp37-cp37m-win_amd64.whl: PASSED
Checking wheelhouse/btc_pip_dist-3.7-macOS/brainome-1.8.115-cp37-cp37m-macosx_10_15_x86_64.whl: PASSED
Checking wheelhouse/btc_pip_dist-3.8-Linux/brainome-1.8.115-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_24_x86_64.whl: PASSED
Checking wheelhouse/btc_pip_dist-3.8-Windows/brainome-1.8.115-cp38-cp38-win_amd64.whl: PASSED
Checking wheelhouse/btc_pip_dist-3.8-macOS/brainome-1.8.115-cp38-cp38-macosx_10_15_x86_64.whl: PASSED
Checking wheelhouse/btc_pip_dist-3.9-Linux/brainome-1.8.115-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_24_x86_64.whl: PASSED
Checking wheelhouse/btc_pip_dist-3.9-Windows/brainome-1.8.115-cp39-cp39-win_amd64.whl: PASSED
Checking wheelhouse/btc_pip_dist-3.9-macOS/brainome-1.8.115-cp39-cp39-macosx_10_15_x86_64.whl: PASSED
Uploading distributions to https://test.pypi.org/legacy/
Uploading brainome-1.8.115-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_24_x86_64.whl
0%| | 0.00/2.09M [00:00<?, ?B/s]
0%| | 8.00k/2.09M [00:00<00:29, 75.1kB/s]
100%|██████████| 2.09M/2.09M [00:01<00:00, 1.39MB/s]
Uploading brainome-1.8.115-cp37-cp37m-win_amd64.whl
0%| | 0.00/1.90M [00:00<?, ?B/s]
100%|██████████| 1.90M/1.90M [00:01<00:00, 1.30MB/s]
Uploading brainome-1.8.115-cp37-cp37m-macosx_10_15_x86_64.whl
0%| | 0.00/3.41M [00:00<?, ?B/s]
100%|██████████| 3.41M/3.41M [00:01<00:00, 1.87MB/s]
Uploading brainome-1.8.115-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_24_x86_64.whl
0%| | 0.00/2.20M [00:00<?, ?B/s]
100%|██████████| 2.20M/2.20M [00:01<00:00, 1.75MB/s]
Uploading brainome-1.8.115-cp38-cp38-win_amd64.whl
0%| | 0.00/2.17M [00:00<?, ?B/s]
100%|██████████| 2.17M/2.17M [00:01<00:00, 1.78MB/s]
Uploading brainome-1.8.115-cp38-cp38-macosx_10_15_x86_64.whl
0%| | 0.00/3.57M [00:00<?, ?B/s]
100%|██████████| 3.57M/3.57M [00:01<00:00, 2.55MB/s]
Uploading brainome-1.8.115-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_24_x86_64.whl
0%| | 0.00/2.20M [00:00<?, ?B/s]
100%|██████████| 2.20M/2.20M [00:01<00:00, 1.77MB/s]
Uploading brainome-1.8.115-cp39-cp39-win_amd64.whl
0%| | 0.00/2.06M [00:00<?, ?B/s]
100%|██████████| 2.06M/2.06M [00:01<00:00, 1.66MB/s]
Uploading brainome-1.8.115-cp39-cp39-macosx_10_15_x86_64.whl
0%| | 0.00/3.54M [00:00<?, ?B/s]
100%|██████████| 3.54M/3.54M [00:01<00:00, 2.55MB/s]
View at:
https://test.pypi.org/project/brainome/1.8.115/ |
The issue is here: gh-action-pypi-publish/twine-upload.sh Line 48 in 717ba43
Removing the double quotes should fix this issue: python /app/print-hash.py ${INPUT_PACKAGES_DIR%%/} (As I found that gh-action-pypi-publish/twine-upload.sh Line 35 in 717ba43
has no double quotes around the ${INPUT_PACKAGES_DIR%%/} , so it works properly.)
|
My github actions script is breaking without any changes to the script.
The
print_hash
setting appears to be ignored and thus erroring out because there are no hashes.The text was updated successfully, but these errors were encountered: