Comments (5)
I've replicated the issue in a Linux Docker container as well, so the issue isn't peculiar to my environment.
Curiously, even though I'm seeing these errors when running builds, I'm finding that files are being included that would seem to depend on git metadata, such as Lorem ipsum.txt in jaraco.text.
Oh. I think I see what's happening now. build
is building the sdist first, which does rely on the file finders, but then builds the wheel from the sdist, which relies on the manifest in the sdist. I'll have to revisit the original project (distutils) to see where things are going wrong there (why nothing is being discovered).
from setuptools_scm.
Aha. So I've clarified my confusion. The errors are expected to be emitted. They just need not to appear during the sdist phase. The reason there were issues with the distutils build was not because of scm file finders, but because of an exclude directive. The error from setuptools_scm was a red herring.
from setuptools_scm.
@jaraco , sorry but your last two comments are a little too technical for me to understand. I get this same error every time I do a build even though the build seems successful. How can I get rid of that error message?
from setuptools_scm.
Because of the way setuptools is engineered, it will necessarily involve setuptools_scm
at both phases of the build, during the sdist and then again at the wheel. It's okay to see the error message during the wheel build because it no longer needs the SCM metadata because that's been embedded in the sdist during the sdist phase. In short, I don't think there is currently a way for Setuptools or setuptools_scm to know that it's doing a "wheel from sdist" and thus to disable features like "search for files using git metadata". Therefore, I don't think there's a way to get rid of the error message. Perhaps there's something that could be done, but it would require coordination between build and the backends (setuptools) and their plugins (setuptools_scm).
I'll move this issue to packaging-problems for consideration.
from setuptools_scm.
Thanks for your reply.
The message reports a big fat ERROR, not even a warning so I assumed I must have a mistake somewhere and have spent ages trying different fixes which did not change anything. It is disconcerting to see that ERROR reported so this clearly must be considered a bug.
from setuptools_scm.
Related Issues (20)
- what are the available version_scheme HOT 4
- Add a `just-the-tag` version scheme HOT 12
- Be a smidge more error tolerant? HOT 2
- How to keep the version when changing tracked files? HOT 7
- documentation outdated? HOT 3
- Why is get_version at runtime deprecated? HOT 1
- setuptools_scm does not get the latest git tag HOT 5
- `AssertionError: assert main_version is not None` when `pyproject.toml` defines its own `version_schema` and provides its own callable. HOT 2
- LookupError: setuptools-scm was unable to detect version if [tool.setuptools_scm] is in pyproject.toml HOT 17
- setup(python_requires=">=3.9") seems not supported HOT 2
- 8.0.4 fails to install with Python 3.8/3.9 (but works fine with Python 3.10+) HOT 6
- 8.0.4 fails to build wheel on python 3.10 with gpep517 v15 HOT 3
- get_version(): normalize=False incompatible with several version schemes HOT 1
- Don't strip local version suffix from tag when specified
- use_scm_version sometimes used, sometimes not HOT 8
- Non-monotonic development versions with release branch scheme HOT 4
- wheel from sdist leads to nuisance error messages in backend HOT 5
- Documented `.git_archival.txt` is not reproducible HOT 1
- Incorrect documentation regarding docker cache HOT 2
- LookupError: setuptools-scm was unable to detect version for /app when project is used as a git submodule. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from setuptools_scm.