Remove unneccessary __init__.py files to avoid file conflicts

This commit is contained in:
Major Hayden 2021-07-14 10:25:30 -05:00
commit 8c008b5e90
No known key found for this signature in database
GPG key ID: 737051E0C1011FB1

View file

@ -2,7 +2,7 @@
Name: python-%{srcname}
Version: 0.1.0
Release: 2%{?dist}
Release: 3%{?dist}
Summary: Microsoft Azure Log Analytics Client Library for Python
License: MIT
URL: https://pypi.org/project/%{srcname}/
@ -47,14 +47,22 @@ rm -f azure_bdist_wheel.py
%install
%pyproject_install
%pyproject_save_files azure
# PEP 420 allows implicit namespace packaging without additional __init__.py
# files. Remove unneccessary __init__.py that conflicts with other packages.
rm -rf %{buildroot}%{python3_sitelib}/azure/{__init__.py,__pycache__}
%files -n python3-%{srcname} -f %{pyproject_files}
%files -n python3-%{srcname}
%doc README.rst
%{python3_sitelib}/azure/loganalytics
%{python3_sitelib}/azure_loganalytics-%{version}.dist-info
%changelog
* Wed Jul 14 2021 Major Hayden <major@mhtx.net> - 0.1.0-3
- Remove unneccessary __init__.py files to avoid file conflicts.
* Wed Jul 07 2021 Major Hayden <major@mhtx.net> - 0.1.0-2
- Remove custom wheel builder that adds the azure-nspkg requirement.