github.com/treeverse/lakefs@v1.24.1-0.20240520134607-95648127bfb0/clients/python-legacy/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  REQUIRES = [
    18    "urllib3 >= 1.25.3",
    19    "python-dateutil",
    20  {{#asyncio}}
    21    "aiohttp >= 3.0.0",
    22  {{/asyncio}}
    23  {{#tornado}}
    24    "tornado>=4.2,<5",
    25  {{/tornado}}
    26  {{#hasHttpSignatureMethods}}
    27    "pem>=19.3.0",
    28    "pycryptodome>=3.9.0",
    29  {{/hasHttpSignatureMethods}}
    30  ]
    31  
    32  with open('README.md') as f:
    33      import re
    34      # replace relative links with links to the docs:
    35      doc_version = '.'.join(f'v{VERSION}'.split('.')[:2])
    36      long_description = re.sub(r'(\[[*a-zA-Z_]*]\()docs/([A-Za-z0-9]*)\.md',
    37                                rf'\1https://pydocs.lakefs.io/{doc_version}/docs/\2.html',
    38                                f.read())
    39  
    40  setup(
    41      name=NAME,
    42      version=VERSION,
    43      description="{{appName}}",
    44      author="{{infoName}}{{^infoName}}OpenAPI Generator community{{/infoName}}",
    45      author_email="{{infoEmail}}{{^infoEmail}}team@openapitools.org{{/infoEmail}}",
    46      url="{{packageUrl}}",
    47      keywords=["OpenAPI", "OpenAPI-Generator", "{{{appName}}}"],
    48      python_requires=">=3.6",
    49      install_requires=REQUIRES,
    50      packages=find_packages(exclude=["test", "tests"]),
    51      include_package_data=True,
    52      {{#licenseInfo}}license="{{.}}",
    53      {{/licenseInfo}}long_description=long_description,
    54      long_description_content_type='text/markdown'
    55  )
    56  {{/-last}}
    57  {{/apis}}
    58  {{/apiInfo}}