2017-02-20 14:24:29 +00:00
|
|
|
#!/usr/bin/env python
|
2018-04-13 09:09:41 +00:00
|
|
|
import re
|
|
|
|
|
|
|
|
|
|
import os
|
2018-02-28 11:06:05 +00:00
|
|
|
from setuptools import setup
|
2017-02-20 14:24:29 +00:00
|
|
|
|
2018-04-13 21:50:45 +00:00
|
|
|
|
2018-04-13 09:09:41 +00:00
|
|
|
def get_version(*file_paths):
|
|
|
|
|
filename = os.path.join(os.path.dirname(__file__), *file_paths)
|
|
|
|
|
version_file = open(filename).read()
|
|
|
|
|
version_match = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]", version_file, re.M)
|
|
|
|
|
if version_match:
|
|
|
|
|
return version_match.group(1)
|
2018-04-13 21:50:45 +00:00
|
|
|
raise RuntimeError('Please assure that the package version is defined as "__version__ = x.x.x" in ' + filename)
|
2018-04-13 09:09:41 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
version = get_version("wagtail_modeltranslation", "__init__.py")
|
|
|
|
|
|
2017-02-20 14:24:29 +00:00
|
|
|
setup(
|
|
|
|
|
name='wagtail-modeltranslation',
|
2018-04-13 09:09:41 +00:00
|
|
|
version=version,
|
2017-02-20 14:24:29 +00:00
|
|
|
description='Translates Wagtail CMS models using a registration approach.',
|
|
|
|
|
long_description=(
|
|
|
|
|
'The modeltranslation application can be used to translate dynamic '
|
|
|
|
|
'content of existing models to an arbitrary number of languages '
|
|
|
|
|
'without having to change the original model classes. It uses a '
|
|
|
|
|
'registration approach (comparable to Django\'s admin app) to be able '
|
|
|
|
|
'to add translations to existing or new projects and is fully '
|
|
|
|
|
'integrated into the Wagtail admin backend.'),
|
|
|
|
|
author='InfoPortugal, S.A.',
|
|
|
|
|
author_email='suporte24@infoportugal.pt',
|
|
|
|
|
maintainer='InfoPortugal, S.A.',
|
|
|
|
|
maintainer_email='suporte24@infoportugal.pt',
|
|
|
|
|
url='https://github.com/infoportugal/wagtail-modeltranslation',
|
2017-02-21 14:54:15 +00:00
|
|
|
packages=[
|
|
|
|
|
'wagtail_modeltranslation',
|
|
|
|
|
'wagtail_modeltranslation.management',
|
|
|
|
|
'wagtail_modeltranslation.management.commands',
|
2018-01-15 11:54:06 +00:00
|
|
|
'wagtail_modeltranslation.templatetags',
|
|
|
|
|
'wagtail_modeltranslation.makemigrations',
|
|
|
|
|
'wagtail_modeltranslation.makemigrations.management',
|
2018-02-23 15:35:32 +00:00
|
|
|
'wagtail_modeltranslation.makemigrations.management.commands',
|
|
|
|
|
'wagtail_modeltranslation.migrate',
|
|
|
|
|
'wagtail_modeltranslation.migrate.management',
|
|
|
|
|
'wagtail_modeltranslation.migrate.management.commands'],
|
2017-02-21 14:54:15 +00:00
|
|
|
package_data={'wagtail_modeltranslation': ['static/wagtail_modeltranslation/css/*.css',
|
|
|
|
|
'static/wagtail_modeltranslation/js/*.js']},
|
2018-04-24 15:52:15 +00:00
|
|
|
install_requires=['wagtail>=1.8', 'django-modeltranslation>=0.13b1'],
|
2018-01-29 15:39:43 +00:00
|
|
|
download_url='https://github.com/infoportugal/wagtail-modeltranslation/archive/v0.8.tar.gz',
|
2017-02-20 14:24:29 +00:00
|
|
|
classifiers=[
|
|
|
|
|
'Programming Language :: Python',
|
|
|
|
|
'Programming Language :: Python :: 2.6',
|
|
|
|
|
'Programming Language :: Python :: 2.7',
|
|
|
|
|
'Programming Language :: Python :: 3',
|
|
|
|
|
'Programming Language :: Python :: 3.2',
|
|
|
|
|
'Programming Language :: Python :: 3.3',
|
|
|
|
|
'Programming Language :: Python :: 3.4',
|
|
|
|
|
'Operating System :: OS Independent',
|
|
|
|
|
'Environment :: Web Environment',
|
|
|
|
|
'Intended Audience :: Developers',
|
|
|
|
|
'Framework :: Django',
|
|
|
|
|
'License :: OSI Approved :: BSD License'],
|
|
|
|
|
license='New BSD')
|