unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* [PATCH 0/X] gnu: poetry: Fix broken dependency after dependency's version update.
@ 2020-07-28 15:48 Tanguy Le Carrour
  2020-07-29 22:42 ` Marius Bakke
  0 siblings, 1 reply; 3+ messages in thread
From: Tanguy Le Carrour @ 2020-07-28 15:48 UTC (permalink / raw)
  To: Guix

Hi Guix!

Few days ago, I submitted a patch to update `python-tomlkit`. It was pushed
to master and, after I upgraded my packages today, I realised that `poetry`
(and possibly other python packages) was broken!

The "problem" is that Poetry depends on `tomlkit = "^0.5.11"`. This
translates to `>=0.5.11,<0.6.0`. And I updated `python-tomlkit` to… 0.6.0!

In SemVer [1], minor releases are supposed to "add functionality
in a backwards compatible manner", so this "<0.6.0" seems, IMHO, wrong.
But that's not the point…

[1]: https://semver.org/

Now, I have to fix Poetry and I have 2 options:
- modify poetry `setup.py` and substitute `>=0.5.11,<0.7.0` to `>=0.5.11,<0.6.0`;
- add a new `python-tomlkit-0.5` and use it in the propagated inputs.

Any suggestion on the one I should implement?

Regards

-- 
Tanguy


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH 0/X] gnu: poetry: Fix broken dependency after dependency's version update.
  2020-07-28 15:48 [PATCH 0/X] gnu: poetry: Fix broken dependency after dependency's version update Tanguy Le Carrour
@ 2020-07-29 22:42 ` Marius Bakke
  2020-07-30 13:18   ` Tanguy Le Carrour
  0 siblings, 1 reply; 3+ messages in thread
From: Marius Bakke @ 2020-07-29 22:42 UTC (permalink / raw)
  To: Tanguy Le Carrour, Guix

[-- Attachment #1: Type: text/plain, Size: 1347 bytes --]

Tanguy Le Carrour <tanguy@bioneland.org> writes:

> Hi Guix!
>
> Few days ago, I submitted a patch to update `python-tomlkit`. It was pushed
> to master and, after I upgraded my packages today, I realised that `poetry`
> (and possibly other python packages) was broken!
>
> The "problem" is that Poetry depends on `tomlkit = "^0.5.11"`. This
> translates to `>=0.5.11,<0.6.0`. And I updated `python-tomlkit` to… 0.6.0!
>
> In SemVer [1], minor releases are supposed to "add functionality
> in a backwards compatible manner", so this "<0.6.0" seems, IMHO, wrong.
> But that's not the point…
>
> [1]: https://semver.org/
>
> Now, I have to fix Poetry and I have 2 options:
> - modify poetry `setup.py` and substitute `>=0.5.11,<0.7.0` to `>=0.5.11,<0.6.0`;
> - add a new `python-tomlkit-0.5` and use it in the propagated inputs.
>
> Any suggestion on the one I should implement?

I haven't looked into it, but if the tomlkit API really is compatible,
the first suggestion sounds good to me.  It would be good to notify
upstream about the unreasonable "pinning" in that case.

Otherwise the second suggestion sounds good too.  There is plenty of
precedence for both solutions in Guix and is really something that needs
to be decided on a case-by-case basis.

Thanks for finding and following up on the issue!  :-)

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH 0/X] gnu: poetry: Fix broken dependency after dependency's version update.
  2020-07-29 22:42 ` Marius Bakke
@ 2020-07-30 13:18   ` Tanguy Le Carrour
  0 siblings, 0 replies; 3+ messages in thread
From: Tanguy Le Carrour @ 2020-07-30 13:18 UTC (permalink / raw)
  To: Marius Bakke; +Cc: Guix

Hi Marius,


Le 07/30, Marius Bakke a écrit :
> Tanguy Le Carrour <tanguy@bioneland.org> writes:
> > Few days ago, I submitted a patch to update `python-tomlkit`. It was pushed
> > to master and, after I upgraded my packages today, I realised that `poetry`
> > (and possibly other python packages) was broken!
> >
> > The "problem" is that Poetry depends on `tomlkit = "^0.5.11"`. This
> > translates to `>=0.5.11,<0.6.0`. And I updated `python-tomlkit` to… 0.6.0!
> >
> > In SemVer [1], minor releases are supposed to "add functionality
> > in a backwards compatible manner", so this "<0.6.0" seems, IMHO, wrong.
> > But that's not the point…
> >
> > [1]: https://semver.org/
> >
> > Now, I have to fix Poetry and I have 2 options:
> > - modify poetry `setup.py` and substitute `>=0.5.11,<0.7.0` to `>=0.5.11,<0.6.0`;
> > - add a new `python-tomlkit-0.5` and use it in the propagated inputs.
> >
> > Any suggestion on the one I should implement?
> 
> I haven't looked into it, but if the tomlkit API really is compatible,
> the first suggestion sounds good to me.  It would be good to notify
> upstream about the unreasonable "pinning" in that case.

Problem reported upstream: <https://github.com/python-poetry/poetry/issues/2752>.


> Otherwise the second suggestion sounds good too.  There is plenty of
> precedence for both solutions in Guix and is really something that needs
> to be decided on a case-by-case basis.

I decided to implement the "quick fix": <https://debbugs.gnu.org/cgi/bugreport.cgi?bug=42619>.
I'll implement the `python-tomlkit-0.5` solution if upstream does not
see this as a problem.

Regards

-- 
Tanguy


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-07-30 13:18 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-28 15:48 [PATCH 0/X] gnu: poetry: Fix broken dependency after dependency's version update Tanguy Le Carrour
2020-07-29 22:42 ` Marius Bakke
2020-07-30 13:18   ` Tanguy Le Carrour

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).