github.com/treeverse/lakefs@v1.24.1-0.20240520134607-95648127bfb0/clients/python/setup.py (about)

     1  """
     2      lakeFS API
     3  
     4      lakeFS HTTP API
     5  
     6      The version of the OpenAPI document: 1.0.0
     7      Contact: services@treeverse.io
     8      Generated by OpenAPI Generator (https://openapi-generator.tech)
     9  
    10      Do not edit the class manually.
    11  """  # noqa: E501
    12  
    13  
    14  from setuptools import setup, find_packages  # noqa: H301
    15  
    16  NAME = "lakefs-sdk"
    17  VERSION = "0.1.0-SNAPSHOT"
    18  # To install the library, run the following
    19  #
    20  # python setup.py install
    21  #
    22  # prerequisite: setuptools
    23  # http://pypi.python.org/pypi/setuptools
    24  
    25  PYTHON_REQUIRES = ">=3.7"
    26  REQUIRES = [
    27      "urllib3 >= 1.25.3, < 2.1.0",
    28      "python-dateutil",
    29      "pydantic >= 1.10.5",
    30      "aenum"
    31  ]
    32  
    33  with open('README.md') as f:
    34      import re
    35      # replace relative links with links to the docs:
    36      doc_version = '.'.join(f'v{VERSION}'.split('.')[:2])
    37      long_description = re.sub(r'(\[[*a-zA-Z_]*]\()docs/([A-Za-z0-9]*)\.md',
    38                         rf'\1https://pydocs-sdk.lakefs.io/{doc_version}/docs/\2.html',
    39                         f.read())
    40  
    41  setup(
    42      name=NAME,
    43      version=VERSION,
    44      description="lakeFS API",
    45      author="Treeverse",
    46      author_email="services@treeverse.io",
    47      url="https://github.com/treeverse/lakeFS/tree/master/clients/python",
    48      keywords=["OpenAPI", "OpenAPI-Generator", "lakeFS API"],
    49      python_requires=">=3.6",
    50      install_requires=REQUIRES,
    51      packages=find_packages(exclude=["test", "tests"]),
    52      include_package_data=True,
    53      license="Apache 2.0",
    54      long_description=long_description,
    55      long_description_content_type='text/markdown'
    56  )