
'''libthumbor is the library used to access thumbor's images in python'''

from pkg_resources import get_distribution

__version__ = get_distribution('libthumbor').version

from libthumbor.crypto import CryptoURL


'''libthumbor is the library used to access thumbor's images in python'''

from pkg_resources import get_distribution, DistributionNotFound

__project__ = 'libthumbor'

try:
    __version__ = get_distribution(__project__).version
except DistributionNotFound:
    # Returns a local version. For tests.
    __version__ = '{}-local'.format(__project__)
    
from libthumbor.crypto import CryptoURL

Fix verson number in tests
Fix verson number in tests

  
  '''libthumbor is the library used to access thumbor's images in python'''
  
- from pkg_resources import get_distribution
+ from pkg_resources import get_distribution, DistributionNotFound
  
- __version__ = get_distribution('libthumbor').version
+ __project__ = 'libthumbor'
  
+ try:
+     __version__ = get_distribution(__project__).version
+ except DistributionNotFound:
+     # Returns a local version. For tests.
+     __version__ = '{}-local'.format(__project__)
+     
  from libthumbor.crypto import CryptoURL
  
Fix verson number in tests
## Code Before:

'''libthumbor is the library used to access thumbor's images in python'''

from pkg_resources import get_distribution

__version__ = get_distribution('libthumbor').version

from libthumbor.crypto import CryptoURL

## Instruction:
Fix verson number in tests
## Code After:

'''libthumbor is the library used to access thumbor's images in python'''

from pkg_resources import get_distribution, DistributionNotFound

__project__ = 'libthumbor'

try:
    __version__ = get_distribution(__project__).version
except DistributionNotFound:
    # Returns a local version. For tests.
    __version__ = '{}-local'.format(__project__)
    
from libthumbor.crypto import CryptoURL
