https://forge.softwareheritage.org/source/swh-deposit.git
Raw File
Tip revision: fba01d2a6f10413f0c581c03e3b55ff36ca1ba78 authored by Antoine R. Dumont (@ardumont) on 23 October 2017, 09:31:39 UTC
New upstream version 0.0.23
Tip revision: fba01d2
setup.py
from setuptools import setup, find_packages


def parse_requirements():
    requirements = []
    for reqf in ('requirements.txt', 'requirements-swh.txt'):
        with open(reqf) as f:
            for line in f.readlines():
                line = line.strip()
                if not line or line.startswith('#'):
                    continue
                requirements.append(line)
    return requirements


setup(
    name='swh.deposit',
    description='Software Heritage Deposit Server',
    author='Software Heritage developers',
    author_email='swh-devel@inria.fr',
    url='https://forge.softwareheritage.org/source/swh-deposit/',
    packages=find_packages(),
    scripts=[],   # scripts to package
    install_requires=parse_requirements(),
    extras_require={
        'injection': ['swh.loader.core >= 0.0.19',
                      'swh.scheduler >= 0.0.17',
                      'requests'],
    },
    setup_requires=['vcversioner'],
    vcversioner={},
    include_package_data=True,
)
back to top