Skip to content
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

Relative local paths for dependencies #2004

Closed
lminer opened this issue Sep 7, 2024 · 6 comments
Closed

Relative local paths for dependencies #2004

lminer opened this issue Sep 7, 2024 · 6 comments
Labels
✨ enhancement Feature request

Comments

@lminer
Copy link

lminer commented Sep 7, 2024

Problem description

I have a large monorepo with multiple sub-projects, each with their own pyproject.toml. Some of the subprojects depend on each other.

monorepo/
│
├── pyproject.toml         # Base pyproject.toml (for linting only)
├── libs/
│   ├── package_a/
│   │   ├── pyproject.toml  # pyproject.toml for package_a
│   │   ├── src/
│   │   │   └── package_a/
│   │   │       └── __init__.py
│   │   └── tests/
│   │       └── test_package_a.py
│   ├── package_b/
│   │   ├── pyproject.toml  # pyproject.toml for package_b
│   │   ├── src/
│   │   │   └── package_b/
│   │   │       └── __init__.py
│   │   └── tests/
│   │       └── test_package_b.py
│   └── package_c/
│       ├── pyproject.toml  # pyproject.toml for package_c
│       ├── src/
│       │   └── package_c/
│       │       └── __init__.py
│       └── tests/
│           └── test_package_c.py
│
└── other_dirs/            # Other directories in the monorepo

It would be nice to be able to have package A refer to a relative path to package B in its pyproject.toml. This is possible using hatch/uv, but I can't find any documentation to see if it can be done in pixi.

@lminer lminer added the ✨ enhancement Feature request label Sep 7, 2024
@tdejager
Copy link
Contributor

tdejager commented Sep 8, 2024

This can currently only be done for python projects using pypi-dependencies. See the following example: https://github.com/prefix-dev/pixi/tree/main/examples/pypi-source-deps this also works for pyproject.toml. Also see: https://github.com/Deltares/Ribasim

@lminer
Copy link
Author

lminer commented Sep 8, 2024 via email

@tdejager
Copy link
Contributor

tdejager commented Sep 8, 2024

Ah no it does not indeed, that is feature that we are working on now called 'pixi build'.

@lminer
Copy link
Author

lminer commented Sep 8, 2024 via email

@tdejager
Copy link
Contributor

Yes here: #1654

@ruben-arts
Copy link
Contributor

Closing this in favor of pixi build

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✨ enhancement Feature request
Projects
None yet
Development

No branches or pull requests

3 participants