<commit_before># -*- coding: utf-8 -*-
#
# Copyright © 2012 <NAME>
# Licensed under the terms of the MIT License
# (see winpython/__init__.py for details)

"""
WinPython
=========

The WinPython distribution tools (wppm, ...)
"""

# for wheels creation
import setuptools

from distutils.core import setup
import os
import os.path as osp


def get_package_data(name, extlist):
    """Return data files for package *name* with extensions in *extlist*"""
    flist = []
    # Workaround to replace os.path.relpath (not available until Python 2.6):
    offset = len(name) + len(os.pathsep)
    for dirpath, _dirnames, filenames in os.walk(name):
        for fname in filenames:
            if (
                not fname.startswith('.')
                and osp.splitext(fname)[1] in extlist
            ):
                flist.append(
                    osp.join(dirpath, fname)[offset:]
                )
    return flist


def get_subpackages(name):
    """Return subpackages of package *name*"""
    splist = []
    for dirpath, _dirnames, _filenames in os.walk(name):
        if osp.isfile(osp.join(dirpath, '__init__.py')):
            splist.append(".".join(dirpath.split(os.sep)))
    return splist


NAME = LIBNAME = 'winpython'
from winpython import __version__, __project_url__

PROJECT_NAME = 'WinPython'

setup(
    name=NAME,
    version=__version__,
    description='%s distribution tools, including WPPM'
    % PROJECT_NAME,
    long_description="""%s is a portable distribution of the Python programming language
for Windows. It is a full-featured Python-based scientific environment, :
including a package manager, WPPM."""
    % PROJECT_NAME,
    download_url='%s/files/%s-%s.zip'
    % (__project_url__, NAME, __version__),
    author="<NAME>",
    author_email='<EMAIL>',
    url=__project_url__,
    license='MIT',<commit_msg>remove osp from setup.py<commit_after># -*- coding: utf-8 -*-
#
# Copyright © 2012 <NAME>
# Licensed under the terms of the MIT License
# (see winpython/__init__.py for details)

"""
WinPython
=========

The WinPython distribution tools (wppm, ...)
"""

# for wheels creation
import setuptools

from distutils.core import setup
import os
# import os.path as osp
from pathlib import Path

def get_package_data(name, extlist):
    """Return data files for package *name* with extensions in *extlist*"""
    flist = []
    # Workaround to replace os.path.relpath (not available until Python 2.6):
    offset = len(name) + len(os.pathsep)
    for dirpath, _dirnames, filenames in os.walk(name):
        for fname in filenames:
            if (
                not fname.startswith('.')
                # and osp.splitext(fname)[1] in extlist
                and Path(fname).suffix in extlist
            ):
                flist.append(
                    # osp.join(dirpath, fname)[offset:]
                    str(Path(dirpath) / fname)[offset:]
                )
    return flist


def get_subpackages(name):
    """Return subpackages of package *name*"""
    splist = []
    for dirpath, _dirnames, _filenames in os.walk(name):
        # if osp.isfile(osp.join(dirpath, '__init__.py')):
        # if osp.isfile(str(Path(dirpath) / '__init__.py')):
        if (Path(dirpath) / '__init__.py').is_file():
            splist.append(".".join(dirpath.split(os.sep)))
    return splist


NAME = LIBNAME = 'winpython'
from winpython import __version__, __project_url__

PROJECT_NAME = 'WinPython'

setup(
    name=NAME,
    version=__version__,
    description='%s distribution tools, including WPPM'
    % PROJECT_NAME,
    long_description="""%s is a portable distribution of the Python programming language
for Windows. It is a full-featured Python-based scientific environment, :
including a package manager, WPPM."""
    % PROJECT_NAME,
    download_url='%s/files/%s-%s.zip'
    % (__project_url__, NAME, __version__),
    author="<NAME>",
    author_email='<EMAIL>',
    url=__project_url__,
    license='MIT',
{'fraction_non_alphanumeric': 0.1236722306525038, 'fraction_numerical': 0.004046535154274153, 'mean_word_length': 2.908102766798419, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '6374294', 'n_tokens_mistral': 1264, 'n_tokens_neox': 1219, 'n_words': 338}