From fac02306c5a92fba55ad105d51c0afa0d0a6b9db Mon Sep 17 00:00:00 2001 From: leondgarse Date: Fri, 20 Aug 2021 10:35:01 +0800 Subject: [PATCH] Add version.py --- keras_efficientnet_v2/version.py | 1 + setup.py | 49 ++++++++++++++++++++++++++------ 2 files changed, 41 insertions(+), 9 deletions(-) create mode 100644 keras_efficientnet_v2/version.py diff --git a/keras_efficientnet_v2/version.py b/keras_efficientnet_v2/version.py new file mode 100644 index 0000000..cd7ca49 --- /dev/null +++ b/keras_efficientnet_v2/version.py @@ -0,0 +1 @@ +__version__ = '1.0.1' diff --git a/setup.py b/setup.py index 39dc85e..16f5719 100644 --- a/setup.py +++ b/setup.py @@ -1,18 +1,49 @@ -from setuptools import find_packages -from setuptools import setup +""" Setup +""" +from setuptools import setup, find_packages +from codecs import open +from os import path +here = path.abspath(path.dirname(__file__)) + +# Get the long description from the README file +with open(path.join(here, 'README.md'), encoding='utf-8') as f: + long_description = f.read() + +exec(open('keras_efficientnet_v2/version.py').read()) setup( name="keras-efficientnet-v2", - version="1.0.0", + version=__version__, + description="(Unofficial) keras efficientnet v2", + long_description=long_description, + long_description_content_type='text/markdown', + url="https://github.com/leondgarse/keras_efficientnet_v2", author="Leondgarse", author_email="leondgarse@google.com", - url="https://github.com/leondgarse/keras_efficientnet_v2", - description="keras efficientnet v2", - long_description=open('README.md').read(), - long_description_content_type='text/markdown', - install_requires=[ - "tensorflow", + classifiers=[ + # How mature is this project? Common values are + # 3 - Alpha + # 4 - Beta + # 5 - Production/Stable + 'Development Status :: 4 - Beta', + 'Intended Audience :: Education', + 'Intended Audience :: Science/Research', + 'License :: OSI Approved :: Apache Software License', + 'Programming Language :: Python :: 3.6', + 'Programming Language :: Python :: 3.7', + 'Programming Language :: Python :: 3.8', + 'Topic :: Scientific/Engineering', + 'Topic :: Scientific/Engineering :: Artificial Intelligence', + 'Topic :: Software Development', + 'Topic :: Software Development :: Libraries', + 'Topic :: Software Development :: Libraries :: Python Modules', ], + + # Note that this is a string of words separated by whitespace, not a list. + keywords='tensorflow keras efficientnet v2 pretrained models', packages=find_packages(), + include_package_data=True, + install_requires=["tensorflow"], + python_requires='>=3.6', license="Apache 2.0", )