<commit_before>"""A setuptools based setup module.
See:
https://packaging.python.org/en/latest/distributing.html
https://github.com/pypa/sampleproject
"""

# Always prefer setuptools over distutils
from setuptools import setup
# To use a consistent encoding
from codecs import open
from os import path
import os
import sys

here = path.abspath(path.dirname(__file__))
with open(path.join(here, 'description.txt'), encoding='utf-8') as f:
    long_description = f.read()
version_filename = os.path.join('pysat', 'version.txt')
with open(os.path.join(here, version_filename)) as version_file:
    version = version_file.read().strip()

# change setup.py for readthedocs
on_rtd = os.environ.get('READTHEDOCS') == 'True'
if sys.version_info.major == 2:
    install_requires = ['xarray<0.12', 'pandas>=0.23, <0.25',
                        'numpy>=1.12, <1.17', 'scipy<1.3', 'sgp4',
                        'pyEphem', 'requests', 'beautifulsoup4',
                        'lxml', 'netCDF4', 'matplotlib<3.1', 'pysatCDF',<commit_msg>BUG: fix upper limit for matplotlib<commit_after>"""A setuptools based setup module.
See:
https://packaging.python.org/en/latest/distributing.html
https://github.com/pypa/sampleproject
"""

# Always prefer setuptools over distutils
from setuptools import setup
# To use a consistent encoding
from codecs import open
from os import path
import os
import sys

here = path.abspath(path.dirname(__file__))
with open(path.join(here, 'description.txt'), encoding='utf-8') as f:
    long_description = f.read()
version_filename = os.path.join('pysat', 'version.txt')
with open(os.path.join(here, version_filename)) as version_file:
    version = version_file.read().strip()

# change setup.py for readthedocs
on_rtd = os.environ.get('READTHEDOCS') == 'True'
if sys.version_info.major == 2:
    install_requires = ['xarray<0.12', 'pandas>=0.23, <0.25',
                        'numpy>=1.12, <1.17', 'scipy<1.3', 'sgp4',
                        'pyEphem', 'requests', 'beautifulsoup4',
                        'lxml', 'netCDF4', 'matplotlib<3.0', 'pysatCDF',
{'fraction_non_alphanumeric': 0.14884393063583815, 'fraction_numerical': 0.023121387283236993, 'mean_word_length': 3.7420091324200913, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 7, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '690223', 'n_tokens_mistral': 729, 'n_tokens_neox': 706, 'n_words': 162}