Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:15.2:Update
python-signedjson
no-importlib-on-py38.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File no-importlib-on-py38.patch of Package python-signedjson
Index: signedjson-1.1.1/setup.py =================================================================== --- signedjson-1.1.1.orig/setup.py +++ signedjson-1.1.1/setup.py @@ -41,7 +41,7 @@ setup( "pynacl>=0.3.0", "typing_extensions>=3.5", 'typing>=3.5;python_version<"3.5"', - "importlib_metadata", + 'importlib_metadata;python_version<"3.8"', ], long_description=read_file(("README.rst",)), keywords="json", Index: signedjson-1.1.1/signedjson/__init__.py =================================================================== --- signedjson-1.1.1.orig/signedjson/__init__.py +++ signedjson-1.1.1/signedjson/__init__.py @@ -12,7 +12,10 @@ # See the License for the specific language governing permissions and # limitations under the License. -from importlib_metadata import version, PackageNotFoundError +try: + from importlib.metadata import version, PackageNotFoundError +except ImportError: + from importlib_metadata import version, PackageNotFoundError try: __version__ = version(__name__)
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor