From 844f6a8f14b7291ea8b60a9b0d2731d3c6210448 Mon Sep 17 00:00:00 2001 From: Maxime Alves LIRMM Date: Wed, 1 Sep 2021 15:59:47 +0200 Subject: [PATCH] [packaging] 0.5.8 update to PyPi --- LICENSE => LICENSE.txt | 0 halfapi/__init__.py | 2 +- setup.py | 30 +++++++++++++++++++++--------- 3 files changed, 22 insertions(+), 10 deletions(-) rename LICENSE => LICENSE.txt (100%) diff --git a/LICENSE b/LICENSE.txt similarity index 100% rename from LICENSE rename to LICENSE.txt diff --git a/halfapi/__init__.py b/halfapi/__init__.py index 9a98085..3666358 100644 --- a/halfapi/__init__.py +++ b/halfapi/__init__.py @@ -1,5 +1,5 @@ #!/usr/bin/env python3 -__version__ = '0.5.7' +__version__ = '0.5.8' def version(): return f'HalfAPI version:{__version__}' diff --git a/setup.py b/setup.py index 9bbfdd6..146ec16 100755 --- a/setup.py +++ b/setup.py @@ -8,6 +8,9 @@ from setuptools import setup, find_packages import pathlib +here = pathlib.Path(__file__).parent.resolve() +long_description = (here / 'README.md').read_text(encoding='utf-8') + def get_version(package): """ Return package version as listed in `__version__` in `init.py`. @@ -16,13 +19,6 @@ def get_version(package): return re.search("__version__ = ['\"]([^'\"]+)['\"]", f.read()).group(1) -def get_long_description(): - """ - Return the README. - """ - here = pathlib.Path(__file__).parent.resolve() - long_description = (here / 'README.md').read_text(encoding='utf-8') - def get_packages(package): """ Return root package and all sub-packages. @@ -38,10 +34,14 @@ setup( name=module_name, version=get_version(module_name), url="https://github.com/halfAPI/halfapi", - long_description=get_long_description(), + description="Core to write deep APIs using a module's tree", + author="Maxime ALVES", + author_email="maxime@freepoteries.fr", + license="GPLv3", + long_description=long_description, long_description_content_type="text/markdown", packages=get_packages(module_name), - python_requires=">=3.7", + python_requires=">=3.8", install_requires=[ "PyJWT>=2.0.1", "starlette>=0.14,<0.15", @@ -51,6 +51,14 @@ setup( "pyyaml>=5.3.1,<6", "timing-asgi>=0.2.1,<1" ], + classifiers=[ + "Development Status :: 3 - Alpha", + "License :: OSI Approved :: GNU General Public License v3 (GPLv3)", + "Intended Audience :: Developers", + "Topic :: Software Development :: Libraries :: Application Frameworks", + "Programming Language :: Python :: 3.8", + "Programming Language :: Python :: 3.9", + ], extras_require={ "tests":[ "pytest", @@ -63,5 +71,9 @@ setup( "console_scripts":[ "halfapi=halfapi.cli.cli:cli" ] + }, + keywords="web-api development boilerplate", + project_urls={ + "Source": "https://github.com/halfAPI/halfapi", } )