diff options
-rw-r--r-- | README.md | 2 | ||||
-rw-r--r-- | doc/changelog/1.12.0-changelog.rst | 2 | ||||
-rw-r--r-- | doc/changelog/1.20.0-changelog.rst | 2 | ||||
-rw-r--r-- | doc/neps/nep-0017-split-out-maskedarray.rst | 2 | ||||
-rw-r--r-- | doc/source/dev/development_workflow.rst | 4 | ||||
-rw-r--r-- | doc/source/reference/random/index.rst | 2 | ||||
-rw-r--r-- | doc/source/reference/random/new-or-different.rst | 2 | ||||
-rw-r--r-- | doc/source/release/1.10.3-notes.rst | 2 | ||||
-rw-r--r-- | doc/source/release/1.11.1-notes.rst | 2 | ||||
-rw-r--r-- | doc/source/release/1.12.1-notes.rst | 2 | ||||
-rw-r--r-- | doc/source/user/absolute_beginners.rst | 2 | ||||
-rw-r--r-- | numpy/core/include/numpy/ndarraytypes.h | 2 | ||||
-rw-r--r-- | numpy/core/include/numpy/npy_common.h | 7 | ||||
-rw-r--r-- | numpy/core/src/common/simd/intdiv.h | 2 | ||||
-rw-r--r-- | numpy/core/src/multiarray/common_dtype.c | 2 | ||||
-rw-r--r-- | numpy/core/src/umath/loops_unary_fp.dispatch.c.src | 3 | ||||
-rw-r--r-- | numpy/lib/polynomial.py | 2 | ||||
-rw-r--r-- | numpy/random/mtrand.pyx | 2 | ||||
-rwxr-xr-x | setup.py | 6 |
19 files changed, 27 insertions, 23 deletions
@@ -13,7 +13,7 @@ []( https://numfocus.org) -[]( +[]( https://pypi.org/project/numpy/) []( https://anaconda.org/conda-forge/numpy) diff --git a/doc/changelog/1.12.0-changelog.rst b/doc/changelog/1.12.0-changelog.rst index 2e91f510f..052714374 100644 --- a/doc/changelog/1.12.0-changelog.rst +++ b/doc/changelog/1.12.0-changelog.rst @@ -283,7 +283,7 @@ A total of 418 pull requests were merged for this release. * `#7373 <https://github.com/numpy/numpy/pull/7373>`__: ENH: Add bitwise_and identity * `#7378 <https://github.com/numpy/numpy/pull/7378>`__: added NumPy logo and separator * `#7382 <https://github.com/numpy/numpy/pull/7382>`__: MAINT: cleanup np.average -* `#7385 <https://github.com/numpy/numpy/pull/7385>`__: DOC: note about wheels / windows wheels for pypi +* `#7385 <https://github.com/numpy/numpy/pull/7385>`__: DOC: note about wheels / windows wheels for PyPI * `#7386 <https://github.com/numpy/numpy/pull/7386>`__: Added label icon to Travis status * `#7397 <https://github.com/numpy/numpy/pull/7397>`__: BUG: incorrect type for objects whose __len__ fails * `#7398 <https://github.com/numpy/numpy/pull/7398>`__: DOC: fix typo diff --git a/doc/changelog/1.20.0-changelog.rst b/doc/changelog/1.20.0-changelog.rst index f06bd8a8d..f2af4a7de 100644 --- a/doc/changelog/1.20.0-changelog.rst +++ b/doc/changelog/1.20.0-changelog.rst @@ -714,7 +714,7 @@ A total of 716 pull requests were merged for this release. * `#17440 <https://github.com/numpy/numpy/pull/17440>`__: DOC: Cleaner template for PRs * `#17442 <https://github.com/numpy/numpy/pull/17442>`__: MAINT: fix exception chaining in format.py * `#17443 <https://github.com/numpy/numpy/pull/17443>`__: ENH: Warn on unsupported Python 3.10+ -* `#17444 <https://github.com/numpy/numpy/pull/17444>`__: ENH: Add ``Typing :: Typed`` to the PyPi classifier +* `#17444 <https://github.com/numpy/numpy/pull/17444>`__: ENH: Add ``Typing :: Typed`` to the PyPI classifier * `#17445 <https://github.com/numpy/numpy/pull/17445>`__: DOC: Fix the references for macros * `#17447 <https://github.com/numpy/numpy/pull/17447>`__: NEP: update NEP 42 with discussion of type hinting applications * `#17448 <https://github.com/numpy/numpy/pull/17448>`__: DOC: Remove CoC pages from Sphinx diff --git a/doc/neps/nep-0017-split-out-maskedarray.rst b/doc/neps/nep-0017-split-out-maskedarray.rst index 5cb1c0c39..faad68828 100644 --- a/doc/neps/nep-0017-split-out-maskedarray.rst +++ b/doc/neps/nep-0017-split-out-maskedarray.rst @@ -123,7 +123,7 @@ References and Footnotes .. [1] Subclassing ndarray, https://docs.scipy.org/doc/numpy/user/basics.subclassing.html -.. [2] PyPi: maskedarray, https://pypi.org/project/maskedarray/ +.. [2] PyPI: maskedarray, https://pypi.org/project/maskedarray/ Copyright --------- diff --git a/doc/source/dev/development_workflow.rst b/doc/source/dev/development_workflow.rst index 457bcf34a..38f047ec0 100644 --- a/doc/source/dev/development_workflow.rst +++ b/doc/source/dev/development_workflow.rst @@ -204,10 +204,10 @@ fragments in your commit message:: ``[skip travis]``: skip TravisCI jobs ``[skip azurepipelines]``: skip Azure jobs -*Note: unfortunately not all CI systems implement this feature well, or at all. +*Note*: unfortunately not all CI systems implement this feature well, or at all. CircleCI supports ``ci skip`` but has no command to skip only CircleCI. Azure chooses to still run jobs with skip commands on PRs, the jobs only get -skipped on merging to master.* +skipped on merging to master. .. _workflow_mailing_list: diff --git a/doc/source/reference/random/index.rst b/doc/source/reference/random/index.rst index aaabc9b39..674799d47 100644 --- a/doc/source/reference/random/index.rst +++ b/doc/source/reference/random/index.rst @@ -185,7 +185,7 @@ What's New or Different methods which are 2-10 times faster than NumPy's Box-Muller or inverse CDF implementations. * Optional ``dtype`` argument that accepts ``np.float32`` or ``np.float64`` - to produce either single or double prevision uniform random variables for + to produce either single or double precision uniform random variables for select distributions * Optional ``out`` argument that allows existing arrays to be filled for select distributions diff --git a/doc/source/reference/random/new-or-different.rst b/doc/source/reference/random/new-or-different.rst index a81543926..7a206a2ce 100644 --- a/doc/source/reference/random/new-or-different.rst +++ b/doc/source/reference/random/new-or-different.rst @@ -84,7 +84,7 @@ And in more detail: * The bit generators can be used in downstream projects via Cython. * Optional ``dtype`` argument that accepts ``np.float32`` or ``np.float64`` - to produce either single or double prevision uniform random variables for + to produce either single or double precision uniform random variables for select distributions * Uniforms (`~.Generator.random` and `~.Generator.integers`) diff --git a/doc/source/release/1.10.3-notes.rst b/doc/source/release/1.10.3-notes.rst index 0d4df4ce6..9172f7663 100644 --- a/doc/source/release/1.10.3-notes.rst +++ b/doc/source/release/1.10.3-notes.rst @@ -2,4 +2,4 @@ NumPy 1.10.3 Release Notes ========================== -N/A this release did not happen due to various screwups involving PyPi. +N/A this release did not happen due to various screwups involving PyPI. diff --git a/doc/source/release/1.11.1-notes.rst b/doc/source/release/1.11.1-notes.rst index 6303c32f0..a196502cf 100644 --- a/doc/source/release/1.11.1-notes.rst +++ b/doc/source/release/1.11.1-notes.rst @@ -4,7 +4,7 @@ NumPy 1.11.1 Release Notes Numpy 1.11.1 supports Python 2.6 - 2.7 and 3.2 - 3.5. It fixes bugs and regressions found in Numpy 1.11.0 and includes several build related -improvements. Wheels for Linux, Windows, and OSX can be found on pypi. +improvements. Wheels for Linux, Windows, and OSX can be found on PyPI. Fixes Merged ============ diff --git a/doc/source/release/1.12.1-notes.rst b/doc/source/release/1.12.1-notes.rst index f67dab108..09a2e6738 100644 --- a/doc/source/release/1.12.1-notes.rst +++ b/doc/source/release/1.12.1-notes.rst @@ -4,7 +4,7 @@ NumPy 1.12.1 Release Notes NumPy 1.12.1 supports Python 2.7 and 3.4 - 3.6 and fixes bugs and regressions found in NumPy 1.12.0. In particular, the regression in f2py constant parsing -is fixed. Wheels for Linux, Windows, and OSX can be found on pypi, +is fixed. Wheels for Linux, Windows, and OSX can be found on PyPI, Bugs Fixed ========== diff --git a/doc/source/user/absolute_beginners.rst b/doc/source/user/absolute_beginners.rst index 2c6882905..cf11c6745 100644 --- a/doc/source/user/absolute_beginners.rst +++ b/doc/source/user/absolute_beginners.rst @@ -1588,7 +1588,7 @@ If you created this array "a" :: .. for doctests The continuous integration truncates dataframe display without this setting. - >>> pd.set_option('max_columns', 10) + >>> pd.set_option('display.max_columns', 10) You could create a Pandas dataframe :: diff --git a/numpy/core/include/numpy/ndarraytypes.h b/numpy/core/include/numpy/ndarraytypes.h index 47d063178..35d82ec03 100644 --- a/numpy/core/include/numpy/ndarraytypes.h +++ b/numpy/core/include/numpy/ndarraytypes.h @@ -87,7 +87,7 @@ enum NPY_TYPES { NPY_BOOL=0, /* The number of types not including the new 1.6 types */ NPY_NTYPES_ABI_COMPATIBLE=21 }; -#ifdef _MSC_VER +#if defined(_MSC_VER) && !defined(__clang__) #pragma deprecated(NPY_CHAR) #endif diff --git a/numpy/core/include/numpy/npy_common.h b/numpy/core/include/numpy/npy_common.h index 1d6234e20..2bcc45e4f 100644 --- a/numpy/core/include/numpy/npy_common.h +++ b/numpy/core/include/numpy/npy_common.h @@ -131,9 +131,10 @@ #endif #endif -#if defined(_MSC_VER) - #define NPY_INLINE __inline -#elif defined(__GNUC__) +#if defined(_MSC_VER) && !defined(__clang__) + #define NPY_INLINE __inline +/* clang included here to handle clang-cl on Windows */ +#elif defined(__GNUC__) || defined(__clang__) #if defined(__STRICT_ANSI__) #define NPY_INLINE __inline__ #else diff --git a/numpy/core/src/common/simd/intdiv.h b/numpy/core/src/common/simd/intdiv.h index a7a461721..42f022c55 100644 --- a/numpy/core/src/common/simd/intdiv.h +++ b/numpy/core/src/common/simd/intdiv.h @@ -136,7 +136,7 @@ NPY_FINLINE npy_uint64 npyv__divh128_u64(npy_uint64 high, npy_uint64 divisor) { assert(divisor > 1); npy_uint64 quotient; -#if defined(_M_X64) && defined(_MSC_VER) && _MSC_VER >= 1920 +#if defined(_M_X64) && defined(_MSC_VER) && _MSC_VER >= 1920 && !defined(__clang__) npy_uint64 remainder; quotient = _udiv128(high, 0, divisor, &remainder); (void)remainder; diff --git a/numpy/core/src/multiarray/common_dtype.c b/numpy/core/src/multiarray/common_dtype.c index ca80b1ed7..3561a905a 100644 --- a/numpy/core/src/multiarray/common_dtype.c +++ b/numpy/core/src/multiarray/common_dtype.c @@ -41,7 +41,7 @@ * @param dtype2 Second DType class. * @return The common DType or NULL with an error set */ -NPY_NO_EXPORT NPY_INLINE PyArray_DTypeMeta * +NPY_NO_EXPORT PyArray_DTypeMeta * PyArray_CommonDType(PyArray_DTypeMeta *dtype1, PyArray_DTypeMeta *dtype2) { if (dtype1 == dtype2) { diff --git a/numpy/core/src/umath/loops_unary_fp.dispatch.c.src b/numpy/core/src/umath/loops_unary_fp.dispatch.c.src index 5817cf500..78e231965 100644 --- a/numpy/core/src/umath/loops_unary_fp.dispatch.c.src +++ b/numpy/core/src/umath/loops_unary_fp.dispatch.c.src @@ -128,6 +128,9 @@ NPY_FINLINE double c_square_f64(double a) #if __clang_major__ < 10 // Clang before v10 #define WORKAROUND_CLANG_RECIPROCAL_BUG 1 + #elif defined(_MSC_VER) + // clang-cl has the same bug + #define WORKAROUND_CLANG_RECIPROCAL_BUG 1 #elif defined(NPY_CPU_X86) || defined(NPY_CPU_AMD64) // Clang v10+, targeting i386 or x86_64 #define WORKAROUND_CLANG_RECIPROCAL_BUG 0 diff --git a/numpy/lib/polynomial.py b/numpy/lib/polynomial.py index f824c4c5e..6aa708861 100644 --- a/numpy/lib/polynomial.py +++ b/numpy/lib/polynomial.py @@ -686,7 +686,7 @@ def polyfit(x, y, deg, rcond=None, full=False, w=None, cov=False): "to scale the covariance matrix") # note, this used to be: fac = resids / (len(x) - order - 2.0) # it was deciced that the "- 2" (originally justified by "Bayesian - # uncertainty analysis") is not was the user expects + # uncertainty analysis") is not what the user expects # (see gh-11196 and gh-11197) fac = resids / (len(x) - order) if y.ndim == 1: diff --git a/numpy/random/mtrand.pyx b/numpy/random/mtrand.pyx index 8bf74aa5d..38b5484bc 100644 --- a/numpy/random/mtrand.pyx +++ b/numpy/random/mtrand.pyx @@ -4341,7 +4341,7 @@ cdef class RandomState: The drawn samples, of shape ``(size, k)``. Raises - ------- + ------ ValueError If any value in ``alpha`` is less than or equal to zero @@ -291,7 +291,7 @@ def parse_setuppy_commands(): - `pip install .` (from a git repo or downloaded source release) - - `pip install numpy` (last NumPy release on PyPi) + - `pip install numpy` (last NumPy release on PyPI) """)) return True @@ -303,7 +303,7 @@ def parse_setuppy_commands(): To install NumPy from here with reliable uninstall, we recommend that you use `pip install .`. To install the latest NumPy release - from PyPi, use `pip install numpy`. + from PyPI, use `pip install numpy`. For help with build/installation issues, please ask on the numpy-discussion mailing list. If you are sure that you have run @@ -371,7 +371,7 @@ def get_docs_url(): if 'dev' in VERSION: return "https://numpy.org/devdocs" else: - # For releases, this URL ends up on pypi. + # For releases, this URL ends up on PyPI. # By pinning the version, users looking at old PyPI releases can get # to the associated docs easily. return "https://numpy.org/doc/{}.{}".format(MAJOR, MINOR) |