| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
70 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,3 +1,16 @@ | |||
| 1 | + 2011-03-10 Update pytz version to 2011c, thanks to Simon Cross. - JKS | ||
| 2 | + | ||
| 3 | + 2011-03-06 Add standalone tests.py test runner script. - JKS | ||
| 4 | + | ||
| 5 | + 2011-03-06 Set edgecolor to 'face' for scatter asterisk-type | ||
| 6 | + symbols; this fixes a bug in which these symbols were | ||
| 7 | + not responding to the c kwarg. The symbols have no | ||
| 8 | + face area, so only the edgecolor is visible. - EF | ||
| 9 | + | ||
| 10 | + 2011-02-27 Support libpng version 1.5.x; suggestion by Michael | ||
| 11 | + Albert. Changed installation specification to a | ||
| 12 | + minimum of libpng version 1.2. - EF | ||
| 13 | + | ||
| 1 | 14 | 2011-02-20 clabel accepts a callable as an fmt kwarg; modified | |
| 2 | 15 | patch by Daniel Hyams. - EF | |
| 3 | 16 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -107,4 +107,12 @@ | |||
| 107 | 107 | # define TEMPLATE_TYPENAME class | |
| 108 | 108 | #endif | |
| 109 | 109 | ||
| 110 | + | ||
| 111 | + /* Need to fudge Py_hash_t types for python > 3.2 */ | ||
| 112 | + | ||
| 113 | + #if PY_VERSION_HEX < 0x030200A4 | ||
| 114 | + typedef long Py_hash_t; | ||
| 115 | + typedef unsigned long Py_uhash_t; | ||
| 116 | + #endif | ||
| 117 | + | ||
| 110 | 118 | #endif // __PyCXX_config_hh__ | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -83,7 +83,7 @@ namespace Py | |||
| 83 | 83 | virtual Object rich_compare( const Object &, int ); | |
| 84 | 84 | virtual Object repr(); | |
| 85 | 85 | virtual Object str(); | |
| 86 | - virtual long hash(); | ||
| 86 | + virtual Py_hash_t hash(); | ||
| 87 | 87 | virtual Object call( const Object &, const Object & ); | |
| 88 | 88 | virtual Object iter(); | |
| 89 | 89 | virtual PyObject *iternext(); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -276,7 +276,7 @@ namespace Py | |||
| 276 | 276 | return Object( PyObject_GetItem( p, *key ), true ); | |
| 277 | 277 | } | |
| 278 | 278 | ||
| 279 | - long hashValue() const | ||
| 279 | + Py_hash_t hashValue() const | ||
| 280 | 280 | { | |
| 281 | 281 | return PyObject_Hash( p ); | |
| 282 | 282 | } | |
@@ -1165,7 +1165,7 @@ namespace Py | |||
| 1165 | 1165 | return the_item.getItem( key ); | |
| 1166 | 1166 | } | |
| 1167 | 1167 | ||
| 1168 | - long hashValue() const | ||
| 1168 | + Py_hash_t hashValue() const | ||
| 1169 | 1169 | { | |
| 1170 | 1170 | return the_item.hashValue(); | |
| 1171 | 1171 | } | |
@@ -2545,7 +2545,7 @@ namespace Py | |||
| 2545 | 2545 | return the_item.getItem( k ); | |
| 2546 | 2546 | } | |
| 2547 | 2547 | ||
| 2548 | - long hashValue() const | ||
| 2548 | + Py_hash_t hashValue() const | ||
| 2549 | 2549 | { | |
| 2550 | 2550 | return the_item.hashValue(); | |
| 2551 | 2551 | } | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -225,7 +225,7 @@ extern "C" | |||
| 225 | 225 | static PyObject *rich_compare_handler( PyObject *, PyObject *, int ); | |
| 226 | 226 | static PyObject *repr_handler( PyObject * ); | |
| 227 | 227 | static PyObject *str_handler( PyObject * ); | |
| 228 | - static long hash_handler( PyObject * ); | ||
| 228 | + static Py_hash_t hash_handler( PyObject * ); | ||
| 229 | 229 | static PyObject *call_handler( PyObject *, PyObject *, PyObject * ); | |
| 230 | 230 | static PyObject *iter_handler( PyObject * ); | |
| 231 | 231 | static PyObject *iternext_handler( PyObject * ); | |
@@ -714,7 +714,7 @@ extern "C" PyObject *str_handler( PyObject *self ) | |||
| 714 | 714 | } | |
| 715 | 715 | } | |
| 716 | 716 | ||
| 717 | - extern "C" long hash_handler( PyObject *self ) | ||
| 717 | + extern "C" Py_hash_t hash_handler( PyObject *self ) | ||
| 718 | 718 | { | |
| 719 | 719 | try | |
| 720 | 720 | { | |
@@ -1267,7 +1267,7 @@ Py::Object PythonExtensionBase::str() | |||
| 1267 | 1267 | return Py::None(); | |
| 1268 | 1268 | } | |
| 1269 | 1269 | ||
| 1270 | - long PythonExtensionBase::hash() | ||
| 1270 | + Py_hash_t PythonExtensionBase::hash() | ||
| 1271 | 1271 | { | |
| 1272 | 1272 | missing_method( hash ); | |
| 1273 | 1273 | return -1; } | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -4,7 +4,7 @@ matplotlib gridspec | |||
| 4 | 4 | ||
| 5 | 5 | ||
| 6 | 6 | :mod:`matplotlib.gridspec` | |
| 7 | - ==================== | ||
| 7 | + ========================== | ||
| 8 | 8 | ||
| 9 | 9 | .. automodule:: matplotlib.gridspec | |
| 10 | 10 | :members: | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -5,7 +5,7 @@ Coding guide | |||
| 5 | 5 | ************ | |
| 6 | 6 | ||
| 7 | 7 | Committing changes | |
| 8 | - ------------------ | ||
| 8 | + ================== | ||
| 9 | 9 | ||
| 10 | 10 | When committing changes to matplotlib, there are a few things to bear | |
| 11 | 11 | in mind. | |
@@ -358,7 +358,6 @@ object:: | |||
| 358 | 358 | print 'datafile', datafile | |
| 359 | 359 | ||
| 360 | 360 | ||
| 361 | - .. _license-discussion: | ||
| 362 | 361 | ||
| 363 | 362 | ||
| 364 | 363 | ||
@@ -376,17 +375,31 @@ please ignore it while we consolidate our testing to these locations.) | |||
| 376 | 375 | Running the tests | |
| 377 | 376 | ----------------- | |
| 378 | 377 | ||
| 379 | - Running the tests is simple. Make sure you have nose installed and | ||
| 380 | - type from within Python:: | ||
| 378 | + Running the tests is simple. Make sure you have nose installed and run | ||
| 379 | + the script :file:`tests.py` in the root directory of the distribution. | ||
| 380 | + The script can take any of the usual `nosetest arguments`_, such as | ||
| 381 | + | ||
| 382 | + =================== =========== | ||
| 383 | + ``-v`` increase verbosity | ||
| 384 | + ``-d`` detailed error messages | ||
| 385 | + ``--with-coverage`` enable collecting coverage information | ||
| 386 | + =================== =========== | ||
| 387 | + | ||
| 388 | + To run a single test from the command line, you can provide a | ||
| 389 | + dot-separated path to the module followed by the function separated by | ||
| 390 | + a colon, eg. (this is assuming the test is installed):: | ||
| 391 | + | ||
| 392 | + python tests.py matplotlib.tests.test_simplification:test_clipping | ||
| 393 | + | ||
| 394 | + An alternative implementation that does not look at command line | ||
| 395 | + arguments works from within Python:: | ||
| 381 | 396 | ||
| 382 | 397 | import matplotlib | |
| 383 | 398 | matplotlib.test() | |
| 384 | 399 | ||
| 385 | - To run a single test from the command line, you can provide | ||
| 386 | - a dot-separated path to the module and function, eg. | ||
| 387 | - (this is assuming the test is installed):: | ||
| 388 | 400 | ||
| 389 | - nosetests matplotlib.tests.test_simplification:test_clipping | ||
| 401 | + .. _`nosetest arguments`: http://somethingaboutorange.com/mrl/projects/nose/1.0.0/usage.html | ||
| 402 | + | ||
| 390 | 403 | ||
| 391 | 404 | ||
| 392 | 405 | Writing a simple test | |
@@ -482,6 +495,8 @@ Let's say you've added a new module named | |||
| 482 | 495 | the list of default tests, append its name to ``default_test_modules`` | |
| 483 | 496 | in :file:`lib/matplotlib/__init__.py`. | |
| 484 | 497 | ||
| 498 | + .. _license-discussion: | ||
| 499 | + | ||
| 485 | 500 | Licenses | |
| 486 | 501 | ======== | |
| 487 | 502 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -92,10 +92,7 @@ replacing 'jdh2358' with your sourceforge login. | |||
| 92 | 92 | ||
| 93 | 93 | ||
| 94 | 94 | Any changes to fix bugs in the release candidate should be fixed in | |
| 95 | - the release branch and merged into the trunk with `git merge`; see | ||
| 96 | - :ref:`git merge`. When the release candidate is signed off on, build | ||
| 97 | - the final sdist, binaries and eggs, and upload them to the sourceforge | ||
| 98 | - release area. | ||
| 95 | + the release branch and merged into the trunk. | ||
| 99 | 96 | ||
| 100 | 97 | ||
| 101 | 98 | .. _release-uploading: | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -525,45 +525,7 @@ Contributing: howto | |||
| 525 | 525 | Submit a patch | |
| 526 | 526 | ----------------- | |
| 527 | 527 | ||
| 528 | - If you have a github account, or are willing to make one, make a private fork | ||
| 529 | - of the repository at `<https://github.com/matplotlib/matplotlib.git>`_. Then | ||
| 530 | - clone the repository:: | ||
| 531 | - | ||
| 532 | - git clone git@github.com:your_github_id/matplotlib.git | ||
| 533 | - | ||
| 534 | - if you don't have a github account:: | ||
| 535 | - | ||
| 536 | - git clone git://github.com/matplotlib/matplotlib.git | ||
| 537 | - | ||
| 538 | - If your changes are relative to a release branch, change branches, for example:: | ||
| 539 | - | ||
| 540 | - git checkout v1.0.x | ||
| 541 | - | ||
| 542 | - Then make a new branch:: | ||
| 543 | - | ||
| 544 | - cd matplotlib | ||
| 545 | - git checkout -b topic | ||
| 546 | - | ||
| 547 | - Make your changes, making commits as you see fit. To submit the changes, if you | ||
| 548 | - don't have a github account:: | ||
| 549 | - | ||
| 550 | - git diff topic v1.0.x > topic.diff | ||
| 551 | - | ||
| 552 | - Post your patch the :file:`topic.diff` to the `matplotlib-devel | ||
| 553 | - <http://sourceforge.net/mail/?group_id=80706>`_ mailing list. | ||
| 554 | - | ||
| 555 | - If you do have a github account, push the topic branch to your fork:: | ||
| 556 | - | ||
| 557 | - git push origin topic | ||
| 558 | - | ||
| 559 | - Then visit your profile at github, select the new branch, and file a pull | ||
| 560 | - request. | ||
| 561 | - | ||
| 562 | - If you don't want to create a github account:: | ||
| 563 | - | ||
| 564 | - git clone git://github.com/matplotlib/matplotlib.git | ||
| 565 | - cd matplotlib | ||
| 566 | - git checkout | ||
| 528 | + See :ref:`making-patches` for information on how to make a patch with git. | ||
| 567 | 529 | ||
| 568 | 530 | If you are posting a patch to fix a code bug, please explain your | |
| 569 | 531 | patch in words -- what was broken before and how you fixed it. Also, | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -92,7 +92,7 @@ install directory. To cleanly rebuild: | |||
| 92 | 92 | <locating-matplotlib-install>` | |
| 93 | 93 | ||
| 94 | 94 | ||
| 95 | - .. _install-git: | ||
| 95 | + .. _install-from-git: | ||
| 96 | 96 | ||
| 97 | 97 | Install from git | |
| 98 | 98 | ================ | |
@@ -405,9 +405,11 @@ changing the occurrences of ``MacOSX10.4u.sdk`` into ``MacOSX10.5.sdk`` | |||
| 405 | 405 | ``/Library/Frameworks/Python.framework/Versions/Current/lib/pythonX.Y/site-packages/easy-install.pth``, | |
| 406 | 406 | (where X.Y is the version of Python you are building against) | |
| 407 | 407 | Comment out the line containing the name of the directory in which the | |
| 408 | - previous version of MPL was installed (Looks something like ``./matplotlib-0.98.5.2n2-py2.5-macosx-10.3-fat.egg``). | ||
| 408 | + previous version of MPL was installed (Looks something like | ||
| 409 | + ``./matplotlib-0.98.5.2n2-py2.5-macosx-10.3-fat.egg``). | ||
| 409 | 410 | ||
| 410 | - 3. Save the following as a shell script , for example ``./install-matplotlib-epd-osx.sh`` :: | ||
| 411 | + 3. Save the following as a shell script , for example | ||
| 412 | + ``./install-matplotlib-epd-osx.sh``:: | ||
| 411 | 413 | ||
| 412 | 414 | NAME=matplotlib | |
| 413 | 415 | VERSION=v1.0.x | |
| Back | FazBrowse Home | New Git URL |
0 commit comments