[packaging] 0.5.8 update to PyPi

This commit is contained in:
Maxime Alves LIRMM 2021-09-01 15:59:47 +02:00
parent 43b7fe21df
commit 844f6a8f14
3 changed files with 22 additions and 10 deletions

View File

@ -1,5 +1,5 @@
#!/usr/bin/env python3
__version__ = '0.5.7'
__version__ = '0.5.8'
def version():
return f'HalfAPI version:{__version__}'

View File

@ -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",
}
)