summaryrefslogtreecommitdiff
path: root/tools
AgeCommit message (Collapse)AuthorFilesLines
2016-11-04ENH: Improve announce tool.Charles Harris1-10/+30
- Add ability to get pull request number from Homu auto merges. - Print number of merged pull requests. [ci skip]
2016-11-01ENH: Deprecation warnings for `/` integer division when running python -3saurabh1-0/+5
When python is invoked with switch -3, it emits waring "classic int division" for strict integer divisions. The same behavior is now implemented to numpy with this fix
2016-10-24BUG, TST: Fix python3-dbg bug in Travis scriptgfyoung2-5/+33
With USE_DEBUG=1, the wrong python was being used to create the virtualenv, meaning that installed packages (e.g. Cython) were being installed to the wrong location.
2016-10-19ENH: Improve announce to find github squash-merge commits.Charles Harris1-3/+13
Currently when the squash-merge button is hit on github, the PR title with "(#PR)" appended is used as the commit message summary line when the merge is fast-forwarded. This PR adds the ability to pick out the corresponding PR numbers from the git log output. Note that github may change this in the future and one early squash merge in the 1.12.0 release did not have the PR number appended.
2016-10-17Merge pull request #8111 from charris/add-release-toolCharles Harris1-0/+117
ENH: Add a tool for release authors and PRs.
2016-10-03ENH: Add a tool for release authors and PRs.Charles Harris1-0/+117
Add the script tools/announce.py to generate the author and pull request lists needed in release announcements. Some bits of this are taken from the scipy gh_list.py and authors.py tools. Usage: $ ./tools/announce.py <github_user> <github_password> <revision_range> The output is utf8 rst. [ci skip]
2016-09-30ENH: Vendorize tempita.Charles Harris5-16/+1560
Copy tempita from https://github.com/gjhiggins/tempita with a few changes to remove the six dependency. This removes a dependency on Cython's tempita, which is not to be relied on as it is considered by the Cython folks to be an implementation detail. The package is named npy_tempita so that it can always be distinguished from an installed tempita. The cythonize.py script is changed to use the vendorized tempita.
2016-09-20MAINT: Add Tempita to randint helpersgfyoung1-12/+45
Refactors the randint helpers to use a Tempita template. This will reduce technical debt in the long run.
2016-09-19BUG: Assert fromfile ending earlier in pyx processinggfyoung1-1/+1
2016-09-06DOC: change Numpy to NumPy in remaining filesPierre de Buyl4-8/+8
the files in doc/ and numpy/ were covered in previous commits
2016-09-02TST: Make one 3.5 test run the full test suit.Sebastian Berg1-1/+5
2016-06-18Avoid NPY_ARRAY_F_CONTIGUOUS for numpy < 1.7Jan David Mol1-1/+6
numpy API < 1.7 does not support NPY_ARRAY_F_CONTIGUOUS.or PyArray_IS_F_CONTIGUOUS. Supporting old APIs is useful as users tend to ship modern numpy.i files to compile against possibly older numpy installations.
2016-04-22Fix a false positive OverflowError in Python 3.x when value above 0x7FFFFFF ↵Mathieu Lamarre1-7/+14
are passed to a function accepting "unsigned int". This a port of a fix in pyprimtype.swg from which several code snippets where copy pasted into swig/pyfragments.swg. Please see SWIG changes log (2015-12-23) for more details: http://www.swig.org/Release/CHANGES.current 2015-12-23: ahnolds [Python] Fixes for conversion of signed and unsigned integer types ...
2016-02-25DOC: Fix more typos in docs and comments.Dongjoon Hyun2-3/+3
2016-01-27TST: test installing from sdist on TravisCI.Ralf Gommers1-1/+14
2016-01-16BUG: fix TravisCI test issues when using setuptools unconditionally.Ralf Gommers1-0/+1
Also remove all mentions of setupegg.py from the documentation.
2016-01-04TST: make pointer-arith error fatalJulian Taylor1-1/+2
matches windows compiler behavior
2016-01-02TST: Increase the allowable warning count to 1 for i386 debug test.Charles Harris1-2/+4
Cython generated C code contains the number '-2147483648L', which leads to a warning on 32 bit platforms: "Warning: this decimal constant is unsigned only in ISO C90" See the discussion at http://stackoverflow.com/questions/9941261/ The compiled code seems to run correctly despite the warning and if there are problems, they should turn up in the nose testing.
2015-12-20MAINT: Remove commented out code blocksgfyoung2-19/+0
2015-12-19DOC: Use print only as function when print_function is imported from __future__gfyoung2-4/+4
Closes gh-6863.
2015-12-16STY: Style fixes for .travis.yml and travis-upload-wheel.shCharles Harris1-5/+7
* shell script style fixes inspired by google shell style guide https://google.github.io/styleguide/shell.xml * .travis.yml longline breaking tested with http://yaml-online-parser.appspot.com/
2015-12-16TST: Clean up travis-test and make it work with current travis ci.Charles Harris1-52/+79
Travis ci is migrating to GCI and the 32 bit tests broke in the process. This cleans up the tools/travis-test script, fixes it for current travis, and changes the 32 bit test to use python 2.7 in order to turn up errors involving python long integers. In preparation for dropping Python 3.2 and 3.3, the USE_DEBUG test is run in the travis ci trusty beta so that python3 defaults to 3.4.
2015-12-14CI: run benchmark suite in travis-CIPauli Virtanen1-0/+11
This should ensure the suite stays in working condition, not to produce reliable timing information.
2015-12-10ENH deploy dev wheels to rackspaceOlivier Grisel2-3/+16
2015-12-05MAINT: Include from __future__ boilerplate in some files missing it.Charles Harris1-0/+2
Some newer *.py files are missing the `from __future__` boilerplate that helps assure Python2 and Python3 compatibility.
2015-11-26Merge pull request #6726 from ↵Charles Harris1-1/+1
charris/fix-bugs-exposed-by-relaxed-stride-rollback Fix bugs exposed by relaxed stride rollback
2015-11-25TST: Fix travis-ci test for numpy wheels.Charles Harris1-1/+1
2015-11-24MAINT: enable Werror=vla in travisJulian Taylor1-4/+4
avoids issues with stone age compilers like MSVC
2015-11-04BUG: Fix swig make_fortran function.Charles Harris1-1/+1
The function was calling PyArray_FromArray with NPY_FORTRANORDER instead of NPY_ARRAY_F_CONTIGUOUS. The first is of type NPY_ORDER and the second is a flag. Closes #6618. [ci skip]
2015-11-01BUG: Fix use of PyArray_ISFORTRAN in numpy.i.Charles Harris1-1/+1
PyArray_ISFORTRAN was used to implement array_is_fortran in numpy.i when what was wanted was PyArray_IS_F_CONTIGUOUS. The difference is that PyArray_ISFORTRAN will return False if the array is c_contiguous. Previous to relaxed stride checking this did not matter, but currently arrays with ndim > 1 may be both C and Fortran contiguous and that results in errors when PyArray_ISFORTRAN is mistakenly used to check for Fortran contiguity.
2015-09-02typo in numpy.ijschueller1-1/+1
2015-08-19MAINT,TST: Remove Bento from the travis ci testing.Charles Harris1-35/+1
2015-08-05BLD: Speed up up Travis jobs by running on container-based infrastructureAlex Willmer1-8/+1
All jobs currently run on Travis's legacy infrastructure - which supports sudo. The newer container-based infrastructure is faster, but doesn't allow sudo. This patch - sets sudo=false for all jobs, except the chroot job - uses Travis's apt addon to install all packages - installs eatmydata for all jobs to reduce disk IO - removes the tmpfs workaround for chroot builds
2015-07-03TST: fail tests on compiler warningsJulian Taylor1-2/+11
2015-05-25New typemap for in-place arrays of arbitrary number of dimensions:Tom Krauss8-26/+394
(DATA_TYPE* INPLACE_ARRAY_FLAT, DIM_TYPE DIM_FLAT) Added unittests, updated documentation.
2015-05-07MAINT: switch waf download to https://github.com/numpy/numpy-vendorRalf Gommers1-1/+1
Follow-up of gh-5829, which got merged too early.
2015-05-03Merge pull request #5829 from rgommers/bento-ciCharles Harris1-1/+1
TST: re-enable TravisCI testing with Bento.
2015-05-03TST: re-enable TravisCI testing with Bento.Ralf Gommers1-1/+1
Disabling was done in gh-5708, due to the Waf download site being down for a while.
2015-04-30TEST: add module to test installed scriptsMatthew Brett1-3/+10
Module tests whether we can run f2py and return correct version. Skip this test when running in-place (we don't install f2py in that case). Use our own virtualenvs in travis-ci to avoid picking up travis' numpy.
2015-03-18DOC: put a copy of the text in LICENSE.txt into tools/swig/numpy.iRalf Gommers1-0/+34
Reason: numpy.i is supposed to be copied, not used from within an installed Numpy version. Closes gh-5690 [ci skip]
2015-02-15Correct exit code if number of errors % 256 == 0Chris Lamb7-7/+7
For example, we had 256 errors (etc.) our process will exit with a successful error code which is incorrect and/or misleading. Signed-off-by: Chris Lamb <chris@chris-lamb.co.uk>
2015-02-13Use correct #ifdef __cplusplus guard to include std_complex.iMichele Vallisneri1-2/+2
2014-11-07ENH: added std::complex support to numpy.iGlen Mabey7-12/+333
numpy.i now includes ready-made typemaps for std::complex<float> and std::complex<double> . Tests were added to testArray using a newly defined ArrayZ class.
2014-10-28ENH: support parallel compilation of extensionsJulian Taylor1-0/+3
Allow extensions using numpy.distutils to compile in parallel. By passing `--jobs=n` or `-j n` to `setup.py build` the compilation of extensions is now performed in `n` parallel processes. Additionally the environment variable NPY_NUM_BUILD_JOBS is used as the default value, if its unset the default is serial compilation. The parallelization is limited to within the files of an extension, so only numpy multiarraymodule really profits but its still a nice improvement when you have 2-4 cores. Unfortunately Cython will not profit at all as it tends to build one module per file.
2014-10-04Merge pull request #5149 from charris/fix-ma-docs-for-OO-optionJulian Taylor1-0/+5
BUG: Make numpy import when run with Python flag '-OO
2014-10-04TST: Add test with python flag -OO.Charles Harris1-0/+5
2014-09-04MAINT: Update waf to 1.7.16Charles Harris1-3/+3
2014-07-06Merge pull request #4671 from charris/prepare-1.10-develCharles Harris1-1/+1
MAINT: start 1.10-devel.
2014-07-05BUG: disable garbage collector during memory allocation hookJulian Taylor1-0/+10
When a cython object contains numpy arrays the pure python allocation hook can trigger during cythons __dealloc__ method and trigger a second deletion of the object currently being deleted. To minimize the probabily that that happens disable the garbage collector during the hook. As this involves python calls it is still possible that a double delete occurs but chances are lowered, a proper solution would be C only hook like python 3.4 tracemalloc module. Closes gh-4834
2014-06-16Fix typemap for Fortran ordered array inputAdam Reeve1-3/+3
The typemaps with size parameters after the array pointer were correct, but the typemaps with size parameters before the array pointer created arrays with C ordering.