> you may have flipped
Not me.
> was that intentional…
Intentional.
> Not sure what you meant by the 'Please remember to brew mirror imagemagick when merging.' part of this PR's description…
You don't need to understand that. Only maintainers can use `brew mirror`, and it uploads the tarball to Bintray so that the URL https://dl.bintray.com/homebrew/mirror/imagemagick-6.9.7-0.tar.xz works.
Test of `yelp-tools` is failing, but that's because the XML schema http://projectmallard.org/1.0/mallard-1.0.rng can't be loaded (projectmallard.org is down at the moment); it shouldn't block the Python update.
Remove deb package building and mention
=======================================
googler has been included in Debian Stretch and Ubuntu Yakkety. There's also a PPA listed. Most people should just use the official repos or the PPA.
Those who want to use an independent, latest version should choose another installation method, e.g., download the single script.
> Also, how about disabling the deb package generation now that we are on Ubuntu and have a well-maintained PPA too?
I'm writing the commit message right now :)
> Also, instead of enter "exact" for an exact search., how about enter "x" for an exact search.? Keeps it short and sweet.
I was modeling the "exact" command on "unfilter", but no objection to "x".
Do not use prerelease versions of packages
==========================================
The `pypi.org/pypi/{package}/json` (or `pypi.python.org/pypi/{package}/json`) API returns all versions of a package, including prerelease versions; in particular, the default (`.urls` in the JSON payload) could be prerelease. Using `.urls` in the JSON payload by default (which currently means any package that is not a parsed dependency) results in the possibility of generated resources being a prerelease version, which is undesirable for Homebrew most of the time. For instance, prior to this commit, `poet -s wheel` or `poet -r wheel` would generate
```rb
resource "wheel" do
url "https://files.pythonhosted.org/packages/a7/37/947b4329c4a3c72093b6c8e9b4be8c7f10c32dbb78848d3a234ce01c059d/wheel-0.30.0a0.tar.gz"
sha256 "98f3e09b4ad7f5649a7e3d00e0e005ec1824ddcd6ec16c5086c05b1d91ada6da"
end
```
This commit switches to `pip.index.PackageFinder`, which automatically excludes prereleases unless `allow_all_prereleases` is set to True, and obviously better reflects what pip would actually install.
The known only "regression" is the inability of retrieving package homepage via this method, but since it's only ever used in `poet -f`, it shouldn't be a big problem for package authors, who should be aware of the package homepage anyway.
The other concern is that pip doesn't have a stable API officially, but the basic components being used here at least dates back to 6.0 from Dec 2014.
---
Alternatively, we can manually sort all versions returned by the `pypi.org/pypi/{package}/json` API and drop the prerelease versions.
> For some reason virtualenv picks up wheel 0.30.0a0
Apparently this has been fixed in virtulenv 15.1.0: https://github.com/pypa/virtualenv/blob/15.1.0/docs/changes.rst#1510-2016-11-15.