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

from setuptools import setup, find_packages
import re

with open('README.rst') as readme_file:
    readme = readme_file.read()

with open('docs/history.rst') as history_file:
    history = history_file.read()


def relative2absolute(input, old, new):
    """ Replaces every instance of rel_key in input with absolute_stem.
    Use this to change relative links to absolute links in pypi.
    """
    pattern = old
    p = re.compile(pattern)
    output = p.sub(new, input)
    return output


relative = r'_static'
stem = r'https://raw.githubusercontent.com/mroberge/hydrofunctions/master/_static'
readme = relative2absolute(readme, relative, stem)

requirements = [
    'matplotlib',
    'numpy>=1.16.0',
    'pandas',
    'requests',
    'IPython',
    'pyarrow==0.16.0',
    'ipykernel',
    'nbsphinx',
]

test_requirements = [
    # Use coverage to run coverage tests locally.
    # Do not list codecov here. It is only listed in .travis.yml because
    # we only run codecov during Travis CI builds.
    'coverage'
]

setup(
    name='hydrofunctions',
    version='0.1.7',
    description="A suite of convenience functions for exploring water data in a Jupyter Notebook.",
    long_description=readme + '\n\n' + history,
    author="<NAME>",
    author_email='<EMAIL>',
    url='https://github.com/mroberge/hydrofunctions',
    packages=find_packages(),
    package_dir={'hydrofunctions':
                 'hydrofunctions'},
    include_package_data=True,
    install_requires=requirements,
    license="MIT license",
    zip_safe=False,
    keywords='hydrofunctions hydrology USGS stream gauge water NWIS',
    project_urls={
            'Documentation': 'https://hydrofunctions.readthedocs.io',
            'Source': 'https://github.com/mroberge/hydrofunctions',
            'Latest': 'https://github.com/mroberge/hydrofunctions/tree/develop',
            'Tracker': 'https://github.com/mroberge/hydrofunctions/issues'
            },
    classifiers=[
        'Development Status :: 3 - Alpha',
        'Intended Audience :: Science/Research',
        'License :: OSI Approved :: MIT License',
        'Natural Language :: English',
        'Programming Language :: Python :: 3.5',
        'Programming Language :: Python :: 3.6',
        'Programming Language :: Python :: 3.7',
        'Topic :: Scientific/Engineering :: Information Analysis',
        'Topic :: Scientific/Engineering :: Visualization',
        'Topic :: Utilities'
    ],
    test_suite='tests',
    tests_require=test_requirements
)<commit_msg>Update setup.py to list Python 3.8, drop 3.5<commit_after>#!/usr/bin/env python
# -*- coding: utf-8 -*-

from setuptools import setup, find_packages
import re

with open('README.rst') as readme_file:
    readme = readme_file.read()

with open('docs/history.rst') as history_file:
    history = history_file.read()


def relative2absolute(input, old, new):
    """ Replaces every instance of rel_key in input with absolute_stem.
    Use this to change relative links to absolute links in pypi.
    """
    pattern = old
    p = re.compile(pattern)
    output = p.sub(new, input)
    return output


relative = r'_static'
stem = r'https://raw.githubusercontent.com/mroberge/hydrofunctions/master/_static'
readme = relative2absolute(readme, relative, stem)

requirements = [
    'matplotlib',
    'numpy>=1.16.0',
    'pandas',
    'requests',
    'IPython',
    'pyarrow==0.16.0',
    'ipykernel',
    'nbsphinx',
]

test_requirements = [
    # Use coverage to run coverage tests locally.
    # Do not list codecov here. It is only listed in .travis.yml because
    # we only run codecov during Travis CI builds.
    'coverage'
]

setup(
    name='hydrofunctions',
    version='0.1.7',
    description="A suite of convenience functions for exploring water data in a Jupyter Notebook.",
    long_description=readme + '\n\n' + history,
    author="<NAME>",
    author_email='<EMAIL>',
    url='https://github.com/mroberge/hydrofunctions',
    packages=find_packages(),
    package_dir={'hydrofunctions':
                 'hydrofunctions'},
    include_package_data=True,
    install_requires=requirements,
    license="MIT license",
    zip_safe=False,
    keywords='hydrofunctions hydrology USGS stream gauge water NWIS',
    project_urls={
            'Documentation': 'https://hydrofunctions.readthedocs.io',
            'Source': 'https://github.com/mroberge/hydrofunctions',
            'Latest': 'https://github.com/mroberge/hydrofunctions/tree/develop',
            'Tracker': 'https://github.com/mroberge/hydrofunctions/issues'
            },
    classifiers=[
        'Development Status :: 3 - Alpha',
        'Intended Audience :: Science/Research',
        'License :: OSI Approved :: MIT License',
        'Natural Language :: English',
        'Programming Language :: Python :: 3.6',
        'Programming Language :: Python :: 3.7',
        'Programming Language :: Python :: 3.8',
        'Topic :: Scientific/Engineering :: Information Analysis',
        'Topic :: Scientific/Engineering :: Visualization',
        'Topic :: Utilities'
    ],
    test_suite='tests',
    tests_require=test_requirements
)
{'fraction_non_alphanumeric': 0.1291562560061503, 'fraction_numerical': 0.008841053238516241, 'mean_word_length': 3.09441384736428, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 9, 'https://': 12, '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': '2379987', 'n_tokens_mistral': 1627, 'n_tokens_neox': 1553, 'n_words': 381}