setup.py 2.02 KB
Newer Older
Sylvain Meignier's avatar
Origin  
Sylvain Meignier committed
1
2
3
#!/usr/bin/env python
# -*- coding: utf-8 -*-
 
Anthony Larcher's avatar
Anthony Larcher committed
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
from distutils.core import setup

# patch distutils if it can't cope with the "classifiers" or
# "download_url" keywords
from sys import version
if version < '2.2.3':
    from distutils.dist import DistributionMetadata
    DistributionMetadata.classifiers = None
    DistributionMetadata.download_url = None

def get_s4d_version():
    with open('s4d/__init__.py') as f:
        s = [l.rstrip() for l in f.readlines()]
        version = None
        for l in s:
            if '__version__' in l:
                version = l.split('=')[-1]
        if version is None:
            raise RuntimeError('Can not detect version from s4d/__init__.py')
        return eval(version)
Sylvain Meignier's avatar
Origin  
Sylvain Meignier committed
24
25
26

setup(
    name='s4d',
Anthony Larcher's avatar
Anthony Larcher committed
27
28
29
    version=get_s4d_version(),
    author='Sylvain MEIGNIER',
    author_email='s4d@univ-lemans.fr',
Anthony Larcher's avatar
Anthony Larcher committed
30
    packages=['s4d', 's4d.alien', 's4d.clustering', 's4d.gui'],
Florent Desnous 's avatar
Florent Desnous committed
31
    url='https://projets-lium.univ-lemans.fr/s4d/',
Anthony Larcher's avatar
Anthony Larcher committed
32
33
34
35
    download_url='http://pypi.python.org/pypi/s4d/',
    license='LGPL',
    platforms=['Linux, Windows', 'MacOS'],
    description='S4D: SIDEKIT for Diarization',
Anthony Larcher's avatar
Anthony Larcher committed
36
    long_description=open('README.rst').read(),
Anthony Larcher's avatar
Anthony Larcher committed
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
    install_requires=[
        "mock>=1.0.1",
        "nose>=1.3.4",
        "numpy>=1.13.3",
        "pyparsing >= 2.0.2",
        "python-dateutil >= 2.2",
        "scipy>=0.19.0",
        "six>=1.11.0",
        "matplotlib>=2.0.2",
        "torch >= 1.0",
        "torchvision",
        "PyYAML>=3.11",
        "h5py>=2.5.0",
        "pandas>=0.21.1",
        "PyAudio==0.2.11",
        "bottleneck>=1.3.1",
        "setuptools>=38.5.2",
        "sidekit>1.3",
        "scikit_learn==0.19.1",
        "sortedcontainers==1.5.9"
    ],
    package_data={'s4d': ['docs/*']},
    classifiers=[        "Programming Language :: Python :: 3",
Florent Desnous 's avatar
Florent Desnous committed
60
61
62
63
        "License :: OSI Approved :: GNU Library or Lesser General Public License (LGPL)",
        "Operating System :: OS Independent",
        "Development Status :: 5 - Production/Stable",
        "Topic :: Scientific/Engineering",
Anthony Larcher's avatar
Anthony Larcher committed
64
        ]
Florent Desnous 's avatar
Florent Desnous committed
65
)
Anthony Larcher's avatar
Anthony Larcher committed
66
67
68
69