from distutils.core import setup


# Load in babel support, if available.
try:
    from babel.messages import frontend as babel
    cmdclass = {"compile_catalog": babel.compile_catalog,
                "extract_messages": babel.extract_messages,
                "init_catalog": babel.init_catalog,
                "update_catalog": babel.update_catalog,}
except ImportError:
    cmdclass = {}


setup(name="django-money",
      version="0.1",
      description="Adds support for using money and currency fields in django models and forms. Uses py-moneyed as money implementation, based on python-money django implementation.",
      url="https://github.com/jakewins/django-money",
      packages=["djmoney",
                "djmoney.forms", 
                "djmoney.models"],
      # Commented out, waiting for pull request to be fulfilled: https://github.com/limist/py-moneyed/pull/1 
      #install_requires=['setuptools',
      #                  'Django >= 1.2',
      #                  'py-moneyed > 0.3'],
#      package_dir={"": ""},
      cmdclass = cmdclass,
      classifiers=["Development Status :: 5 - Production/Stable",
                   "Intended Audience :: Developers",
                   "License :: OSI Approved :: BSD License",
                   "Operating System :: OS Independent",
                   "Programming Language :: Python",
                   "Framework :: Django",])



from distutils.core import setup


# Load in babel support, if available.
try:
    from babel.messages import frontend as babel
    cmdclass = {"compile_catalog": babel.compile_catalog,
                "extract_messages": babel.extract_messages,
                "init_catalog": babel.init_catalog,
                "update_catalog": babel.update_catalog,}
except ImportError:
    cmdclass = {}


setup(name="django-money",
      version="0.1",
      description="Adds support for using money and currency fields in django models and forms. Uses py-moneyed as money implementation, based on python-money django implementation.",
      url="https://github.com/jakewins/django-money",
      packages=["djmoney",
                "djmoney.forms", 
                "djmoney.models"],
      install_requires=['setuptools',
                        'Django >= 1.2',
                        'py-moneyed > 0.4'],
      cmdclass = cmdclass,
      classifiers=["Development Status :: 5 - Production/Stable",
                   "Intended Audience :: Developers",
                   "License :: OSI Approved :: BSD License",
                   "Operating System :: OS Independent",
                   "Programming Language :: Python",
                   "Framework :: Django",])

Update dependencies so installation is simpler.
Update dependencies so installation is simpler.

The pull request, and a new release of py-moneyed has occurred.

  from distutils.core import setup
  
  
  # Load in babel support, if available.
  try:
      from babel.messages import frontend as babel
      cmdclass = {"compile_catalog": babel.compile_catalog,
                  "extract_messages": babel.extract_messages,
                  "init_catalog": babel.init_catalog,
                  "update_catalog": babel.update_catalog,}
  except ImportError:
      cmdclass = {}
  
  
  setup(name="django-money",
        version="0.1",
        description="Adds support for using money and currency fields in django models and forms. Uses py-moneyed as money implementation, based on python-money django implementation.",
        url="https://github.com/jakewins/django-money",
        packages=["djmoney",
                  "djmoney.forms", 
                  "djmoney.models"],
-       # Commented out, waiting for pull request to be fulfilled: https://github.com/limist/py-moneyed/pull/1 
-       #install_requires=['setuptools',
+       install_requires=['setuptools',
-       #                  'Django >= 1.2',
+                         'Django >= 1.2',
-       #                  'py-moneyed > 0.3'],
+                         'py-moneyed > 0.4'],
- #      package_dir={"": ""},
        cmdclass = cmdclass,
        classifiers=["Development Status :: 5 - Production/Stable",
                     "Intended Audience :: Developers",
                     "License :: OSI Approved :: BSD License",
                     "Operating System :: OS Independent",
                     "Programming Language :: Python",
                     "Framework :: Django",])
  
- 
- 
Update dependencies so installation is simpler.
## Code Before:
from distutils.core import setup


# Load in babel support, if available.
try:
    from babel.messages import frontend as babel
    cmdclass = {"compile_catalog": babel.compile_catalog,
                "extract_messages": babel.extract_messages,
                "init_catalog": babel.init_catalog,
                "update_catalog": babel.update_catalog,}
except ImportError:
    cmdclass = {}


setup(name="django-money",
      version="0.1",
      description="Adds support for using money and currency fields in django models and forms. Uses py-moneyed as money implementation, based on python-money django implementation.",
      url="https://github.com/jakewins/django-money",
      packages=["djmoney",
                "djmoney.forms", 
                "djmoney.models"],
      # Commented out, waiting for pull request to be fulfilled: https://github.com/limist/py-moneyed/pull/1 
      #install_requires=['setuptools',
      #                  'Django >= 1.2',
      #                  'py-moneyed > 0.3'],
#      package_dir={"": ""},
      cmdclass = cmdclass,
      classifiers=["Development Status :: 5 - Production/Stable",
                   "Intended Audience :: Developers",
                   "License :: OSI Approved :: BSD License",
                   "Operating System :: OS Independent",
                   "Programming Language :: Python",
                   "Framework :: Django",])



## Instruction:
Update dependencies so installation is simpler.
## Code After:
from distutils.core import setup


# Load in babel support, if available.
try:
    from babel.messages import frontend as babel
    cmdclass = {"compile_catalog": babel.compile_catalog,
                "extract_messages": babel.extract_messages,
                "init_catalog": babel.init_catalog,
                "update_catalog": babel.update_catalog,}
except ImportError:
    cmdclass = {}


setup(name="django-money",
      version="0.1",
      description="Adds support for using money and currency fields in django models and forms. Uses py-moneyed as money implementation, based on python-money django implementation.",
      url="https://github.com/jakewins/django-money",
      packages=["djmoney",
                "djmoney.forms", 
                "djmoney.models"],
      install_requires=['setuptools',
                        'Django >= 1.2',
                        'py-moneyed > 0.4'],
      cmdclass = cmdclass,
      classifiers=["Development Status :: 5 - Production/Stable",
                   "Intended Audience :: Developers",
                   "License :: OSI Approved :: BSD License",
                   "Operating System :: OS Independent",
                   "Programming Language :: Python",
                   "Framework :: Django",])
