From c4df5c1894ccaa08b323b816ee8da44ca19fe555 Mon Sep 17 00:00:00 2001 From: "Nathaniel J. Smith" Date: Sun, 28 Oct 2018 12:58:14 -0700 Subject: [PATCH] Rework zenodo handling to make releasing simpler Just link to the (new!) overview DOI instead of manually adding links to each release's DOI. --- README.rst | 8 ++++++++ doc/changes.rst | 33 ++++++++++++--------------------- release-checklist.txt | 5 ----- 3 files changed, 20 insertions(+), 26 deletions(-) diff --git a/README.rst b/README.rst index d843ebe..e709f63 100644 --- a/README.rst +++ b/README.rst @@ -3,10 +3,18 @@ Patsy is a Python library for describing statistical models building design matrices. Patsy brings the convenience of `R `_ "formulas" to Python. +.. image:: https://img.shields.io/badge/docs-read%20now-blue.svg + :target: https://patsy.readthedocs.io/ + :alt: Documentation .. image:: https://travis-ci.org/pydata/patsy.png?branch=master :target: https://travis-ci.org/pydata/patsy + :alt: Build status .. image:: https://coveralls.io/repos/pydata/patsy/badge.png?branch=master :target: https://coveralls.io/r/pydata/patsy?branch=master + :alt: Coverage +.. image:: https://zenodo.org/badge/DOI/10.5281/zenodo.592075.svg + :target: https://doi.org/10.5281/zenodo.592075 + :alt: Zenodo Documentation: https://patsy.readthedocs.io/ diff --git a/doc/changes.rst b/doc/changes.rst index 4726b3a..6eefc6c 100644 --- a/doc/changes.rst +++ b/doc/changes.rst @@ -3,6 +3,12 @@ Changes .. currentmodule:: patsy +All Patsy releases are archived at Zenodo: + +.. image:: https://zenodo.org/badge/DOI/10.5281/zenodo.592075.svg + :target: https://doi.org/10.5281/zenodo.592075 + + v0.5.1 ------ @@ -15,9 +21,6 @@ v0.5.1 v0.5.0 ------ -.. image:: https://zenodo.org/badge/DOI/10.5281/zenodo.1211053.svg - :target: https://doi.org/10.5281/zenodo.1211053 - * Dropped support for Python 2.6 and 3.3. * Update to keep up with ``pandas`` API changes * More consistent handling of degenerate linear constraints in @@ -25,12 +28,10 @@ v0.5.0 `__) * Fix a crash in ``DesignMatrix.__repr__`` when ``shape[0] == 0`` + v0.4.1 ------ -.. image:: https://zenodo.org/badge/doi/10.5281/zenodo.33471.svg - :target: https://doi.org/10.5281/zenodo.33471 - New features: * On Python 2, accept ``unicode`` strings containing only ASCII @@ -49,12 +50,10 @@ Bug fixes: * Fix deprecation warnings encountered with numpy 1.10 + v0.4.0 ------ -.. image:: https://zenodo.org/badge/doi/10.5281/zenodo.20981.svg - :target: https://doi.org/10.5281/zenodo.20981 - Incompatible changes: * :class:`EvalFactor` and :meth:`ModelDesc.from_formula` no longer @@ -108,12 +107,10 @@ Other changes: * Fixed a bug when running under ``python -OO``. + v0.3.0 ------ -.. image:: https://zenodo.org/badge/doi/10.5281/zenodo.11444.svg - :target: https://doi.org/10.5281/zenodo.11444 - * New stateful transforms for computing natural and cylic cubic splines with constraints, and tensor spline bases with constraints. (Thanks to `@broessli `_ @@ -147,12 +144,10 @@ v0.3.0 * Worked around some more limitations in py2exe/py2app and friends. + v0.2.1 ------ -.. image:: https://zenodo.org/badge/doi/10.5281/zenodo.11447.png - :target: https://doi.org/10.5281/zenodo.11447 - * Fixed a nasty bug in missing value handling where, if missing values were present, ``dmatrix(..., result_type="dataframe")`` would always crash, and ``dmatrices("y ~ 1")`` would produce left- and right-hand @@ -165,12 +160,10 @@ v0.2.1 * Modified ``patsy/__init__.py`` to work around limitations in py2exe/py2app/etc. + v0.2.0 ------ -.. image:: https://zenodo.org/badge/doi/10.5281/zenodo.11448.png - :target: https://doi.org/10.5281/zenodo.11448 - Warnings: * The lowest officially supported Python version is now 2.5. So far as @@ -201,10 +194,8 @@ New features: Other: miscellaneous doc improvements and bug fixes. + v0.1.0 ------ -.. image:: https://zenodo.org/badge/doi/10.5281/zenodo.11449.png - :target: https://doi.org/10.5281/zenodo.11449 - First public release. diff --git a/release-checklist.txt b/release-checklist.txt index 33d2ac4..165310c 100644 --- a/release-checklist.txt +++ b/release-checklist.txt @@ -14,8 +14,6 @@ * in original directory: git tag v && git push --tags * in clean clone: python setup.py sdist --formats=zip && python setup.py bdist_wheel * twine upload dist/*.zip dist/*.whl -* Go to http://readthedocs.org/dashboard/patsy/versions/, set the new - version to build and update the default. * announce release on: pydata@googlegroups.com pystatsmodels@googlegroups.com @@ -25,6 +23,3 @@ * go to https://github.com/pydata/patsy/releases/new and type the tag name and give it some text. (This will trigger Zenodo archiving the tag.) -* go to - https://zenodo.org/search?f=author&p=Nathaniel%20J.%20Smith&ln=en - to find the new archive and add the DOI image to changes.rst.