<commit_before>#!/usr/bin/env python
"""
Installation script:

To release a new version to PyPi:
- Ensure the version is correctly set in oscar.__init__.py
- Run: make release
"""
from setuptools import setup, find_packages
import os
import sys


PROJECT_DIR = os.path.dirname(__file__)
PY3 = sys.version_info >= (3, 0)

sys.path.append(os.path.join(PROJECT_DIR, 'src'))
from oscar import get_version  # noqa isort:skip

install_requires = [
    'django>=1.8.8,<1.12',
    # PIL is required for image fields, Pillow is the "friendly" PIL fork
    'pillow>=3.4.2',
    # We use the ModelFormSetView from django-extra-views for the basket
    # page. > 0.6.5 has a bug which causes issues with Django > 1.6,
    # https://github.com/AndrewIngram/django-extra-views/issues/114
    'django-extra-views>=0.2,<0.6.5',
    # Search support
    'django-haystack>=2.5.0,<2.6.0',
    # Treebeard is used for categories
    'django-treebeard>=4.1.0',
    # Sorl is used as the default thumbnailer
    'sorl-thumbnail>=12.4a1',
    # Babel is used for currency formatting
    'Babel>=1.0,<3.0',
    # For converting non-ASCII to ASCII when creating slugs
    'Unidecode>=0.04.12,<0.05',
    # For manipulating search URLs
    'purl>=0.7',
    # For phone number field
    'django-phonenumber-field>=1.0.0,<1.2.0',
    # Used for oscar.test.contextmanagers.mock_signal_receiver
    'mock>=1.0.1,<3.0',
    # Used for oscar.test.newfactories
    'factory-boy>=2.4.1,<3.0',
    # Used for automatically building larger HTML tables
    'django-tables2>=1.2,<2.0',
    # Used for manipulating form field attributes in templates (eg: add
    # a css class)
    'django-widget-tweaks>=1.4.1',
]

docs_requires = [
    'Sphinx==1.5.2',
    'sphinxcontrib-napoleon==0.6.0',
    'sphinx_rtd_theme==0.1.9',
    'sphinx-issues==0.3.1',
]

test_requires = [<commit_msg>Update version range for django-phonenumber-field<commit_after>#!/usr/bin/env python
"""
Installation script:

To release a new version to PyPi:
- Ensure the version is correctly set in oscar.__init__.py
- Run: make release
"""
from setuptools import setup, find_packages
import os
import sys


PROJECT_DIR = os.path.dirname(__file__)
PY3 = sys.version_info >= (3, 0)

sys.path.append(os.path.join(PROJECT_DIR, 'src'))
from oscar import get_version  # noqa isort:skip

install_requires = [
    'django>=1.8.8,<1.12',
    # PIL is required for image fields, Pillow is the "friendly" PIL fork
    'pillow>=3.4.2',
    # We use the ModelFormSetView from django-extra-views for the basket
    # page. > 0.6.5 has a bug which causes issues with Django > 1.6,
    # https://github.com/AndrewIngram/django-extra-views/issues/114
    'django-extra-views>=0.2,<0.6.5',
    # Search support
    'django-haystack>=2.5.0,<2.6.0',
    # Treebeard is used for categories
    'django-treebeard>=4.1.0',
    # Sorl is used as the default thumbnailer
    'sorl-thumbnail>=12.4a1',
    # Babel is used for currency formatting
    'Babel>=1.0,<3.0',
    # For converting non-ASCII to ASCII when creating slugs
    'Unidecode>=0.04.12,<0.05',
    # For manipulating search URLs
    'purl>=0.7',
    # For phone number field
    'django-phonenumber-field>=1.0.0,<2.0.0',
    # Used for oscar.test.contextmanagers.mock_signal_receiver
    'mock>=1.0.1,<3.0',
    # Used for oscar.test.newfactories
    'factory-boy>=2.4.1,<3.0',
    # Used for automatically building larger HTML tables
    'django-tables2>=1.2,<2.0',
    # Used for manipulating form field attributes in templates (eg: add
    # a css class)
    'django-widget-tweaks>=1.4.1',
]

docs_requires = [
    'Sphinx==1.5.2',
    'sphinxcontrib-napoleon==0.6.0',
    'sphinx_rtd_theme==0.1.9',
    'sphinx-issues==0.3.1',
]

test_requires = [
{'fraction_non_alphanumeric': 0.14339419978517723, 'fraction_numerical': 0.047261009667024706, 'mean_word_length': 3.30635838150289, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 37, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7598138', 'n_tokens_mistral': 1433, 'n_tokens_neox': 1373, 'n_words': 326}