|
1 | 1 | """Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.""" |
2 | 2 |
|
3 | 3 | import setuptools |
| 4 | +import re |
4 | 5 |
|
5 | 6 | try: |
6 | | - with open("README.md", "r") as fh: |
| 7 | + with open('README.md', 'r') as fh: |
7 | 8 | long_description = fh.read() |
| 9 | + GITHUB_URL = 'https://github.com/speakeasy-api/speakeasy-client-sdk-python.git' |
| 10 | + # links on PyPI should have absolute URLs |
| 11 | + long_description = re.sub( |
| 12 | + r'(\[[^\]]+\]\()((?!https?:)[^\)]+)(\))', |
| 13 | + lambda m: m.group(1) + GITHUB_URL + '/blob/master/' + m.group(2) + m.group(3), |
| 14 | + long_description, |
| 15 | + ) |
8 | 16 | except FileNotFoundError: |
9 | | - long_description = "" |
| 17 | + long_description = '' |
10 | 18 |
|
11 | 19 | setuptools.setup( |
12 | | - name="speakeasy-client-sdk-python", |
13 | | - version="5.6.0", |
14 | | - author="Speakeasy", |
15 | | - description="Speakeasy API Client SDK for Python", |
16 | | - url="https://github.com/speakeasy-api/speakeasy-client-sdk-python.git", |
| 20 | + name='speakeasy-client-sdk-python', |
| 21 | + version='5.6.1', |
| 22 | + author='Speakeasy', |
| 23 | + description='Speakeasy API Client SDK for Python', |
| 24 | + url='https://github.com/speakeasy-api/speakeasy-client-sdk-python.git', |
17 | 25 | long_description=long_description, |
18 | | - long_description_content_type="text/markdown", |
19 | | - packages=setuptools.find_packages(where="src"), |
| 26 | + long_description_content_type='text/markdown', |
| 27 | + packages=setuptools.find_packages(where='src'), |
20 | 28 | install_requires=[ |
21 | 29 | "certifi>=2023.7.22", |
22 | 30 | "charset-normalizer>=3.2.0", |
|
40 | 48 | }, |
41 | 49 | package_dir={'': 'src'}, |
42 | 50 | python_requires='>=3.8', |
43 | | - package_data={"speakeasy-client-sdk-python": ["py.typed"]}, |
| 51 | + package_data={'speakeasy-client-sdk-python': ['py.typed']}, |
44 | 52 | ) |
0 commit comments