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
RFE: Replace use of pkg_resources
with importlib.metadata
#1973
Comments
@webknjaz Did you notice that these lines: try:
__version__ = pkg_resources.require('cherrypy')[0].version
except Exception:
__version__ = 'unknown' actually take ages? |
@Safihre you're right. This should've been done long ago. |
…portlib.metadata Replaces references to pkg_resources with importlib.metadata Latest setuptools reports: DeprecationWarning: pkg_resources is deprecated as an API
…portlib.metadata Replaces references to pkg_resources with importlib.metadata Latest setuptools reports: DeprecationWarning: pkg_resources is deprecated as an API
…portlib.metadata Replaces references to pkg_resources with importlib.metadata Latest setuptools reports: DeprecationWarning: pkg_resources is deprecated as an API
git clean -xdf tar zcvf ../python-cherrypy_18.8.0.orig.tar.gz --exclude=.git . debuild -uc -us cp python-cherrypy.spec ../python-cherrypy_18.8.0-1.spec mv ../python*-cherrypy*18.8.0*.{gz,xz,spec,dsc} /osc/home\:alvistack/cherrypy-cherrypy-18.8.0/ rm -rf ../python*-cherrypy*18.8.0*.* See cherrypy#1973 Signed-off-by: Wong Hoi Sing Edison <hswong3i@pantarei-design.com>
git clean -xdf tar zcvf ../python-cherrypy_18.8.0.orig.tar.gz --exclude=.git . debuild -uc -us cp python-cherrypy.spec ../python-cherrypy_18.8.0-1.spec mv ../python*-cherrypy*18.8.0*.{gz,xz,spec,dsc} /osc/home\:alvistack/cherrypy-cherrypy-18.8.0/ rm -rf ../python*-cherrypy*18.8.0*.* See cherrypy#1973 Signed-off-by: Wong Hoi Sing Edison <hswong3i@pantarei-design.com>
…portlib.metadata Replaces references to pkg_resources with importlib.metadata Latest setuptools reports: DeprecationWarning: pkg_resources is deprecated as an API
…portlib.metadata Replaces references to pkg_resources with importlib.metadata Latest setuptools reports: DeprecationWarning: pkg_resources is deprecated as an API
…portlib.metadata Replaces references to pkg_resources with importlib.metadata Latest setuptools reports: DeprecationWarning: pkg_resources is deprecated as an API
Great @webknjaz 👍👍 now let's not wait another year to release it 🤣 |
@Safihre I identified a few incompatible changes post-merge: #1993 (review). Once they're addressed — why not. |
And another one: https://github.com/cherrypy/cherrypy/pull/2006/files#r1435574215. |
See discussions:
astropy/astropy#11091
pypa/pip#7413
The text was updated successfully, but these errors were encountered: