basnijholt / unidep Goto Github PK
View Code? Open in Web Editor NEWSingle source of truth with requirements for pip and conda
Home Page: https://unidep.readthedocs.io
License: BSD 3-Clause "New" or "Revised" License
Single source of truth with requirements for pip and conda
Home Page: https://unidep.readthedocs.io
License: BSD 3-Clause "New" or "Revised" License
requirements.txt
and environment.yaml
in sync- conda: numpy # [linux]
pip: numpy # [macos]
Might not work when combining environments because sel(platform): ...
is not possible in pip:
Edit: while implementing this in #113 I realized this is a bad idea.
We cannot extract any dependencies that would also be installable with conda and therefore the whole situation becomes much more complicated.
Therefore the only option currently remains for unidep to be "infectious" for local dependencies.
# TODO (Bas): !=5 should be removed but this is not yet implemented # noqa: TD003, FIX002
unidep/tests/test_version_conflicts.py
Line 62 in 31894d9
This means that it should detect the platform and select the pip packages
Right now all comments are preserved. Instead we should have a regex that finds [sel].
requirements.txt
and environment.yaml
in syncunidep install requirements.yaml --conda-env-name 311
ValueError: Could not find conda prefix with name `311`. Available prefixes:
π C:\ProgramData\mambaforge_22.9.0.2
π C:\Users\login\.conda\envs\310
π C:\Users\login\.conda\envs\311
π C:\Users\login\.conda\envs\312
π C:\Users\login\.conda\envs\39
It seems the named-environments fall back to computing prefix-environments but don't find them (?), despite 311 existing.
I'm running unidep from a pipx install.
Seems blocked by executablebooks/MyST-Parser#564
I'm really enjoying this package, this is great and solves a lot of problems I've been struggling with. I should also note I'm new to python packaging and distribution. I noted recently that I have to move the dependencies
out from behind the [tool.unidep]
section in my pyproject.toml to be able to use pypa's build
frontend. Is this something that unidep plans on providing an interface for?
Instead of in two steps:
Lines 479 to 520 in 9afbaad
Posted by others
Self posted
A declarative, efficient, and flexible JavaScript library for building user interfaces.
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. πππ
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google β€οΈ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.