MNT: Get rid of minversion definitions in __init__.py
See original GitHub issueDescription
Do we really need all this stuff in __init__.py
? It duplicates the info in setup.cfg
anyway. For the usage in docs/conf.py
, there is no reason we cannot get that info from setup.cfg
instead?
Additional context
If the package being checked has no __version__
, importing astropy
will fail. For example: liberfa/pyerfa#60
cc @saimn and @astrofrog @embray
Issue Analytics
- State:
- Created 3 years ago
- Comments:11 (11 by maintainers)
Top Results From Across the Web
python - What is __init__.py for? - Stack Overflow
Since I define Session here, I can start a new session using the syntax below. This code would be the same executed from...
Read more >Understanding Python imports, __init__.py and pythonpath
What if I only want to import certain, but not all, items from the imported module? In our example, we only have a...
Read more >What is __init__.py file in Python Packages ... - YouTube
In this video, we're gonna be discussing about the use case of __init__. py in Python or simply init. py in Python.
Read more >Bug listing with status UNCONFIRMED as at 2022/12/21 18 ...
Bug:128538 - "sys-apps/coreutils: /bin/hostname should be installed from coreutils not sys-apps/net-tools" status:UNCONFIRMED resolution: severity:enhancement ...
Read more >Python Modules and Packages – An Introduction
This article explores Python modules and Python packages, two mechanisms that ... Reusability: Functionality defined in a single module can be easily reused ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
https://importlib-metadata.readthedocs.io/en/latest/ (not importlib-resources 😉). It would be a requirement for Python 3.7 only. In the long term it’s the package to use as it was designed as a more efficient replacement to
pkg_resources
. (We could also use it for entry points, it should be must faster)Seems very nice. Could have a switch in
__init__.py
between pkg_resources and importlib.metadata… (see comments in PR)