-
Notifications
You must be signed in to change notification settings - Fork 879
Next #395
Conversation
Docker-DCO-1.1-Signed-off-by: Mangled Deutz <[email protected]> (github: dmp42)
Docker-DCO-1.1-Signed-off-by: Mangled Deutz <[email protected]> (github: dmp42)
…zed in lib/__init__.py Docker-DCO-1.1-Signed-off-by: Mangled Deutz <[email protected]> (github: dmp42)
Docker-DCO-1.1-Signed-off-by: Mangled Deutz <[email protected]> (github: dmp42)
Docker-DCO-1.1-Signed-off-by: Mangled Deutz <[email protected]> (github: dmp42)
Docker-DCO-1.1-Signed-off-by: Mangled Deutz <[email protected]> (github: dmp42)
Docker-DCO-1.1-Signed-off-by: Mangled Deutz <[email protected]> (github: dmp42)
Docker-DCO-1.1-Signed-off-by: Mangled Deutz <[email protected]> (github: dmp42)
Docker-DCO-1.1-Signed-off-by: Mangled Deutz <[email protected]> (github: dmp42)
Docker-DCO-1.1-Signed-off-by: Mangled Deutz <[email protected]> (github: dmp42)
Docker-DCO-1.1-Signed-off-by: Mangled Deutz <[email protected]> (github: dmp42)
Docker-DCO-1.1-Signed-off-by: Mangled Deutz <[email protected]> (github: dmp42)
Docker-DCO-1.1-Signed-off-by: Mangled Deutz <[email protected]> (github: dmp42)
Docker-DCO-1.1-Signed-off-by: Mangled Deutz <[email protected]> (github: dmp42)
About |
On Thu, May 29, 2014 at 08:02:16AM -0700, Mangled Deutz wrote:
Instead of: requirements-style.txt I prefer the reduced clutter of: requirements/style.txt I like the bit with extras_require. Hadn't seen that before.
You shift this to server/init.py later, so you should probably
I don't understand the “( There's also some unneccessary churn in requirements.txt. If you want
This adds colorama and assorted stuff that's (mostly?) removed again You also comment out some cookie stuff, that you should probably just
What does the namespace breakage look like? Can't all this metadata |
@samalba @wking extras requirements are a setup tools feature: https://pythonhosted.org/setuptools/setuptools.html#declaring-extras-optional-features-with-their-own-dependencies The idea is sexy, being able to name a "feature" and attach an array of dependencies - the downside is when installing from filesystem (it turns ugly). @wking thanks for the thorough review
Yes, that's a bit messy, sorry for that, and I'll squash / reformat. About requirements/test - style, folder vs. root, yes, why not group them. Ultimately, we may even get rid of them and use a docker-python-dev package to express tooling for all docker python development if we decide we need coherence.
Well, that's not possible - that's the caveat of python namespaces: you can't have anything package specific in the init file of a namespaced folder.
No, unfortunately.
Yes, and you are right, it's unclear. Will fix.
No, unfortunately. See pypa/pip#3 (comment) http://stackoverflow.com/questions/17338925/cannot-install-two-packages-that-use-the-same-namespace for a starter. |
On Thu, May 29, 2014 at 11:03:50AM -0700, Mangled Deutz wrote:
I like explicit requirement files more than splitting the dependencies
With PEP 420 and Python 3.3, namespace packages move into the standard |
On Thu, May 29, 2014 at 11:44:35AM -0700, W. Trevor King wrote:
I see that namespaces landed with a181c13 (Move away content from |
The idea I'm talking about is to enforce common tooling across several different projects, but that's irrelevant and not going to happen (soon) for the registry itself.
I know PEP 420 but unfortunately, moving to python3 and dropping py2 support is science fiction here (gevent is not compatible yet, and flask broke it), so we have to stick with the old crappy way.
The PR you link to actually asked for comment :-) Either way, there are a number of advantages in using namespaces, especially not multiplying different global names between different packages (-core, -registry), or ability to list all available drivers by enumerating docker_registry.drivers, etc. Sure, there are other ways to do "plugins" - that one has upsides and downsides (admittedly I'm disappointed about how broken python namespaces / packaging are, but it's still a powerful and clean formalism). Best. |
This more essentially makes workflow usable again - it is entirely broken on master, and has been for quite some time. I'll clean up the commits though, to avoid adding / removing debug helpers. |
lgtm |
On Thu, May 29, 2014 at 02:01:15PM -0700, Mangled Deutz wrote:
It was a big PR, and I was too busy to look it over ;). Apologies for
Meh :p. This doesn't seem to be worth any implementation
Is this actually useful? Users will have to know which drivers are I'm still not sure why this blows up and requires the execfile hack 'error: package directory '…' does not exist' as in 1? How can I reproduce the error you were working around |
Peace :-)
Well I do like namespaces, and do wish they were less "hoopy" :-) Now:
I completely agree that you have reasons not to like namespaces (I too was bitten when I was young - it was by a PEAR package though :-)) but I can assure you namespaces can be good if you tame them:
Anyhow, we are entirely OT here (*), and I'm on a GMT timezone :-) ((*) I'd be happy to have a beer with you someday, though) |
On Thu, May 29, 2014 at 03:05:51PM -0700, Mangled Deutz wrote:
Heh, works for me. |
On Thu, May 29, 2014 at 03:05:51PM -0700, Mangled Deutz wrote:
And I like PEP 420, and was able to get a docker_registry.meta import |
Hear hear :-) |
This should come into the 0.8 branch (that will be master as soon as we switch over 0.7).
Mainly this is (almost trivial) cleanup and simplification of build / packaging / setup scripts.
Also, it fixes:
pip install docker-registry[bugsnag]
)And add more (removal) tests to the test suite.