|
1 | | -#!/usr/bin/env python |
2 | | - |
3 | | -# ------------------------------------------------------------------------- |
| 1 | +# coding=utf-8 |
| 2 | +# -------------------------------------------------------------------------- |
4 | 3 | # Copyright (c) Microsoft Corporation. All rights reserved. |
5 | | -# Licensed under the MIT License. See License.txt in the project root for |
6 | | -# license information. |
| 4 | +# Licensed under the MIT License. See License.txt in the project root for license information. |
| 5 | +# Code generated by Microsoft (R) AutoRest Code Generator. |
| 6 | +# Changes may cause incorrect behavior and will be lost if the code is regenerated. |
7 | 7 | # -------------------------------------------------------------------------- |
8 | 8 |
|
| 9 | + |
| 10 | +import os |
9 | 11 | import re |
10 | | -import os.path |
11 | | -from io import open |
12 | | -from setuptools import find_packages, setup |
| 12 | +from setuptools import setup, find_packages |
| 13 | + |
13 | 14 |
|
14 | | -# Change the PACKAGE_NAME only to change folder and different name |
15 | 15 | PACKAGE_NAME = "azure-mgmt-test" |
16 | | -PACKAGE_PPRINT_NAME = "Test Management" |
| 16 | +PACKAGE_PPRINT_NAME = "Azure Mgmt Test" |
17 | 17 |
|
18 | 18 | # a-b-c => a/b/c |
19 | 19 | package_folder_path = PACKAGE_NAME.replace("-", "/") |
20 | | -# a-b-c => a.b.c |
21 | | -namespace_name = PACKAGE_NAME.replace("-", ".") |
22 | 20 |
|
23 | 21 | # Version extraction inspired from 'requests' |
24 | | -with open( |
25 | | - ( |
26 | | - os.path.join(package_folder_path, "version.py") |
27 | | - if os.path.exists(os.path.join(package_folder_path, "version.py")) |
28 | | - else os.path.join(package_folder_path, "_version.py") |
29 | | - ), |
30 | | - "r", |
31 | | -) as fd: |
| 22 | +with open(os.path.join(package_folder_path, "_version.py"), "r") as fd: |
32 | 23 | version = re.search(r'^VERSION\s*=\s*[\'"]([^\'"]*)[\'"]', fd.read(), re.MULTILINE).group(1) |
33 | 24 |
|
34 | 25 | if not version: |
35 | 26 | raise RuntimeError("Cannot find version information") |
36 | 27 |
|
| 28 | + |
37 | 29 | setup( |
38 | 30 | name=PACKAGE_NAME, |
39 | 31 | version=version, |
40 | | - description="Microsoft Azure {} Client Library for Python".format(PACKAGE_PPRINT_NAME), |
| 32 | + description="Microsoft Corporation {} Client Library for Python".format(PACKAGE_PPRINT_NAME), |
| 33 | + long_description=open("README.md", "r").read(), |
41 | 34 | long_description_content_type="text/markdown", |
42 | 35 | license="MIT License", |
43 | 36 | author="Microsoft Corporation", |
44 | 37 | author_email="azpysdkhelp@microsoft.com", |
45 | | - url="https://github.com/Azure/azure-sdk-for-python", |
46 | | - keywords="azure, azure sdk", # update with search keywords relevant to the azure service / product |
| 38 | + url="https://github.com/Azure/azure-sdk-for-python/tree/main/sdk", |
| 39 | + keywords="azure, azure sdk", |
47 | 40 | classifiers=[ |
48 | 41 | "Development Status :: 4 - Beta", |
49 | 42 | "Programming Language :: Python", |
50 | 43 | "Programming Language :: Python :: 3 :: Only", |
51 | 44 | "Programming Language :: Python :: 3", |
52 | | - "Programming Language :: Python :: 3.8", |
53 | 45 | "Programming Language :: Python :: 3.9", |
54 | 46 | "Programming Language :: Python :: 3.10", |
55 | 47 | "Programming Language :: Python :: 3.11", |
56 | 48 | "Programming Language :: Python :: 3.12", |
| 49 | + "Programming Language :: Python :: 3.13", |
57 | 50 | "License :: OSI Approved :: MIT License", |
58 | 51 | ], |
59 | 52 | zip_safe=False, |
|
66 | 59 | ] |
67 | 60 | ), |
68 | 61 | include_package_data=True, |
| 62 | + package_data={ |
| 63 | + "azure.mgmt.test": ["py.typed"], |
| 64 | + }, |
69 | 65 | install_requires=[ |
70 | | - "isodate>=0.6.1", |
| 66 | + "msrest>=0.7.1", |
| 67 | + "azure-mgmt-core>=1.6.0", |
71 | 68 | "typing-extensions>=4.6.0", |
72 | | - "azure-common>=1.1", |
73 | | - "azure-mgmt-core>=1.3.2", |
74 | 69 | ], |
75 | | - python_requires=">=3.8", |
| 70 | + python_requires=">=3.9", |
76 | 71 | ) |
0 commit comments