
from setuptools import setup

setup(
    name = 'diabric',
    version = '0.1',
    license = 'MIT',
    description = 'Diabolically atomic Python Fabric fabfile tasks and utilities.',
    long_description = open('README.md').read(),
    keywords = 'fabric fabfile boto ec2 virtualenv python wsgi webapp deployment',
    url = 'https://github.com/todddeluca/diabric',
    author = 'Todd Francis DeLuca',
    author_email = 'todddeluca@yahoo.com',
    classifiers = ['License :: OSI Approved :: MIT License',
                   'Development Status :: 2 - Pre-Alpha',
                   'Programming Language :: Python :: 2',
                   'Programming Language :: Python :: 2.7',
                  ],
    packages = ['diabric'],
    install_requires = ['setuptools', 'Fabric>=1.4','boto>=2.3'],
    include_package_data = True,
    package_data = {'' : ['README.md', 'LICENSE.txt']},
)



import os
from setuptools import setup, find_packages

setup(
    name = 'diabric',
    version = '0.1.1',
    license = 'MIT',
    description = 'Diabolically atomic Python Fabric fabfile tasks and utilities.',
    long_description = open(os.path.join(os.path.dirname(__file__), 'README.md')).read(),
    keywords = 'fabric fabfile boto ec2 virtualenv python wsgi webapp deployment',
    url = 'https://github.com/todddeluca/diabric',
    author = 'Todd Francis DeLuca',
    author_email = 'todddeluca@yahoo.com',
    classifiers = ['License :: OSI Approved :: MIT License',
                   'Development Status :: 2 - Pre-Alpha',
                   'Programming Language :: Python :: 2',
                   'Programming Language :: Python :: 2.7',
                  ],
    install_requires = ['setuptools', 'Fabric>=1.4','boto>=2.3'],
    packages = ['diabric'],
)


Fix pip installation failure involving README.md
Fix pip installation failure involving README.md

Two bugs with "easy" fixes:

- README.md was not being included in the source distribution.  I'm not
  sure what I did to fix it, since the distutils/setuptools/distribute
  docs are quite incomplete and convoluted on something so
  straight-forward.  The fix: I removed some 'package_data' type lines
  from setup.py, and now LICENSE.txt and README.md are being included.
- In addition to README.md not being included in the distribution
  (tar.gz file) it was being read by setup.py as open('README.md'),
  which is relative to the current working directory, which I'm not sure
  pip sets to the directory containing setup.py.  The fix is to open the
  file using the directory of setup.py, via the __file__ attribute.
