from distutils.core import setup

setup(
    name='Lookupy',
    version='0.1',
    author='Vineet Naik',
    author_email='naikvin@gmail.com',
    packages=['lookupy',],
    license='MIT License',
    description='Django QuerySet inspired interface to query list of dicts',
    long_description=open('README.md').read(),
)


from distutils.core import setup

try:
    long_desc = open('./README.md').read()
except IOError:
    long_desc = 'See: https://github.com/naiquevin/lookupy/blob/master/README.md'

setup(
    name='Lookupy',
    version='0.1',
    author='Vineet Naik',
    author_email='naikvin@gmail.com',
    packages=['lookupy',],
    license='MIT License',
    description='Django QuerySet inspired interface to query list of dicts',
    long_description=long_desc,
)


Handle building the package in absence of README.md
Handle building the package in absence of README.md

  from distutils.core import setup
+ 
+ try:
+     long_desc = open('./README.md').read()
+ except IOError:
+     long_desc = 'See: https://github.com/naiquevin/lookupy/blob/master/README.md'
  
  setup(
      name='Lookupy',
      version='0.1',
      author='Vineet Naik',
      author_email='naikvin@gmail.com',
      packages=['lookupy',],
      license='MIT License',
      description='Django QuerySet inspired interface to query list of dicts',
-     long_description=open('README.md').read(),
+     long_description=long_desc,
  )
  
  
Handle building the package in absence of README.md
## Code Before:
from distutils.core import setup

setup(
    name='Lookupy',
    version='0.1',
    author='Vineet Naik',
    author_email='naikvin@gmail.com',
    packages=['lookupy',],
    license='MIT License',
    description='Django QuerySet inspired interface to query list of dicts',
    long_description=open('README.md').read(),
)


## Instruction:
Handle building the package in absence of README.md
## Code After:
from distutils.core import setup

try:
    long_desc = open('./README.md').read()
except IOError:
    long_desc = 'See: https://github.com/naiquevin/lookupy/blob/master/README.md'

setup(
    name='Lookupy',
    version='0.1',
    author='Vineet Naik',
    author_email='naikvin@gmail.com',
    packages=['lookupy',],
    license='MIT License',
    description='Django QuerySet inspired interface to query list of dicts',
    long_description=long_desc,
)

