Skip to content

Commit 2bfb3e4

Browse files
committed
various fidgeting around the rename and release
1 parent d2e507f commit 2bfb3e4

File tree

10 files changed

+55
-42
lines changed

10 files changed

+55
-42
lines changed

COPYING

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The bulk of Patsy is distributed under a simple 2-clause BSD license:
22

3-
Copyright (C) 2011, Patsy Developers. All rights reserved.
3+
Copyright (C) 2011-2012, Patsy Developers. All rights reserved.
44

55
Redistribution and use in source and binary forms, with or without
66
modification, are permitted provided that the following conditions are

README

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
This is patsy, a Python library for describing statistical models
2-
and for building design matrices.
2+
and building design matrices.
33

44
Dependencies:
55
numpy

doc/conf.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
# built documents.
1010
#
1111
# The short X.Y version.
12-
version = '0.01'
12+
import patsy
13+
version = patsy.__version__
1314
# The full version, including alpha/beta/rc tags.
1415
release = version
1516

doc/overview.rst

Lines changed: 27 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,24 @@
11
Overview
22
========
33

4-
*"It's only a model."* -- `Patsy <https://en.wikipedia.org/wiki/Patsy_%28Monty_Python%29>`_
5-
6-
:mod:`patsy` is a Python package for describing statistical models
7-
and building design matrices. It is closely inspired by the 'formula'
8-
mini-language used in `R <http://www.r-project.org/>`_ and `S
9-
<https://secure.wikimedia.org/wikipedia/en/wiki/S_programming_language>`_. The
10-
name is in honor of `Val Patsy
11-
<http://www.wimbledon.arts.ac.uk/35174.htm>`_, who `built models
12-
<http://www.imdb.com/name/nm0153313/>`_ for Monty Python.
13-
14-
For instance, if we have some variable ``y``, and we want to regress it
15-
against some other variables ``x``, ``a``, ``b``, and the `interaction
4+
|epigraph|_
5+
6+
.. |epigraph| replace:: *"It's only a model."*
7+
8+
.. _epigraph: https://en.wikipedia.org/wiki/Patsy_%28Monty_Python%29
9+
10+
:mod:`patsy` is a Python package for describing statistical models and
11+
building design matrices. It is closely inspired by and compatible
12+
with the 'formula' mini-language used in `R
13+
<http://www.r-project.org/>`_ and `S
14+
<https://secure.wikimedia.org/wikipedia/en/wiki/S_programming_language>`_.
15+
16+
For instance, if we have some variable `y`, and we want to regress it
17+
against some other variables `x`, `a`, `b`, and the `interaction
1618
<https://secure.wikimedia.org/wikipedia/en/wiki/Interaction_%28statistics%29>`_
17-
of ``a`` and ``b``, then we simply write::
19+
of `a` and `b`, then we simply write::
1820

19-
y ~ x + a + b + a:b
21+
patsy.dmatrices("y ~ x + a + b + a:b", data)
2022

2123
and Patsy takes care of building appropriate matrices. Furthermore,
2224
it:
@@ -61,9 +63,9 @@ The current release may be downloaded from the Python Package index at
6163
http://pypi.python.org/pypi/patsy/
6264

6365
Or the latest *development version* may be found in our `Git
64-
repository <https://github.com/patsy/patsy>`_::
66+
repository <https://github.com/pydata/patsy>`_::
6567

66-
git clone git://github.com/patsy/patsy.git
68+
git clone git://github.com/pydata/patsy.git
6769

6870
Requirements
6971
------------
@@ -91,9 +93,16 @@ Contact
9193

9294
Post your suggestions and questions directly to the `pydata mailing
9395
list <https://groups.google.com/group/pydata>`_
94-
(pydata@googlegroups.com), or to our `bug tracker
95-
<https://github.com/patsy/patsy/issues>`_. You could also
96+
(pydata@googlegroups.com, `gmane archive
97+
<http://news.gmane.org/gmane.comp.python.pydata>`_), or to our `bug
98+
tracker <https://github.com/pydata/patsy/issues>`_. You could also
9699
contact `Nathaniel J. Smith <mailto:njs@pobox.com>`_ directly, but
97100
really the mailing list is almost always a better bet, because more
98101
people will see your query and others will be able to benefit from any
99102
answers you get.
103+
104+
License
105+
-------
106+
107+
2-clause BSD. See the file `COPYING
108+
<https://github.com/pydata/patsy/blob/master/COPYING>`_ for details.

