<commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import re
import sys

try:
    from setuptools import setup
except ImportError:
    from distutils.core import setup


def get_version(*file_paths):
    """Retrieves the version from django_json_widget/__init__.py"""
    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)
    raise RuntimeError('Unable to find version string.')


# version = get_version("django_json_widget", "__init__.py")


if sys.argv[-1] == 'publish':
    try:
        import wheel
        print("Wheel version: ", wheel.__version__)
    except ImportError:
        print('Wheel library missing. Please run "pip install wheel"')
        sys.exit()
    os.system('python setup.py sdist upload')
    os.system('python setup.py bdist_wheel upload')
    sys.exit()

if sys.argv[-1] == 'tag':
    print("Tagging the version on git:")
    os.system("git tag -a %s -m 'version %s'" % (version, version))
    os.system("git push --tags")
    sys.exit()

readme = open('README.rst').read()
history = open('HISTORY.rst').read().replace('.. :changelog:', '')

setup(
    name='django-json-widget',
    version='1.0.1',
    description="""Django json widget is an alternative widget that makes it easy to edit the jsonfield field of django.""",
    long_description=readme + '\n\n' + history,
    author='<NAME>',
    author_email='<EMAIL>',
    url='https://github.com/jmrivas86/django-json-widget',
    packages=[
        'django_json_widget',
    ],
    include_package_data=True,
    install_requires=['future'],
    license="MIT",
    zip_safe=False,
    keywords='django-json-widget',
    classifiers=[
        'Development Status :: 5 - Production/Stable',
        'Framework :: Django',<commit_msg>Update setup.py<commit_after>#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import re
import sys

try:
    from setuptools import setup
except ImportError:
    from distutils.core import setup


def get_version(*file_paths):
    """Retrieves the version from django_json_widget/__init__.py"""
    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)
    raise RuntimeError('Unable to find version string.')


# version = get_version("django_json_widget", "__init__.py")


if sys.argv[-1] == 'publish':
    try:
        import wheel
        print("Wheel version: ", wheel.__version__)
    except ImportError:
        print('Wheel library missing. Please run "pip install wheel"')
        sys.exit()
    os.system('python setup.py sdist upload')
    os.system('python setup.py bdist_wheel upload')
    sys.exit()

if sys.argv[-1] == 'tag':
    print("Tagging the version on git:")
    os.system("git tag -a %s -m 'version %s'" % (version, version))
    os.system("git push --tags")
    sys.exit()

readme = open('README.rst').read()
history = open('HISTORY.rst').read().replace('.. :changelog:', '')

setup(
    name='django-json-widget',
    version='1.0.1',
    description="""Django json widget is an alternative widget that makes it easy to edit the jsonfield field of django.""",
    long_description=readme + '\n\n' + history,
    author='<NAME>',
    author_email='<EMAIL>',
    url='https://github.com/jmrivas86/django-json-widget',
    packages=[
        'django_json_widget',
    ],
    include_package_data=True,
    # Only required for Django < 3.1
    # install_requires=['future'],
    license="MIT",
    zip_safe=False,
    keywords='django-json-widget',
    classifiers=[
        'Development Status :: 5 - Production/Stable',
        'Framework :: Django',
{'fraction_non_alphanumeric': 0.1544837980406933, 'fraction_numerical': 0.00552624968600854, 'mean_word_length': 3.1827731092436973, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 7, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2779179', 'n_tokens_mistral': 1272, 'n_tokens_neox': 1239, 'n_words': 297}