<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/python-packages/numpy.git/numpy/setup.py, branch v1.20.0</title>
<subtitle>github.com: numpy/numpy.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/'/>
<entry>
<title>MAINT: make typing module available at runtime</title>
<updated>2020-06-10T05:06:13+00:00</updated>
<author>
<name>Josh Wilson</name>
<email>person142@users.noreply.github.com</email>
</author>
<published>2020-06-10T04:21:40+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=8e8a8f15970822a6242dc2ecba2ba4947204b4bb'/>
<id>8e8a8f15970822a6242dc2ecba2ba4947204b4bb</id>
<content type='text'>
Closes https://github.com/numpy/numpy/issues/16550.

This makes `np.typing.ArrayLike` and `np.typing.DtypeLike` available
at runtime in addition to typing time. Some things to consider:

- `ArrayLike` uses protocols, which are only in the standard library
  in 3.8+, but are backported in `typing_extensions`. This
  conditionally imports `Protocol` and sets `_SupportsArray` to `Any`
  at runtime if the module is not available to prevent NumPy from
  having a hard dependency on `typing_extensions`. Since e.g. mypy
  already includes `typing_extensions` as a dependency, anybody
  actually doing type checking will have it set correctly.
- We are starting to hit the edges of "the fiction of the stubs". In
  particular, they could just cram everything into `__init__.pyi` and
  ignore the real structure of NumPy. But now that typing is available
  a runtime, we have to e.g. carefully import `ndarray` from `numpy`
  in the typing module and not from `..core.multiarray`, because
  otherwise mypy will think you are talking about a different
  ndarray. We will probably need to do some shuffling the stubs into
  more fitting locations to mitigate weirdness like this.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Closes https://github.com/numpy/numpy/issues/16550.

This makes `np.typing.ArrayLike` and `np.typing.DtypeLike` available
at runtime in addition to typing time. Some things to consider:

- `ArrayLike` uses protocols, which are only in the standard library
  in 3.8+, but are backported in `typing_extensions`. This
  conditionally imports `Protocol` and sets `_SupportsArray` to `Any`
  at runtime if the module is not available to prevent NumPy from
  having a hard dependency on `typing_extensions`. Since e.g. mypy
  already includes `typing_extensions` as a dependency, anybody
  actually doing type checking will have it set correctly.
- We are starting to hit the edges of "the fiction of the stubs". In
  particular, they could just cram everything into `__init__.pyi` and
  ignore the real structure of NumPy. But now that typing is available
  a runtime, we have to e.g. carefully import `ndarray` from `numpy`
  in the typing module and not from `..core.multiarray`, because
  otherwise mypy will think you are talking about a different
  ndarray. We will probably need to do some shuffling the stubs into
  more fitting locations to mitigate weirdness like this.
</pre>
</div>
</content>
</entry>
<entry>
<title>ENH: add type stubs from numpy-stubs</title>
<updated>2020-06-06T22:31:33+00:00</updated>
<author>
<name>Josh Wilson</name>
<email>person142@users.noreply.github.com</email>
</author>
<published>2020-06-06T22:31:33+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=11b95d15f10c2bc652ed19d5e27efa0384396cb8'/>
<id>11b95d15f10c2bc652ed19d5e27efa0384396cb8</id>
<content type='text'>
Add the type stubs and tests from numpy-stubs. Things this entails:

- Copy over the stubs (numpy/__init__.pyi and
  numpy/core/_internal.pyi)
  - The only modification made was removing `ndarray.tostring` since
    it is deprecated
- Update some setup.py files to include pyi files
- Move the tests from numpy-stubs/tests into numpy/tests
  - Skip them if mypy is not installed (planning on setting up CI in a
    future PR)
  - Add a mypy.ini; use it to configure mypy in the tests
    - It tells mypy where to find NumPy in the test env
    - It ignores internal NumPy type errors (since we only want to
      consider errors from the tests cases)
  - Some small edits were made to fix test cases that were emitting
    deprecation warnings
 - Add numpy/py.typed so that the types are picked up in an
   installed version of NumPy
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add the type stubs and tests from numpy-stubs. Things this entails:

- Copy over the stubs (numpy/__init__.pyi and
  numpy/core/_internal.pyi)
  - The only modification made was removing `ndarray.tostring` since
    it is deprecated
- Update some setup.py files to include pyi files
- Move the tests from numpy-stubs/tests into numpy/tests
  - Skip them if mypy is not installed (planning on setting up CI in a
    future PR)
  - Add a mypy.ini; use it to configure mypy in the tests
    - It tells mypy where to find NumPy in the test env
    - It ignores internal NumPy type errors (since we only want to
      consider errors from the tests cases)
  - Some small edits were made to fix test cases that were emitting
    deprecation warnings
 - Add numpy/py.typed so that the types are picked up in an
   installed version of NumPy
