<commit_before>#!/usr/bin/env python
import os.path as osp
import re
from setuptools import setup, find_packages
import sys


def get_script_path():
    return osp.dirname(osp.realpath(sys.argv[0]))


def read(*parts):
    return open(osp.join(get_script_path(), *parts)).read()


def find_version(*parts):
    vers_file = read(*parts)
    match = re.search(r'^__version__ = "(\d+\.\d+\.\d+)"', vers_file, re.M)
    if match is not None:
        return match.group(1)
    raise RuntimeError("Unable to find version string.")


setup(name="karabo_data",
      version=find_version("karabo_data", "__init__.py"),
      author="European XFEL GmbH",
      author_email="<EMAIL>",
      maintainer="<NAME>",
      url="https://github.com/European-XFEL/karabo_data",
      description="Tools to read and analyse data from European XFEL ",
      long_description=read("README.md"),
      long_description_content_type='text/markdown',
      license="BSD-3-Clause",
      packages=find_packages(),
      entry_points={
          "console_scripts": [
              "lsxfel = karabo_data.lsxfel:main",
              "karabo-bridge-serve-files = karabo_data.export:main",
              "karabo-data-validate = karabo_data.validation:main",
          ],
      },
      install_requires=[
          'cfelpyutils',
          'fabio',
          'h5py>=2.7.1',
          'karabo-bridge',
          'matplotlib',<commit_msg>Work around missing dependency from cfelpyutils<commit_after>#!/usr/bin/env python
import os.path as osp
import re
from setuptools import setup, find_packages
import sys


def get_script_path():
    return osp.dirname(osp.realpath(sys.argv[0]))


def read(*parts):
    return open(osp.join(get_script_path(), *parts)).read()


def find_version(*parts):
    vers_file = read(*parts)
    match = re.search(r'^__version__ = "(\d+\.\d+\.\d+)"', vers_file, re.M)
    if match is not None:
        return match.group(1)
    raise RuntimeError("Unable to find version string.")


setup(name="karabo_data",
      version=find_version("karabo_data", "__init__.py"),
      author="European XFEL GmbH",
      author_email="<EMAIL>",
      maintainer="<NAME>",
      url="https://github.com/European-XFEL/karabo_data",
      description="Tools to read and analyse data from European XFEL ",
      long_description=read("README.md"),
      long_description_content_type='text/markdown',
      license="BSD-3-Clause",
      packages=find_packages(),
      entry_points={
          "console_scripts": [
              "lsxfel = karabo_data.lsxfel:main",
              "karabo-bridge-serve-files = karabo_data.export:main",
              "karabo-data-validate = karabo_data.validation:main",
          ],
      },
      install_requires=[
          'cfelpyutils',
          'fabio',
          # cfelpyutils 0.91 requires future but doesn't specify it.
          # We can remove this when it's fixed in cfelpyutils.
          # https://github.com/ondateam/cfelpyutils/pull/3
          'future',
          'h5py>=2.7.1',
          'karabo-bridge',
          'matplotlib',
{'fraction_non_alphanumeric': 0.13893429225237006, 'fraction_numerical': 0.005884275907159202, 'mean_word_length': 2.8059701492537314, 'pattern_counts': {'":': 2, '<': 7, '<?xml version=': 0, '>': 9, 'https://': 3, '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': '690057', 'n_tokens_mistral': 1006, 'n_tokens_neox': 959, 'n_words': 187}