| 1 | # GNU MediaGoblin -- federated, autonomous media hosting |
| 2 | # Copyright (C) 2011, 2012 MediaGoblin contributors. See AUTHORS. |
| 3 | # |
| 4 | # This program is free software: you can redistribute it and/or modify |
| 5 | # it under the terms of the GNU Affero General Public License as published by |
| 6 | # the Free Software Foundation, either version 3 of the License, or |
| 7 | # (at your option) any later version. |
| 8 | # |
| 9 | # This program is distributed in the hope that it will be useful, |
| 10 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 12 | # GNU Affero General Public License for more details. |
| 13 | # |
| 14 | # You should have received a copy of the GNU Affero General Public License |
| 15 | # along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 16 | |
| 17 | from setuptools import setup, find_packages |
| 18 | import os |
| 19 | import re |
| 20 | |
| 21 | READMEFILE = "README" |
| 22 | VERSIONFILE = os.path.join("mediagoblin", "_version.py") |
| 23 | VSRE = r"^__version__ = ['\"]([^'\"]*)['\"]" |
| 24 | |
| 25 | |
| 26 | def get_version(): |
| 27 | verstrline = open(VERSIONFILE, "rt").read() |
| 28 | mo = re.search(VSRE, verstrline, re.M) |
| 29 | if mo: |
| 30 | return mo.group(1) |
| 31 | else: |
| 32 | raise RuntimeError("Unable to find version string in %s." % |
| 33 | VERSIONFILE) |
| 34 | |
| 35 | |
| 36 | setup( |
| 37 | name="mediagoblin", |
| 38 | version=get_version(), |
| 39 | packages=find_packages(exclude=['ez_setup', 'examples', 'tests']), |
| 40 | zip_safe=False, |
| 41 | include_package_data = True, |
| 42 | # scripts and dependencies |
| 43 | install_requires=[ |
| 44 | 'setuptools', |
| 45 | 'PasteScript', |
| 46 | 'wtforms', |
| 47 | 'py-bcrypt', |
| 48 | 'pytest>=2.3.1', |
| 49 | 'pytest-xdist', |
| 50 | 'werkzeug>=0.7', |
| 51 | 'celery==2.5.3', |
| 52 | 'kombu==2.1.7', |
| 53 | 'jinja2', |
| 54 | 'sphinx', |
| 55 | 'Babel', |
| 56 | 'argparse', |
| 57 | 'webtest<2', |
| 58 | 'ConfigObj', |
| 59 | 'Markdown', |
| 60 | 'sqlalchemy>=0.8.0', |
| 61 | 'sqlalchemy-migrate', |
| 62 | 'mock', |
| 63 | 'itsdangerous', |
| 64 | 'pytz', |
| 65 | 'six', |
| 66 | ## This is optional! |
| 67 | # 'translitcodec', |
| 68 | ## For now we're expecting that users will install this from |
| 69 | ## their package managers. |
| 70 | # 'lxml', |
| 71 | # 'PIL', |
| 72 | ], |
| 73 | # requires=['gst'], |
| 74 | test_suite='nose.collector', |
| 75 | entry_points="""\ |
| 76 | [console_scripts] |
| 77 | gmg = mediagoblin.gmg_commands:main_cli |
| 78 | pybabel = mediagoblin.babel.messages.frontend:main |
| 79 | |
| 80 | [paste.app_factory] |
| 81 | app = mediagoblin.app:paste_app_factory |
| 82 | |
| 83 | [paste.filter_app_factory] |
| 84 | errors = mediagoblin.errormiddleware:mgoblin_error_middleware |
| 85 | |
| 86 | [zc.buildout] |
| 87 | make_user_dev_dirs = mediagoblin.buildout_recipes:MakeUserDevDirs |
| 88 | |
| 89 | [babel.extractors] |
| 90 | jinja2 = jinja2.ext:babel_extract |
| 91 | """, |
| 92 | license='AGPLv3', |
| 93 | author='Free Software Foundation and contributors', |
| 94 | author_email='cwebber@gnu.org', |
| 95 | url="http://mediagoblin.org/", |
| 96 | download_url="http://mediagoblin.org/download/", |
| 97 | long_description=open(READMEFILE).read(), |
| 98 | classifiers=[ |
| 99 | "Development Status :: 3 - Alpha", |
| 100 | "Environment :: Web Environment", |
| 101 | "License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)", |
| 102 | "Operating System :: OS Independent", |
| 103 | "Programming Language :: Python", |
| 104 | 'Programming Language :: Python :: 2.6', |
| 105 | 'Programming Language :: Python :: 2.7', |
| 106 | "Topic :: Internet :: WWW/HTTP :: Dynamic Content" |
| 107 | ], |
| 108 | ) |