-
Notifications
You must be signed in to change notification settings - Fork 25
/
setup.py
62 lines (53 loc) · 2.23 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
import os
import re
from setuptools import setup, find_packages
current_path = os.path.abspath(os.path.dirname(__file__))
def read_file(*parts):
with open(os.path.join(current_path, *parts), encoding='utf-8') as reader:
return reader.read()
def get_requirements(*parts):
with open(os.path.join(current_path, *parts), encoding='utf-8') as reader:
return list(map(lambda x: x.strip(), reader.readlines()))
def find_version(*file_paths):
version_file = read_file(*file_paths)
version_matched = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]",
version_file, re.M)
if version_matched:
return version_matched.group(1)
raise RuntimeError('Unable to find version')
setup(
name="keras-adamw",
version=find_version("keras_adamw", "__init__.py"),
packages=find_packages(exclude=['tests']),
url="https://github.com/OverLordGoldDragon/keras-adamw",
license='MIT',
author="OverLordGoldDragon",
author_email="16495490+OverLordGoldDragon@users.noreply.github.com",
description=("Keras implementation of AdamW, SGDW, NadamW, "
"Warm Restarts, and Learning Rate multipliers"),
long_description=read_file('README.md'),
long_description_content_type='text/markdown',
keywords=(
"tensorflow keras optimizers adamw adamwr nadam sgd "
"learning-rate-multipliers warm-restarts"
),
install_requires=get_requirements('requirements.txt'),
zip_safe=True,
classifiers=[
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Intended Audience :: Developers",
"Intended Audience :: Education",
"Intended Audience :: Information Technology",
"Intended Audience :: Science/Research",
"Topic :: Utilities",
"Topic :: Scientific/Engineering",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: Scientific/Engineering :: Information Analysis",
"Topic :: Software Development",
"Topic :: Software Development :: Libraries :: Python Modules",
],
)