Skip to content

Commit 02e2ba3

Browse files
authored
{CI} Update setup.py for build (#66)
* update setup.py for build * fix build pipeline * use new ubuntu 2204 pool
1 parent 087e3e8 commit 02e2ba3

File tree

2 files changed

+22
-36
lines changed

2 files changed

+22
-36
lines changed

azure-pipeline.yml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,17 @@ jobs:
1717
timeoutInMinutes: 10
1818

1919
pool:
20-
name: 'pool-ubuntu-2004'
20+
name: 'pool-ubuntu-2204'
2121
strategy:
2222
matrix:
23-
Python37:
24-
python.version: '3.7'
25-
Python38:
26-
python.version: '3.8'
23+
Python39:
24+
python.version: '3.9'
2725
Python310:
2826
python.version: '3.10'
27+
Python311:
28+
python.version: '3.11'
29+
Python312:
30+
python.version: '3.12'
2931
steps:
3032
- task: UsePythonVersion@0
3133
displayName: 'Use Python $(python.version)'
@@ -40,12 +42,12 @@ jobs:
4042
- job: BuildPythonWheel
4143
condition: succeeded()
4244
pool:
43-
name: 'pool-ubuntu-2004'
45+
name: 'pool-ubuntu-2204'
4446
steps:
4547
- task: UsePythonVersion@0
46-
displayName: Use Python 3.7
48+
displayName: Use Python 3.12
4749
inputs:
48-
versionSpec: 3.7
50+
versionSpec: 3.12
4951
- bash: |
5052
set -ev
5153

setup.py

Lines changed: 12 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,9 @@
11
#!/usr/bin/env python
22

3-
#-------------------------------------------------------------------------
4-
# Copyright (c) Microsoft. All rights reserved.
5-
#
6-
# Licensed under the Apache License, Version 2.0 (the "License");
7-
# you may not use this file except in compliance with the License.
8-
# You may obtain a copy of the License at
9-
# http://www.apache.org/licenses/LICENSE-2.0
10-
#
11-
# Unless required by applicable law or agreed to in writing, software
12-
# distributed under the License is distributed on an "AS IS" BASIS,
13-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14-
# See the License for the specific language governing permissions and
15-
# limitations under the License.
16-
#--------------------------------------------------------------------------
3+
# --------------------------------------------------------------------------------------------
4+
# Copyright (c) Microsoft Corporation. All rights reserved.
5+
# Licensed under the MIT License. See License.txt in the project root for license information.
6+
# --------------------------------------------------------------------------------------------
177

188
from setuptools import find_packages, setup
199
import sys
@@ -43,18 +33,15 @@
4333
author_email='[email protected]',
4434
url='https://github.com/Azure/azure-multiapi-storage-python',
4535
classifiers=[
46-
'Development Status :: 4 - Beta',
36+
'Development Status :: 5 - Production/Stable',
37+
'Intended Audience :: Developers',
4738
'Programming Language :: Python',
48-
'Programming Language :: Python :: 2',
49-
'Programming Language :: Python :: 2.7',
5039
'Programming Language :: Python :: 3',
51-
'Programming Language :: Python :: 3.3',
52-
'Programming Language :: Python :: 3.4',
53-
'Programming Language :: Python :: 3.5',
54-
'Programming Language :: Python :: 3.6',
55-
'Programming Language :: Python :: 3.7',
56-
'Programming Language :: Python :: 3.8',
57-
'License :: OSI Approved :: Apache Software License',
40+
'Programming Language :: Python :: 3.9',
41+
'Programming Language :: Python :: 3.10',
42+
'Programming Language :: Python :: 3.11',
43+
'Programming Language :: Python :: 3.12',
44+
'License :: OSI Approved :: MIT License',
5845
],
5946
zip_safe=False,
6047
packages=find_packages(exclude=["azure"]),
@@ -66,8 +53,5 @@
6653
"msrest>=0.6.18",
6754
"cryptography>=2.1.4"
6855
],
69-
extras_require={
70-
':python_version=="2.7"': ['futures'],
71-
':python_version<"3.0"': ['azure-nspkg'],
72-
},
56+
python_requires=">=3.9.0"
7357
)

0 commit comments

Comments
 (0)