At 09:41 AM 11/21/2007 -0800, Heikki Toivonen wrote:
Morgen Sagen wrote:
> Under the hood it uses urllib, which we can configure to honor whatever
> proxy settings the user has entered in Chandler.  Heikki mentioned a
> desire to use HTTPS which means we would need proxy support for HTTPS as
> well.
>
> What do people think about using setuptools for new-version detection?

In principle that sounds great; I am not keen on reinventing either.

Would this require putting something on cheeseshop for setuptools to
detect a new Chandler version, or can you tell setuptools where to look?

The PackageIndex.find_links(url_list) method will give it specific URLs; these can be any HTML web page, as long as they contain links to directly-downloadable eggs or other easy_install-able distribution formats. It can also be given a host mask to restrict what hosts it will attempt to connect to (either to read HTML or download other files).


AFAIK cheeseshop is not available over SSL.

I think making setuptools support secure SSL would be easy (if nothing
else, replacing socket.ssl by M2Crypto's implementation), but not sure
about HTTPS proxy. M2Crypto's httpslib has HTTPS proxy support (patch
written by a 3rd party, I haven't used it myself), so maybe that could
be adapted easily... Of course, I haven't looked at setuptools code at
all so I don't know for sure how any of this would work.

The PackageIndex class can be subclassed to replace its 'open_url' method, if desired.

_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

Open Source Applications Foundation "chandler-dev" mailing list
http://lists.osafoundation.org/mailman/listinfo/chandler-dev

Reply via email to