Age | Commit message (Collapse) | Author | Files | Lines |
|
- Add ability to get pull request number from Homu auto merges.
- Print number of merged pull requests.
[ci skip]
|
|
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
|
|
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.
|
|
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.
|
|
ENH: Add a tool for release authors and PRs.
|
|
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]
|
|
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.
|
|
Refactors the randint helpers to use a Tempita
template. This will reduce technical debt in the
long run.
|
|
|
|
the files in doc/ and numpy/ were covered in previous commits
|
|
|
|
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.
|
|
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 ...
|
|
|
|
|
|
Also remove all mentions of setupegg.py from the documentation.
|
|
matches windows compiler behavior
|
|
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.
|
|
|
|
Closes gh-6863.
|
|
* 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/
|
|
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.
|
|
This should ensure the suite stays in working condition, not to produce
reliable timing information.
|
|
|
|
Some newer *.py files are missing the `from __future__` boilerplate
that helps assure Python2 and Python3 compatibility.
|
|
charris/fix-bugs-exposed-by-relaxed-stride-rollback
Fix bugs exposed by relaxed stride rollback
|
|
|
|
avoids issues with stone age compilers like MSVC
|
|
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]
|
|
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.
|
|
|
|
|
|
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
|
|
|
|
(DATA_TYPE* INPLACE_ARRAY_FLAT, DIM_TYPE DIM_FLAT)
Added unittests, updated documentation.
|
|
Follow-up of gh-5829, which got merged too early.
|
|
TST: re-enable TravisCI testing with Bento.
|
|
Disabling was done in gh-5708, due to the Waf download site being down for a
while.
|
|
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.
|
|
Reason: numpy.i is supposed to be copied, not used from within an installed
Numpy version.
Closes gh-5690
[ci skip]
|
|
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>
|
|
|
|
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.
|
|
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.
|
|
BUG: Make numpy import when run with Python flag '-OO
|
|
|
|
|
|
MAINT: start 1.10-devel.
|
|
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
|
|
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.
|