-
-
Notifications
You must be signed in to change notification settings - Fork 212
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
Version file is not generated since version 8 on CI without any error #933
Comments
what version of tox is being used - its possible a pip upgrade of setuptools is needed, im not sure i can debug this one before monday |
for extra details, please let the build package build a wheel with output and SETUPTOOL_SCM_DEBUG=true |
@Czaki it seems like the shallow git checkout is trubling etuptools_scm the .pkg workflow of tox i not producing any debug output either, so a lot is missing |
tox 4.11.3 Build wheel and sdist (no version.py file) package22.zip Logs from build package: Build package.zip |
The build linked above uses fetch depth 0 (all history) and still version file is not attached, even if the version is properly determined in file name. But in other project we got such errors "ERROR setuptools_scm._file_finders.git listing git files failed - pretending there aren't any" on windows ci but not have yet enough information for separate report. |
I pass wrong variable: logs: Build package.zip EDIT. Also full repo history do not change the situation, and |
the logs indicate lack of history (tus generating a wrong version) and indeed no logging of writing, i'll need to debug this in detail |
Could I help somehow? Create log with full git history? |
It seems i can replicate the issue using tox More debugging is needed as to the cause |
@Czaki i did a fresh local shallow clone and got version files correct, i suspect the tox setup is involved |
but I attach output from CI where I do only clone and call build_package:
name: Build package
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 1
- name: Set up Python 3.11
uses: actions/setup-python@v4
with:
python-version: 3.11
- name: Install dependencies
run: |
pip install -U build
- name: Build package
run: |
python -m build --sdist --wheel .
env:
SETUPTOOLS_SCM_DEBUG: true
- name: Upload package
uses: actions/upload-artifact@v3
with:
name: package22
path: dist
retention-days: 5 Did you do shallow copy of this PR? |
Hello 👋 I am also getting a similar error, both in version 8 and in previous versions (tested on 7.1.0 and 8.0.3). It only started happening in the last few days, and it coincided with a new release of an Ubuntu 22.04 image (20230917.1.0, could be coincidental/unrelated) on GitHub Actions. Example failed build (7.1.0): https://github.com/mozilla/mozregression/actions/runs/6240525450/job/17049062792.
Edit: Seems to affect most versions of Python (tested 3.7 to 3.11), and only on Ubuntu 22.04 and Windows for some reason. macOS and Ubuntu 20.04 appear to not be affected by this issue. |
@zzzeid what setuptools version is made available - can you try what happens if setup_requires is removed? |
@Czaki same to you, its possibly a regression in the setuptools integration that i missed (as typically use_scm_version and pyproject are not mixed deeply, i may need to expand the handling to correctly get all data |
Seems like they all are using 68.0.0. I also checked the old build from last week that was successful, uses the same version. Successful build (Python 3.9, Ubuntu 20.04): setuptools==68.0.0
I will try that and let you know. Edit: same error after removing (sorry, realized that you can't see the detail on those runs, but the error is exactly the same, pasted below).
|
Also please remove |
That appears to get things working again! Will see if there are any other impacts but looks pretty good so far. Thanks! |
I have a idea for a Bugfix now, Will get that done over the weekend |
It looks like |
It is a deprecated feature and I could have noticed this sooner (https://github.com/pypa/setuptools_scm/tree/v7.1.0#setuppy-usage-deprecated). It would be interesting to see the root cause of the actual bug and why it didn't affect certain platforms, but that's not necessary per se. Thank again for the help! |
The Slycot CI started to fail from this error as well. We are using scikit-build (not scikit-build-core yet) and do have https://github.com/python-control/Slycot/actions/runs/6285374495/job/17067739674?pr=214 Removing the |
Since
setuptools_scm
release 8 I have observed a test crash because the version file is not generated.When it is configured in pyproject.toml: https://github.com/4DNucleome/PartSeg/blob/bcaf0aad2e80edbf25e42859f8a0722074f0c68b/pyproject.toml#L1-L7
But when I pin
setuptools_scm
below 8 all problems disappear.Here is log with
SETUPTOOLS_SCM_DEBUG
set to 1.https://github.com/4DNucleome/PartSeg/actions/runs/6273817081/job/17038040421?pr=1020
I cannot reproduce it locally. I do not have any idea how to debug this.
The text was updated successfully, but these errors were encountered: