Skip to content

Commit

Permalink
Merge pull request #117 from njsmith/release-0.5.0
Browse files Browse the repository at this point in the history
0.5.0 release engineering
  • Loading branch information
njsmith committed Jan 10, 2018
2 parents 924b387 + ed3f39d commit 3b7b9c2
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 7 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -6,6 +6,7 @@ htmlcov/
.tox
# Generated by doc build
doc/_static/basis-*.png
doc/savefig/

# Cribbed from numpy's .gitignore:

Expand Down
3 changes: 2 additions & 1 deletion .travis.yml
Expand Up @@ -3,6 +3,7 @@ python:
- 2.7
- 3.4
- 3.5
- 3.6
matrix:
include:
# 0.14.0 is the last version with the old categorical system
Expand All @@ -18,7 +19,7 @@ matrix:
- python: 2.7
env: PANDAS_VERSION_STR="=0.18.0"
# make sure it works without pandas
- python: 3.5
- python: 3.6
env: PANDAS_VERSION_STR="NONE"
- python: 2.7
env: PANDAS_VERSION_STR="NONE"
Expand Down
7 changes: 6 additions & 1 deletion doc/changes.rst
Expand Up @@ -4,9 +4,14 @@ Changes
.. currentmodule:: patsy

v0.5.0 (not yet released)
------
-------------------------

* 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
:meth:`DesignInfo.linear_constraint` (`#89
<https://github.com/pydata/patsy/issues/89>`__)
* Fix a crash in ``DesignMatrix.__repr__`` when ``shape[0] == 0``

v0.4.1
------
Expand Down
2 changes: 1 addition & 1 deletion doc/conf.py
Expand Up @@ -58,7 +58,7 @@

# Add any Sphinx extension module names here, as strings. They can be extensions
# coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
extensions = ['sphinx.ext.autodoc', 'sphinx.ext.doctest', 'sphinx.ext.pngmath',
extensions = ['sphinx.ext.autodoc', 'sphinx.ext.doctest', 'sphinx.ext.imgmath',
'sphinx.ext.intersphinx',
'IPython.sphinxext.ipython_directive',
'IPython.sphinxext.ipython_console_highlighting',
Expand Down
6 changes: 3 additions & 3 deletions patsy/util.py
Expand Up @@ -109,15 +109,15 @@ def test_asarray_or_pandas():
columns=["A", "B", "C"],
index=[10])
df_view1 = asarray_or_pandas(df)
df_view1.ix[10, "A"] = 101
df_view1.loc[10, "A"] = 101
assert np.array_equal(df_view1.columns, ["A", "B", "C"])
assert np.array_equal(df_view1.index, [10])
assert df.ix[10, "A"] == 101
assert df.loc[10, "A"] == 101
df_copy = asarray_or_pandas(df, copy=True)
assert np.array_equal(df_copy, df)
assert np.array_equal(df_copy.columns, ["A", "B", "C"])
assert np.array_equal(df_copy.index, [10])
df_copy.ix[10, "A"] = 100
df_copy.loc[10, "A"] = 100
assert not np.array_equal(df_copy, df)
df_converted = asarray_or_pandas(df, dtype=float)
assert df_converted["A"].dtype == np.dtype(float)
Expand Down
2 changes: 1 addition & 1 deletion patsy/version.py
Expand Up @@ -17,4 +17,4 @@
# want. (Contrast with the special suffix 1.0.0.dev, which sorts *before*
# 1.0.0.)

__version__ = "0.4.1+dev"
__version__ = "0.5.0+dev"

0 comments on commit 3b7b9c2

Please sign in to comment.