diff --git a/setup.py b/setup.py index f2dd8a53..1f5a5414 100644 --- a/setup.py +++ b/setup.py @@ -10,6 +10,8 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git """ +import pathlib + from setuptools import setup, find_packages # noqa: H301 NAME = "fingerprint-pro-server-api-sdk" @@ -29,12 +31,17 @@ ] +here = pathlib.Path(__file__).parent.resolve() +long_description = (here / 'README.md').read_text(encoding='utf-8') + setup( name=NAME, version=VERSION, description="Fingerprint Pro Server API", - long_description="file: README.md, CHANGELOG.md, LICENSE", + long_description=long_description, + long_description_content_type='text/markdown', license="MIT", + license_files=["LICENSE"], author_email="support@fingerprint.com", url="https://github.com/fingerprintjs/fingerprint-pro-server-api-python-sdk", keywords=["Swagger", "Fingerprint Pro Server API"], diff --git a/template/setup.mustache b/template/setup.mustache index ccac7533..0d9ad663 100644 --- a/template/setup.mustache +++ b/template/setup.mustache @@ -2,6 +2,8 @@ {{>partial_header}} +import pathlib + from setuptools import setup, find_packages # noqa: H301 NAME = "{{{projectName}}}" @@ -30,12 +32,17 @@ REQUIRES.append("aiohttp") REQUIRES.append("tornado") {{/tornado}} +here = pathlib.Path(__file__).parent.resolve() +long_description = (here / 'README.md').read_text(encoding='utf-8') + setup( name=NAME, version=VERSION, description="{{appName}}", - long_description="file: README.md, CHANGELOG.md, LICENSE", + long_description=long_description, + long_description_content_type='text/markdown', license="MIT", + license_files=["LICENSE"], author_email="{{infoEmail}}", url="{{packageUrl}}", keywords=["Swagger", "{{appName}}"],