Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mgedmin/ztk-py3-status

Produce a list of Zope Foundation packages and Python versions they support
https://github.com/mgedmin/ztk-py3-status

Last synced: about 1 month ago
JSON representation

Produce a list of Zope Foundation packages and Python versions they support

Awesome Lists containing this project

README

        

Scripts to determine the Python 3 porting status of various Zope packages
=========================================================================

These scripts are run from cron to produce JSON files consumed by JavaScript in
https://github.com/ProgrammersOfVilnius/zope3.pov.lt/tree/master/py3

The *actual* cron script is at https://gist.github.com/mgedmin/4686862

Usage::

./update.sh

This takes a while (8 minutes just to get PyPI status; more to download
source distributions).

Example output::

[{"name": "zope.interface",
"version": "4.0.3",
"supports": ["2.6", "2.7", "3.2", "3.3", "pypy"]},
"supports_py3": true,
"requires": ["setuptools"],
"blockers": [],
"blocks": [],
"sdist_url": "http://pypi.python.org/packages/source/z/zope.interface/zope.interface-4.0.3.tar.gz",
"source_web_url": "https://github.com/zopefoundation/zope.interface",
"github_web_url": "https://github.com/zopefoundation/zope.interface",
"svn_web_url": "http://zope3.pov.lt/trac/browser/zope.interface",
"removed_from_svn": false},
...]

Caching
-------

The ./get_pypi_status.py script caches metadata received from PyPI in
./cache/meta/\*.json for 24 hours by default. You can override these settings
with ::

./get_pypi_status.py --cache-dir=~/.cache/pypi-meta --cache-max-age=3600

The sdist cache used by get_deps.py is (a) configurable, and (b) compatible
with buildout. If you use a shared buildout cache, you can speed up
the initial dependency extraction with ::

./get_deps.py --cache-dir=~/.buildout/cache/dist < status.json > deps.json

(you'll have to edit update.sh)