File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11"""fmrest constants"""
22import os
33from enum import Enum , unique
4- from pkg_resources import get_distribution
54from typing import Dict , Any
65
7- __version__ = get_distribution ('python-fmrest' ).version
6+ PACKAGE_NAME = 'python-fmrest'
7+
8+ try :
9+ from importlib .metadata import version # Python 3.8+
10+ __version__ = version (PACKAGE_NAME )
11+ except ImportError :
12+ from pkg_resources import get_distribution # Python 3.6-3.7
13+ __version__ = get_distribution (PACKAGE_NAME ).version
814
915PORTAL_PREFIX = 'portal_'
1016TIMEOUT = int (os .environ .get ('fmrest_timeout' , 10 ))
Original file line number Diff line number Diff line change 55
66setup (
77 name = 'python-fmrest' ,
8- version = '1.7.4 ' ,
8+ version = '1.7.5 ' ,
99 python_requires = '>=3.6' ,
1010 author = 'David Hamann' ,
1111 author_email = 'dh@davidhamann.de' ,
You can’t perform that action at this time.
0 commit comments