</pre>
</div>
</content>
</entry>
<entry>
<title>Mark tests as a subpackage rather than data.</title>
<updated>2020-05-06T19:57:36+00:00</updated>
<author>
<name>Hameer Abbasi</name>
<email>einstein.edison@gmail.com</email>
</author>
<published>2020-05-06T18:34:34+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=a51ac2610cd6a3c23d48c65709397083da395733'/>
<id>a51ac2610cd6a3c23d48c65709397083da395733</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>convert shebang from python to python3 (#15687)</title>
<updated>2020-03-04T08:22:40+00:00</updated>
<author>
<name>Changqing Li</name>
<email>changqing.li@windriver.com</email>
</author>
<published>2020-03-04T08:22:40+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=583901a074dc65145d3d6136ba7dcd02634d680b'/>
<id>583901a074dc65145d3d6136ba7dcd02634d680b</id>
<content type='text'>
Signed-off-by: Changqing Li &lt;changqing.li@windriver.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Changqing Li &lt;changqing.li@windriver.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>MAINT: Remove unnecessary 'from __future__ import ...' statements</title>
<updated>2020-01-03T15:48:11+00:00</updated>
<author>
<name>Jon Dufresne</name>
<email>jon.dufresne@gmail.com</email>
</author>
<published>2019-08-27T11:36:38+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=ed1e9659f103260a32536b4a7615393e3b1173dc'/>
<id>ed1e9659f103260a32536b4a7615393e3b1173dc</id>
<content type='text'>
As numpy is Python 3 only, these import statements are now unnecessary
and don't alter runtime behavior.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
As numpy is Python 3 only, these import statements are now unnecessary
and don't alter runtime behavior.
</pre>
</div>
</content>
</entry>
<entry>
<title>MAINT: Remove references to Bento.</title>
<updated>2015-08-29T16:04:44+00:00</updated>
<author>
<name>Charles Harris</name>
<email>charlesr.harris@gmail.com</email>
</author>
<published>2015-08-29T15:30:34+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=529ee89447f03d007498cb2997eec9c93eae83fe'/>
<id>529ee89447f03d007498cb2997eec9c93eae83fe</id>
<content type='text'>
Bento builds are no longer supported, so remove references to that
built system.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Bento builds are no longer supported, so remove references to that
built system.
</pre>
</div>
</content>
</entry>
<entry>
<title>BLD: Move numpy.build_utils -&gt; numpy._build_utils, add to MANIFEST.in</title>
<updated>2015-08-05T16:21:33+00:00</updated>
<author>
<name>Alex Willmer</name>
<email>alex@moreati.org.uk</email>
</author>
<published>2015-08-05T16:21:33+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=ff668ba0d7652c12b28a6b6f9dbb3b581a383833'/>
<id>ff668ba0d7652c12b28a6b6f9dbb3b581a383833</id>
<content type='text'>
This fixes the distutils built from an sdist (e.g. under tox),
without including _build_utils in binary distributions or the installed numpy.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This fixes the distutils built from an sdist (e.g. under tox),
without including _build_utils in binary distributions or the installed numpy.
</pre>
</div>
</content>
</entry>
<entry>
<title>MAINT: List subpackages alphabetically in numpy.setup.configuration()</title>
<updated>2015-08-04T17:33:02+00:00</updated>
<author>
<name>Alex Willmer</name>
<email>alex@moreati.org.uk</email>
</author>
<published>2015-08-04T15:32:14+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=4553701b5d03efb5155ac6de7f439d372726caf6'/>
<id>4553701b5d03efb5155ac6de7f439d372726caf6</id>
<content type='text'>
The intention is to make it easier to spot missing items
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The intention is to make it easier to spot missing items
</pre>
</div>
</content>
</entry>
<entry>
<title>BLD: fix tests under Tox, include numpy.build_utils in the distribution</title>
<updated>2015-08-04T17:31:15+00:00</updated>
<author>
<name>Alex Willmer</name>
<email>alex@moreati.org.uk</email>
</author>
<published>2015-08-04T15:19:54+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=154fc44eb51a3358443b5813b8eef4a2f8bd2c28'/>
<id>154fc44eb51a3358443b5813b8eef4a2f8bd2c28</id>
<content type='text'>
The sub-package is already included in bento builds, it appears
to have been missed from distutils.

This fixes the following error whilst running any tests with tox

```
ImportError: No module named build_utils.apple_accelerate
```
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The sub-package is already included in bento builds, it appears
to have been missed from distutils.

This fixes the following error whilst running any tests with tox

```
ImportError: No module named build_utils.apple_accelerate
```
</pre>
</div>
</content>
</entry>
<entry>
<title>DEP, MAINT: Remove references to numeric and numarray.</title>
<updated>2013-09-23T21:11:12+00:00</updated>
<author>
<name>Charles Harris</name>
<email>charlesr.harris@gmail.com</email>
</author>
<published>2013-08-19T01:47:56+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=3512346df802732763076f3d9975a53a96bdfa57'/>
<id>3512346df802732763076f3d9975a53a96bdfa57</id>
<content type='text'>
This covers those locations that either import or build numarray
or numeric.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This covers those locations that either import or build numarray
or numeric.
</pre>
</div>
</content>
</entry>
</feed>
