Remove custom wheel generator

The custom wheel generator provided within the package from Microsoft
causes an extra requirement for azure-mgmt-nspkg which is no longer
needed in Python 3.

Signed-off-by: Major Hayden <major@mhtx.net>
This commit is contained in:
Major Hayden 2021-07-07 07:43:22 -05:00
commit d779313760
No known key found for this signature in database
GPG key ID: 737051E0C1011FB1
2 changed files with 29 additions and 2 deletions

View file

@ -2,11 +2,12 @@
Name: python-%{srcname}
Version: 2.0.0
Release: 1%{?dist}
Release: 2%{?dist}
Summary: Microsoft Azure Batch AI Management Client Library for Python
License: MIT
URL: https://pypi.org/project/%{srcname}/
Source0: %{pypi_source %{srcname} %{version} zip}
Patch0: remove-custom-wheel-generator.patch
BuildArch: noarch
@ -29,8 +30,11 @@ Summary: %{summary}
%prep
%autosetup -n %{srcname}-%{version}
%autosetup -p0 -n %{srcname}-%{version}
# Remove the customized wheel builder included by Microsoft that adds
# azure-mgmt-nspkg to the requirements.
rm -f azure_bdist_wheel.py
%generate_buildrequires
%pyproject_buildrequires -r
@ -50,5 +54,8 @@ Summary: %{summary}
%changelog
* Wed Jul 07 2021 Major Hayden <major@mhtx.net> - 2.0.0-2
- Removed customized wheel builder from package to avoid -nspkg requirement.
* Tue Jun 01 2021 Major Hayden <major@mhtx.net> - 2.0.0-1
- First package.

View file

@ -0,0 +1,20 @@
diff -up ./MANIFEST.in.orig ./MANIFEST.in
--- ./MANIFEST.in.orig 2021-07-07 07:41:14.763972272 -0500
+++ ./MANIFEST.in 2021-07-07 07:41:19.760937165 -0500
@@ -1,2 +1 @@
include *.rst
-include azure_bdist_wheel.py
\ No newline at end of file
diff -up ./setup.cfg.orig ./setup.cfg
--- ./setup.cfg.orig 2021-07-07 07:41:08.612015494 -0500
+++ ./setup.cfg 2021-07-07 07:41:24.623903000 -0500
@@ -1,8 +1,6 @@
[bdist_wheel]
universal = 1
-azure-namespace-package = azure-mgmt-nspkg
[egg_info]
-tag_build =
+tag_build =
tag_date = 0
-