Skip to content

Commit 269f2a2

Browse files
committed
Init
1 parent 95f16fb commit 269f2a2

File tree

10 files changed

+8
-64
lines changed

10 files changed

+8
-64
lines changed

scripts/release/pypi/build.sh

+2-3
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ echo "Branch $branch"
1717
echo "Search setup files from `pwd`."
1818
python --version
1919

20-
pip install -U pip setuptools wheel
20+
pip install -U pip setuptools wheel build
2121
pip list
2222

2323
script_dir=`cd $(dirname $BASH_SOURCE[0]); pwd`
@@ -28,7 +28,6 @@ fi
2828

2929
for setup_file in $(find src -name 'setup.py' | grep -v azure-cli-testsdk); do
3030
pushd `dirname $setup_file`
31-
python setup.py bdist_wheel -d $BUILD_STAGINGDIRECTORY
32-
python setup.py sdist -d $BUILD_STAGINGDIRECTORY
31+
python -m build . -o $BUILD_STAGINGDIRECTORY
3332
popd
3433
done

src/azure-cli-core/azure/__init__.py

-5
This file was deleted.

src/azure-cli-core/azure/cli/__init__.py

-5
This file was deleted.

src/azure-cli-core/setup.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# --------------------------------------------------------------------------------------------
77

88
from codecs import open
9-
from setuptools import setup, find_packages
9+
from setuptools import setup, find_namespace_packages
1010

1111
VERSION = "2.69.0"
1212

@@ -80,7 +80,7 @@
8080
url='https://github.com/Azure/azure-cli',
8181
zip_safe=False,
8282
classifiers=CLASSIFIERS,
83-
packages=find_packages(exclude=["*.tests", "*.tests.*", "tests.*", "tests", "azure", "azure.cli"]),
83+
packages=find_namespace_packages(exclude=["*.tests", "*.tests.*", "tests.*", "tests"]),
8484
install_requires=DEPENDENCIES,
8585
python_requires='>=3.9.0',
8686
package_data={'azure.cli.core': ['auth/landing_pages/*.html']}

src/azure-cli/azure/__init__.py

-5
This file was deleted.

src/azure-cli/azure/cli/__init__.py

-5
This file was deleted.

src/azure-cli/azure/cli/command_modules/__init__.py

Whitespace-only changes.

src/azure-cli/azure_cli_bdist_wheel.py

-25
This file was deleted.

src/azure-cli/setup.cfg

-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +0,0 @@
1-
[build_py]
2-
extra_build_source_files=azure.cli,__main__,azure/cli/__main__.py

src/azure-cli/setup.py

+4-12
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,9 @@
66
# --------------------------------------------------------------------------------------------
77

88
from codecs import open
9-
from setuptools import setup, find_packages
9+
from setuptools import setup, find_namespace_packages
1010
import sys
1111

12-
try:
13-
from azure_cli_bdist_wheel import cmdclass
14-
except ImportError:
15-
import logging
16-
17-
logging.warning("Wheel is not available, disabling bdist_wheel hook")
18-
cmdclass = {}
19-
2012
VERSION = "2.69.0"
2113
# If we have source, validate that our version numbers match
2214
# This should prevent uploading releases with mismatched versions.
@@ -157,6 +149,7 @@
157149
with open('README.rst', 'r', encoding='utf-8') as f:
158150
README = f.read()
159151

152+
160153
setup(
161154
name='azure-cli',
162155
version=VERSION,
@@ -174,7 +167,7 @@
174167
'az.bat',
175168
'azps.ps1'
176169
],
177-
packages=find_packages(exclude=["*.tests", "*.tests.*", "tests.*", "tests", "azure", "azure.cli"]),
170+
packages=find_namespace_packages(exclude=["*.tests", "*.tests.*", "tests.*", "tests"]),
178171
install_requires=DEPENDENCIES,
179172
python_requires='>=3.9.0',
180173
package_data={
@@ -204,6 +197,5 @@
204197
'random/adjectives.txt',
205198
'random/nouns.txt'
206199
]
207-
},
208-
cmdclass=cmdclass
200+
}
209201
)

0 commit comments

Comments
 (0)