forked from OverLordGoldDragon/kymatio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
88 lines (77 loc) · 3.47 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import csv
import importlib
import os
import shutil
import sys
from setuptools import setup, find_packages
# Constants
DISTNAME = 'kymatio'
DESCRIPTION = 'Wavelet scattering transforms in Python with GPU acceleration'
URL = 'https://www.kymat.io'
LICENSE = 'BSD-3-Clause'
# Parse description
with open('README.md', encoding='utf8') as f:
README = f.read().split('\n')
LONG_DESCRIPTION = '\n'.join([x for x in README if not x[:3]=='[!['])
# Parse version.py
kymatio_version_spec = importlib.util.spec_from_file_location(
'kymatio_version', 'kymatio/version.py')
kymatio_version_module = importlib.util.module_from_spec(kymatio_version_spec)
kymatio_version_spec.loader.exec_module(kymatio_version_module)
VERSION = kymatio_version_module.version
# Parse requirements.txt
with open('requirements.txt', 'r') as f:
REQUIREMENTS = f.read().split('\n')
setup_info = dict(
# Metadata
name=DISTNAME,
version=VERSION,
author=('Edouard Oyallon, Eugene Belilovsky, Sergey Zagoruyko, '
'Michael Eickenberg, Mathieu Andreux, Georgios Exarchakis, '
'Louis Thiry, Vincent Lostanlen, Joakim Andén, '
'Tomás Angles, Gabriel Huang, Roberto Leonarduzzi'),
author_email=('[email protected], [email protected], '
url=URL,
download_url='https://github.com/kymatio/kymatio/releases',
project_urls={
'Documentation': 'https://www.kymat.io/codereference.html',
'Source': 'https://github.com/kymatio/kymatio/',
'Tracker': 'https://github.com/kymatio/kymatio/issues',
'Authors': 'https://github.com/kymatio/kymatio/blob/master/AUTHORS.md'
},
classifiers=['Intended Audience :: Education',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: BSD License',
'Natural Language :: English',
'Operating System :: MacOS',
'Operating System :: POSIX :: Linux',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Topic :: Multimedia :: Graphics :: 3D Modeling',
'Topic :: Multimedia :: Sound/Audio :: Analysis',
'Topic :: Scientific/Engineering :: Artificial Intelligence',
'Topic :: Scientific/Engineering :: Chemistry',
'Topic :: Scientific/Engineering :: Image Recognition',
'Topic :: Scientific/Engineering :: Information Analysis',
'Topic :: Scientific/Engineering :: Mathematics',
'Topic :: Scientific/Engineering :: Physics',
'Topic :: Software Development :: Libraries :: Python Modules',
],
description=DESCRIPTION,
long_description=LONG_DESCRIPTION,
long_description_content_type='text/markdown',
python_requires='>=3.5',
license=LICENSE,
packages=find_packages(exclude=('test',)),
install_requires=REQUIREMENTS,
zip_safe=True,
)
setup(**setup_info)