Skip to content

Commit 3b7b9c2

Browse files
authored
Merge pull request #117 from njsmith/release-0.5.0
0.5.0 release engineering
2 parents 924b387 + ed3f39d commit 3b7b9c2

6 files changed

Lines changed: 14 additions & 7 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ htmlcov/
66
.tox
77
# Generated by doc build
88
doc/_static/basis-*.png
9+
doc/savefig/
910

1011
# Cribbed from numpy's .gitignore:
1112

.travis.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ python:
33
- 2.7
44
- 3.4
55
- 3.5
6+
- 3.6
67
matrix:
78
include:
89
# 0.14.0 is the last version with the old categorical system
@@ -18,7 +19,7 @@ matrix:
1819
- python: 2.7
1920
env: PANDAS_VERSION_STR="=0.18.0"
2021
# make sure it works without pandas
21-
- python: 3.5
22+
- python: 3.6
2223
env: PANDAS_VERSION_STR="NONE"
2324
- python: 2.7
2425
env: PANDAS_VERSION_STR="NONE"

doc/changes.rst

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,14 @@ Changes
44
.. currentmodule:: patsy
55

66
v0.5.0 (not yet released)
7-
------
7+
-------------------------
88

99
* Dropped support for Python 2.6 and 3.3.
10+
* Update to keep up with ``pandas`` API changes
11+
* More consistent handling of degenerate linear constraints in
12+
:meth:`DesignInfo.linear_constraint` (`#89
13+
<https://github.com/pydata/patsy/issues/89>`__)
14+
* Fix a crash in ``DesignMatrix.__repr__`` when ``shape[0] == 0``
1015

1116
v0.4.1
1217
------

doc/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858

5959
# Add any Sphinx extension module names here, as strings. They can be extensions
6060
# coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
61-
extensions = ['sphinx.ext.autodoc', 'sphinx.ext.doctest', 'sphinx.ext.pngmath',
61+
extensions = ['sphinx.ext.autodoc', 'sphinx.ext.doctest', 'sphinx.ext.imgmath',
6262
'sphinx.ext.intersphinx',
6363
'IPython.sphinxext.ipython_directive',
6464
'IPython.sphinxext.ipython_console_highlighting',

patsy/util.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,15 +109,15 @@ def test_asarray_or_pandas():
109109
columns=["A", "B", "C"],
110110
index=[10])
111111
df_view1 = asarray_or_pandas(df)
112-
df_view1.ix[10, "A"] = 101
112+
df_view1.loc[10, "A"] = 101
113113
assert np.array_equal(df_view1.columns, ["A", "B", "C"])
114114
assert np.array_equal(df_view1.index, [10])
115-
assert df.ix[10, "A"] == 101
115+
assert df.loc[10, "A"] == 101
116116
df_copy = asarray_or_pandas(df, copy=True)
117117
assert np.array_equal(df_copy, df)
118118
assert np.array_equal(df_copy.columns, ["A", "B", "C"])
119119
assert np.array_equal(df_copy.index, [10])
120-
df_copy.ix[10, "A"] = 100
120+
df_copy.loc[10, "A"] = 100
121121
assert not np.array_equal(df_copy, df)
122122
df_converted = asarray_or_pandas(df, dtype=float)
123123
assert df_converted["A"].dtype == np.dtype(float)

patsy/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@
1717
# want. (Contrast with the special suffix 1.0.0.dev, which sorts *before*
1818
# 1.0.0.)
1919

20-
__version__ = "0.4.1+dev"
20+
__version__ = "0.5.0+dev"

0 commit comments

Comments
 (0)