patsy/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88

99
import sys
1010

11+
__version__ = "0.1.0"
12+
1113
# Do this first, to make it easy to check for warnings while testing:
1214
import os
1315
if os.environ.get("PATSY_FORCE_NO_WARNINGS"):

patsy/constraint.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -334,6 +334,8 @@ def eval(self, tree, constraint=False):
334334
return val
335335

336336
def linear_constraint(constraint_like, variable_names):
337+
"""This is the internal interface implementing
338+
DesignInfo.linear_constraint, see there for docs."""
337339
if isinstance(constraint_like, LinearConstraint):
338340
if constraint_like.variable_names != variable_names:
339341
raise ValueError("LinearConstraint has wrong variable_names "

patsy/design_info.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,9 @@ def linear_constraint(self, constraint_likes):
213213
di.linear_constraint(["x1", "x3 = 0"]) # list of strings
214214
di.linear_constraint("x1 = 0, x3 - 10 = x1")
215215
di.linear_constraint([[1, 0, 0], [0, 0, 1]], [0, 10])
216+
217+
# You can also chain together equalities, just like Python:
218+
di.linear_constraint("x1 = x2 = 3")
216219
"""
217220
return linear_constraint(constraint_likes, self.column_names)
218221

patsy/test_build.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,7 @@ def all_subsets(l):
162162
[("b", "x2"), ("a", "x1")],
163163
[("a", "b", "x2"), ("a", "b", "x1")],
164164
[("b", "x1", "x2"), ("a", "x1", "x2")]]
165+
count = 0
165166
for termlist_template in all_termlist_templates:
166167
termlist_set = set(termlist_template)
167168
for dispreferred, preferred in redundant:
@@ -178,6 +179,8 @@ def all_subsets(l):
178179
# term corresponds to 1 unique dimension of variation
179180
expected_rank = len(expanded_terms)
180181
make_matrix(data, expected_rank, termlist_template)
182+
count += 1
183+
print count
181184

182185
test_redundancy_thoroughly.slow = 1
183186

release-checklist.txt

Lines changed: 12 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,14 @@
1-
1) run tests
2-
2) run tests with Python 2.4
3-
2) update doc/changes.rst
4-
3) make sure docs are up to date
5-
3.5) check MANIFEST.in
6-
4) update version in doc/changes.rst, setup.py, doc/conf.py
7-
5) make a clean checkout
8-
6) python setup.py sdist
9-
7) cd dist; unpack; run tests on sdist
10-
8) tag
11-
9) upload source dist to google code and pypi
12-
10) build and upload docs
13-
python setup.py build && (cd doc && PYTHONPATH=../build/lib.linux-x86_64-2.6/ make html)
14-
cd doc/_build/html
15-
zip -r doc .
16-
(upload doc.zip to pypi)
17-
11) announce release on:
18-
web page
19-
mailing list
1+
* update doc/changes.rst
2+
* make sure docs are up to date
3+
* check MANIFEST.in
4+
* update version in doc/changes.rst, setup.py, patsy/__init__.py
5+
* make a clean checkout
6+
* run tox tests
7+
* tag
8+
* upload source dist to pypi
9+
* build and upload docs
10+
* announce release on:
11+
py
2012
scipy-dev?
2113
pypi
22-
12) update version in setup.py and doc/conf.py again (add "+dev")
14+
* update version in setup.py, patsy/__init__.py again (add "+dev")

setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,12 @@
1414

1515
setup(
1616
name="patsy",
17-
version="0.0+dev",
17+
version="0.1.0",
1818
description=DESC,
1919
author="Nathaniel J. Smith",
2020
author_email="njs@pobox.com",
2121
license="2-clause BSD",
2222
packages=["patsy"],
2323
url="https://github.com/patsy/patsy",
24+
install_requires=["numpy"],
2425
**extra)

0 commit comments

Comments
 (0)