sdispater / mixology Goto Github PK
View Code? Open in Web Editor NEWA generic dependency-resolution library written in pure Python
License: MIT License
A generic dependency-resolution library written in pure Python
License: MIT License
mixology/mixology/version_solver.py
Lines 68 to 73 in 067c5ae
I just wanted to let you know that PyPA is looking for someone to do similar work.
This is paid (important) work.
In case you haven't heard about this, it's here: http://pyfound.blogspot.com/2019/11/seeking-developers-for-paid-contract.html
BTW, after having use poetry a little bit, I really like it.
Et puisque tu es visiblement français, sache que poetry me sert pour https://github.com/vpoulailleau/padpo qui sert à la traduction en français de la doc officielle de Python.
Hey, I noticed that Poetry has a mixology component https://github.com/python-poetry/poetry/tree/master/src/poetry/mixology that looks more up-to-date than this repo (last commit here was a couple of years ago, last commit to that link was a couple of weeks ago).
IIUC you (the maintainer of this project) are the creator of poetry. I'm wondering if you have any advice for me as I'm developing my own package manager for a different programming language and would like to incorporate the mixology and semver sub-packages from Poetry's codebase. Is there a way I can pip/conda install some parts of Poetry's backend to get the up-to-date versions or should I stick to these standalone repos for mixology and poetry-semver that are perfectly functional but no-longer updated?
Thanks, any thoughts much appreciated :) And thanks for open-sourcing this fantastic approach too.
mixology/mixology/incompatibility.py
Lines 70 to 81 in 067c5ae
I believe it's this line:
mixology/mixology/version_solver.py
Line 130 in 067c5ae
self._propagate_incompatibility
will return the _conflict type which is the hashable type used to represent a package (in my usecase this is not a string). The line converts it to str which is a problem since then it is no longer a valid key in the self._incompatibilities
dictionary (line 113 of the same function).
mixology/mixology/version_solver.py
Lines 98 to 133 in 067c5ae
Hi, @sdispater, thanks for your great work here!
I was confused when I read a piece of your code, see
https://github.com/sdispater/mixology/blob/master/mixology/incompatibility.py#L29
there you remove the root package from generated incompatibilities, since it will always be satisfied, but,
term.is_positive() and term.package != Package.root()
is there a typo here? I think it should be:
term.is_positive() and term.package == Package.root()
I do a double check by reading ruby port of the PubGrub version solver, see https://github.com/jhawthorn/pub_grub/blob/master/lib/pub_grub/incompatibility.rb#L121
Would you mind to make a check and explain? Thanks!
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.