Re: Update PEP 508 to allow version specifiers

Nick Coghlan <[email protected]>
Newsgroups gmane.comp.python.distutils.devel
Message-ID <CADiSq7dd2-f7UEqgi9v465ncjOjHt=WekL6xcs8+CTW9GX2r8Q@mail.gmail.com>
On Tue, 29 Jan 2019 at 23:40, Donald Stufft <[email protected]> wrote:
>
> You can also just stick files in a directory and use pretty much any web server that generates an automatic index from it.

Including python3 -m http.server! (I wouldn't recommend using that on
the public internet, but it can be very handy on a private intranet).

Going back to the specific case of:

"So, let's say that I have dependency "C @
https://github.com/owner/C.git@3" in project B and "C @
https://github.com/owner/C.git@1" in project A."

The recommended way of handling that would be to:

1. change the dependency declarations to be "C >= 3" and "C >= 1"
2. use `pip wheel` to create a wheel file for project "C" yourself
3. drop that wheel file into a web directory or shared filesystem
4. add `-f <URL-for-the-location-in-step-3>` to your install commands

If using `pipenv`, then step 4 can be automated by defining an
additional `source` location in each project's Pipfile.

Tools like devpi, pinrepo, Artifactory, etc can also be considered as
potentially nicer ways of managing steps 2 & 3.

Cheers,
Nick.

-- 
Nick Coghlan   |   [email protected]   |   Brisbane, Australia
--
Distutils-SIG mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/distutils-sig.python.org/
Message archived at https://mail.python.org/archives/list/[email protected]/message/5NR4MWFUKEOX37PNS26HI5BDL3MZEYAC/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.