<commit_before>import sys
from setuptools import setup

readme = open('README.rst').read()

setup(
    name="convertdate",

    version="2.0.6",

    description=("Converts between Gregorian dates and other calendar systems."
                 "Calendars included: Baha'i, French Republican, Hebrew, "
                 "Indian Civil, Islamic, ISO, Julian, Mayan and Persian."),

    long_description=readme,

    author="<NAME>",

    license='MIT',

    author_email="<EMAIL>",

    url="https://github.com/fitnr/convertdate",

    packages=[
        "convertdate",<commit_msg>add error checking in setup<commit_after>from setuptools import setup

try:
    readme = open('README.rst').read()
except IOError:
    readme = ''

setup(
    name="convertdate",

    version="2.0.6",

    description=("Converts between Gregorian dates and other calendar systems."
                 "Calendars included: Baha'i, French Republican, Hebrew, "
                 "Indian Civil, Islamic, ISO, Julian, Mayan and Persian."),

    long_description=readme,

    author="<NAME>",

    license='MIT',

    author_email="<EMAIL>",

    url="https://github.com/fitnr/convertdate",

    packages=[
        "convertdate",
{'fraction_non_alphanumeric': 0.1327212020033389, 'fraction_numerical': 0.005008347245409015, 'mean_word_length': 3.037037037037037, 'pattern_counts': {'":': 0, '<': 7, '<?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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1473958', 'n_tokens_mistral': 369, 'n_tokens_neox': 342, 'n_words': 85}