Ejemplo n.º 1
0
from setup_support import get_version


def findsome(subdir, extensions):
    """Find files under subdir having specified extensions

    Leading directory (reproman) gets stripped
    """
    return [
        f.split(pathsep, 1)[1] for f in findall(opj('reproman', subdir))
        if splitext(f)[-1].lstrip('.') in extensions
    ]


# reproman version to be installed
version = get_version()

# Only recentish versions of find_packages support include
# reproman_pkgs = find_packages('.', include=['reproman*'])
# so we will filter manually for maximal compatibility
reproman_pkgs = [
    pkg for pkg in find_packages('.') if pkg.startswith('reproman')
]

requires = {
    'core': [
        'appdirs',
        'attrs>=16.3.0',
        'etelemetry>=0.2.0',
        'humanize',
        'pyyaml',
Ejemplo n.º 2
0
    setup_entry_points,
)


def findsome(subdir, extensions):
    """Find files under subdir having specified extensions

    Leading directory (datalad) gets stripped
    """
    return [
        f.split(pathsep, 1)[1] for f in findall(opj('datalad', subdir))
        if splitext(f)[-1].lstrip('.') in extensions
    ]

# datalad version to be installed
version = get_version()

# Only recentish versions of find_packages support include
# datalad_pkgs = find_packages('.', include=['datalad*'])
# so we will filter manually for maximal compatibility
datalad_pkgs = [pkg for pkg in find_packages('.') if pkg.startswith('datalad')]

requires = {
    'core': [
        'appdirs',
        'chardet>=3.0.4',      # rarely used but small/omnipresent
        'colorama; platform_system=="Windows"',
        'distro; python_version >= "3.8"',
        'GitPython>=2.1.8',
        'iso8601',
        'humanize',