<commit_before>
from setuptools import setup, find_packages
from pip.req import parse_requirements
import os


# --------------------------------------------------------------------------
# Setup package.

root_dir = os.path.dirname(__file__)


def read(*names):
    path = os.path.join(root_dir, *names)
    with open(path) as f:
        return f.read()


def get_version():
    version_string = read("VERSION.txt").strip()
    return version_string


def get_requirements():
    requirements = parse_requirements("requirements.txt")
    return [str(r.req) for r in requirements]


setup(
      name="sphinxcontrib-traceables",<commit_msg>Update use of parse_requirements() in setup.py<commit_after>
from setuptools import setup, find_packages
from pip.req import parse_requirements
from pip.download import PipSession
import os


# --------------------------------------------------------------------------
# Setup package.

root_dir = os.path.dirname(__file__)


def read(*names):
    path = os.path.join(root_dir, *names)
    with open(path) as f:
        return f.read()


def get_version():
    version_string = read("VERSION.txt").strip()
    return version_string


def get_requirements():
    requirements = parse_requirements("requirements.txt",
                                      session=PipSession())
    return [str(r.req) for r in requirements]


setup(
      name="sphinxcontrib-traceables",
{'fraction_non_alphanumeric': 0.198722498225692, 'fraction_numerical': 0.0, 'mean_word_length': 2.3333333333333335, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, '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': '840683', 'n_tokens_mistral': 393, 'n_tokens_neox': 383, 'n_words': 99}