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