From 126ce317d76e1f3f26f94db83862c7d7249bad4b Mon Sep 17 00:00:00 2001 From: Matt Westcott Date: Fri, 7 Feb 2014 15:39:59 +0000 Subject: [PATCH] additions for setuptools --- .gitignore | 3 +++ CHANGELOG.txt | 6 ++++++ MANIFEST.in | 4 ++++ setup.py | 37 ++++++++++++++++++++++++++++++++++--- 4 files changed, 47 insertions(+), 3 deletions(-) create mode 100644 CHANGELOG.txt create mode 100644 MANIFEST.in diff --git a/.gitignore b/.gitignore index 0205d62f17..1c686d2bae 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,5 @@ *.pyc .DS_Store +/dist/ +/MANIFEST +/wagtail.egg-info/ diff --git a/CHANGELOG.txt b/CHANGELOG.txt new file mode 100644 index 0000000000..0dbd75aede --- /dev/null +++ b/CHANGELOG.txt @@ -0,0 +1,6 @@ +Changelog +========= + +0.1 (07.02.2014) +~~~~~~~~~~~~~~~~ + * Initial release. diff --git a/MANIFEST.in b/MANIFEST.in new file mode 100644 index 0000000000..59ede67f45 --- /dev/null +++ b/MANIFEST.in @@ -0,0 +1,4 @@ +include LICENSE README.rst CHANGELOG.txt +recursive-include wagtail * +recursive-exclude * __pycache__ +recursive-exclude * *.py[co] diff --git a/setup.py b/setup.py index 5dd1af91c7..fcb3d2483d 100644 --- a/setup.py +++ b/setup.py @@ -1,13 +1,44 @@ #!/usr/bin/env python -from distutils.core import setup +try: + from setuptools import setup +except ImportError: + from distutils.core import setup setup( name='wagtail', version='0.1', - description='Django-based content management system', + description='A Django content management system focused on flexibility and user experience', author='Matthew Westcott', author_email='matthew.westcott@torchbox.com', url='http://wagtail.io/', packages=['wagtail'], -) \ No newline at end of file + license='BSD', + long_description=open('README.rst').read(), + classifiers=[ + 'Development Status :: 4 - Beta', + 'Environment :: Web Environment', + 'Intended Audience :: Developers', + 'License :: OSI Approved :: BSD License', + 'Operating System :: OS Independent', + 'Programming Language :: Python', + 'Programming Language :: Python :: 2.7', + 'Framework :: Django', + 'Topic :: Internet :: WWW/HTTP :: Site Management', + ], + install_requires=[ + "Django>=1.6.1", + "South>=0.8.4", + "django-compressor>=1.3", + "django-celery>=3.1.1", + "django-modelcluster>=0.1", + "elasticutils>=0.8.2", + "pyelasticsearch>=0.6.1", + "Embedly>=0.5.0", + "django-taggit==0.10", + "Pillow>=2.3.0", + "beautifulsoup4>=4.3.2", + "lxml>=3.3.0", + "BeautifulSoup==3.2.1", # django-compressor gets confused if we have lxml but not BS3 installed + ], +)