Comments (7)
My instinct is to close this because it's up to the user whether or not they require such features and therefore may not be compliant with the spec i.e. users who do not absolutely require this functionality will necessarily not use it. UV just added support for this use case: astral-sh/uv#2475 (comment)
If you want, I could add a warning in the documentation?
from hatch.
I personally think deviating from standards is dangerous and has the potential to create a lot of confusion.
uv worked around it in one case, but for instance uv pip compile pyproject.toml
still fails in with such a project as it reads project.dependencies
without bulding.
So I guess, yes, calling that out the documentation as a warning would be a good step.
from hatch.
Okay, how does this sound: when Hatch introduces workspaces (which would be what users actually want) then I will change the functionality in Hatchling to be such that an option would be required to enable context formatting on static fields. There are other options like that: https://hatch.pypa.io/latest/config/metadata/#allowing-direct-references
from hatch.
Actually wait, that is the current behavior because Hatchling will by default error for direct references such as local paths. So back to the beginning I suppose all I can do is add a warning because this is already doubly opt-in: once for usage and then enabling the option to make usage work.
from hatch.
I suspect uv pip compile pyproject.toml
will continue to fail here even once we add support for PEP 517 hooks there, because we'll still want to read metadata directly from the pyproject.toml
when we can.
from hatch.
I don't know how to make the situation better than a doubly opt-in option. I could of course remove the feature but then there are users that require it.
from hatch.
Related Issues (20)
- how include dependency for build? HOT 5
- Please, add env-file config option to import .env files HOT 6
- unix socket breaks hatch build sdist with cryptic error HOT 1
- Hatch doesn't pick up python version when changed in the config HOT 1
- `hatch fmt` does not format if linter has found a problem HOT 5
- Hatchling 1.22.1 doesn't produce entry points for `black-24.3.0` (via `PKG-INFO`) HOT 5
- Hatchling 1.22.1: build parse-stages 0.1.8: no produced dynamic dependencies for hatch-requirements-txt HOT 2
- Debug project.scripts HOT 1
- twine complains about "InvalidDistribution: Metadata is missing required fields: Name, Version." HOT 2
- Rename the main development branch? HOT 1
- Interoperability with Lmod
- Consider moving cache to build directory or as development feature only
- Persistent dynamic core metadata breaks user assumptions HOT 47
- `hatch build -t wheel:editable` fails HOT 6
- py.typed for single-file packages ? HOT 12
- Custom hook dependencies specified in `pyproject.toml` are no longer installed HOT 5
- Hatch run with invalid pyproject.toml fails with exit code 0 HOT 1
- Install a package from apt or source HOT 1
- Support for PEP 514 (Python registration in the Windows registry) in `hatch python install` HOT 1
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 hatch.