-
-
Notifications
You must be signed in to change notification settings - Fork 11.1k
API: Cleaning numpy/__init__.py
and main namespace - Part 5 [NEP 52]
#24587
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
ngoldbaum
merged 11 commits into
numpy:main
from
mtsokol:overhaul-of-main-namespace-part-5
Sep 18, 2023
Merged
Changes from 1 commit
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
2391866
API: Remove chararray, compare_chararrays, recarray and format_parser…
mtsokol 2a7aebd
Add pyi class definitions
mtsokol 6d3051e
Add changelog file
mtsokol 6643c0e
MAINT: Create rec and char submodules
mtsokol 4727fb1
Update numpy/setup.py
mtsokol 1aef35a
MAINT: Adjust typing tests
mtsokol 5752d92
Update numpy/char/__init__.pyi
mtsokol cee5097
Restore np.recarray and deprecate np.chararray
mtsokol eb6a10a
Apply review comments
mtsokol 5312b6e
Apply review comments
mtsokol 2752b04
Fix rst doc
mtsokol File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Update numpy/setup.py
- Loading branch information
commit 4727fb1e794d8d42cb389ee5a54b7d9b3da54ae4
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,3 +8,6 @@ from numpy.core.records import ( | |
fromfile as fromfile, | ||
array as array | ||
) | ||
|
||
__all__: list[str] | ||
__path__: list[str] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
#!/usr/bin/env python3 | ||
|
||
def configuration(parent_package='',top_path=None): | ||
from numpy.distutils.misc_util import Configuration | ||
config = Configuration('numpy', parent_package, top_path) | ||
|
||
config.add_subpackage('array_api') | ||
config.add_subpackage('compat') | ||
config.add_subpackage('core') | ||
config.add_subpackage('distutils') | ||
config.add_subpackage('doc') | ||
config.add_subpackage('f2py') | ||
config.add_subpackage('fft') | ||
config.add_subpackage('lib') | ||
config.add_subpackage('linalg') | ||
config.add_subpackage('ma') | ||
config.add_subpackage('matrixlib') | ||
config.add_subpackage('polynomial') | ||
config.add_subpackage('random') | ||
config.add_subpackage('rec') | ||
config.add_subpackage('char') | ||
config.add_subpackage('testing') | ||
config.add_subpackage('typing') | ||
config.add_subpackage('_typing') | ||
config.add_subpackage('_utils') | ||
config.add_data_dir('doc') | ||
config.add_data_files('py.typed') | ||
config.add_data_files('*.pyi') | ||
config.add_subpackage('tests') | ||
config.add_subpackage('_pyinstaller') | ||
config.make_config_py() # installs __config__.py | ||
return config | ||
|
||
if __name__ == '__main__': | ||
print('This is the wrong setup.py file to run') |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.