Justin Flannery
Justin Flannery
> An environment variable sounds nice if that's okay with you! Yep, absolutely. Here's what I was thinking https://github.com/pypa/hatch/compare/master...juftin:hatch:feat/rich_tracebacks
## MRE ```text hatch==1.10.0 hatch-pip-compile==1.11.1 ``` ```shell rm -rf ./.venv/ ./requirements.txt ./requirements/ && hatch run test:test ``` ```toml [tool.hatch.env] requires = [ "hatch-pip-compile" ] [tool.hatch.envs.default] dependencies = [ "requests" ]...
There's a simple fix to this issue: ```diff - return PipCompileEnvironment( - root=self.root, - metadata=self.metadata, - name=environment_name, - config=self.pipools_environment_dict.get(environment_name, {}), - matrix_variables=self.matrix_variables, - data_directory=self.data_directory, - isolated_data_directory=self.isolated_data_directory, - platform=Platform(), - verbosity=self.verbosity,...
:tada: This PR is included in version 1.11.2 :tada: The release is available on [GitHub release](https://github.com/juftin/hatch-pip-compile/releases/tag/v1.11.2) Your **[semantic-release](https://github.com/semantic-release/semantic-release)** bot :package::rocket:
This is an interesting one. I didn't know about recursive optional dependencies. `hatch-pip-compile` is an [EnvironmentPlugin](https://hatch.pypa.io/1.1/plugins/environment/) - so at "pip-compile time" it references an environment property, [dependencies](https://hatch.pypa.io/1.1/plugins/environment/#hatch.env.plugin.interface.EnvironmentInterface.dependencies), and sends that...
This example helped to clarify this issue for me since `pypackage1234` doesn't exist on PyPI. This works when it uses the default `virtualenv` environment type by hatch, but breaks on...
Will be resolved upstream by https://github.com/pypa/hatch/pull/1387
> Can you please confirm that this works on the master branch of Hatch? Yep, confirmed working. Really nice work @ofek 🙇 pyproject.toml ```toml [project] name = "mypkg1234" version =...
> Awesome, thank you! Just FYI while I have you here, the next release will begin shipping UV directly as a dependency. I saw `uv` fly by while I was...
The way that it's handled in this repo means we generate a lockfile for each Python version - if you wanted one lockfile for all python versions you could handle...