diff --git a/python-azure-loganalytics.spec b/python-azure-loganalytics.spec index f03ae05..ccf55c5 100644 --- a/python-azure-loganalytics.spec +++ b/python-azure-loganalytics.spec @@ -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 - 0.1.0-3 +- Remove unneccessary __init__.py files to avoid file conflicts. + * Wed Jul 07 2021 Major Hayden - 0.1.0-2 - Remove custom wheel builder that adds the azure-nspkg requirement.