github.com/treeverse/lakefs@v1.24.1-0.20240520134607-95648127bfb0/clients/python/templates/setup.mustache (about) 1 {{>partial_header}} 2 3 from setuptools import setup, find_packages # noqa: H301 4 5 NAME = "{{{projectName}}}" 6 VERSION = "{{packageVersion}}" 7 {{#apiInfo}} 8 {{#apis}} 9 {{#-last}} 10 # To install the library, run the following 11 # 12 # python setup.py install 13 # 14 # prerequisite: setuptools 15 # http://pypi.python.org/pypi/setuptools 16 17 PYTHON_REQUIRES = ">=3.7" 18 REQUIRES = [ 19 "urllib3 >= 1.25.3, < 2.1.0", 20 "python-dateutil", 21 "pydantic >= 1.10.5", 22 "aenum" 23 ] 24 25 with open('README.md') as f: 26 import re 27 # replace relative links with links to the docs: 28 doc_version = '.'.join(f'v{VERSION}'.split('.')[:2]) 29 long_description = re.sub(r'(\[[*a-zA-Z_]*]\()docs/([A-Za-z0-9]*)\.md', 30 rf'\1https://pydocs-sdk.lakefs.io/{doc_version}/docs/\2.html', 31 f.read()) 32 33 setup( 34 name=NAME, 35 version=VERSION, 36 description="{{appName}}", 37 author="{{infoName}}{{^infoName}}OpenAPI Generator community{{/infoName}}", 38 author_email="{{infoEmail}}{{^infoEmail}}team@openapitools.org{{/infoEmail}}", 39 url="{{packageUrl}}", 40 keywords=["OpenAPI", "OpenAPI-Generator", "{{{appName}}}"], 41 python_requires=">=3.6", 42 install_requires=REQUIRES, 43 packages=find_packages(exclude=["test", "tests"]), 44 include_package_data=True, 45 {{#licenseInfo}}license="{{.}}", 46 {{/licenseInfo}}long_description=long_description, 47 long_description_content_type='text/markdown' 48 ) 49 {{/-last}} 50 {{/apis}} 51 {{/apiInfo}}