diff --git a/CHANGELOG.md b/CHANGELOG.md index 4379982..e800841 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -24,5 +24,5 @@ Status: Available for use ### Changed -[unreleased]: https://github.com/microsoft/rpm-package-function/compare/0.1.0...HEAD -[0.1.0]: https://github.com/microsoft/rpm-package-function/tree/0.1.0 +[unreleased]: https://github.com/microsoft/azure-blobrepo-rpm/compare/0.1.0...HEAD +[0.1.0]: https://github.com/microsoft/azure-blobrepo-rpm/tree/0.1.0 diff --git a/README.md b/README.md index 51c793c..11a2c39 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# rpm-package-function +# azure-blobrepo-rpm Functionality to create an RPM package repository in Azure Blob Storage with an Azure Function App to keep it up to date. diff --git a/rpm_package_function/__init__.py b/azure_blobrepo_rpm/__init__.py similarity index 100% rename from rpm_package_function/__init__.py rename to azure_blobrepo_rpm/__init__.py diff --git a/rpm_package_function/organiser.py b/azure_blobrepo_rpm/organiser.py similarity index 99% rename from rpm_package_function/organiser.py rename to azure_blobrepo_rpm/organiser.py index f322e64..49bd2f6 100644 --- a/rpm_package_function/organiser.py +++ b/azure_blobrepo_rpm/organiser.py @@ -10,7 +10,7 @@ from azure.storage.blob import ContainerClient -from rpm_package_function.rpmpackage import ( +from azure_blobrepo_rpm.rpmpackage import ( BaseRpmPackage, LocalRpmPackage, RemoteRpmPackage, diff --git a/rpm_package_function/repomanager.py b/azure_blobrepo_rpm/repomanager.py similarity index 98% rename from rpm_package_function/repomanager.py rename to azure_blobrepo_rpm/repomanager.py index 984478f..8060300 100644 --- a/rpm_package_function/repomanager.py +++ b/azure_blobrepo_rpm/repomanager.py @@ -11,8 +11,8 @@ import createrepo_c from azure.storage.blob import ContainerClient -from rpm_package_function import AzureDistributionOrganiser, AzureFlatOrganiser -from rpm_package_function.rpmpackage import RemoteRpmPackage +from azure_blobrepo_rpm import AzureDistributionOrganiser, AzureFlatOrganiser +from azure_blobrepo_rpm.rpmpackage import RemoteRpmPackage log = logging.getLogger(__name__) log.addHandler(logging.NullHandler()) diff --git a/rpm_package_function/rpmpackage.py b/azure_blobrepo_rpm/rpmpackage.py similarity index 100% rename from rpm_package_function/rpmpackage.py rename to azure_blobrepo_rpm/rpmpackage.py diff --git a/rpm_package_function/tooling/__init__.py b/azure_blobrepo_rpm/tooling/__init__.py similarity index 100% rename from rpm_package_function/tooling/__init__.py rename to azure_blobrepo_rpm/tooling/__init__.py diff --git a/rpm_package_function/tooling/advice.py b/azure_blobrepo_rpm/tooling/advice.py similarity index 100% rename from rpm_package_function/tooling/advice.py rename to azure_blobrepo_rpm/tooling/advice.py diff --git a/rpm_package_function/tooling/azcmd.py b/azure_blobrepo_rpm/tooling/azcmd.py similarity index 100% rename from rpm_package_function/tooling/azcmd.py rename to azure_blobrepo_rpm/tooling/azcmd.py diff --git a/rpm_package_function/tooling/bicep_deployment.py b/azure_blobrepo_rpm/tooling/bicep_deployment.py similarity index 97% rename from rpm_package_function/tooling/bicep_deployment.py rename to azure_blobrepo_rpm/tooling/bicep_deployment.py index 762f934..59b48bd 100644 --- a/rpm_package_function/tooling/bicep_deployment.py +++ b/azure_blobrepo_rpm/tooling/bicep_deployment.py @@ -7,7 +7,7 @@ from pathlib import Path from typing import Any, Dict -from rpm_package_function.tooling.azcmd import AzCmdJson, AzCmdNone +from azure_blobrepo_rpm.tooling.azcmd import AzCmdJson, AzCmdNone log = logging.getLogger(__name__) log.addHandler(logging.NullHandler()) diff --git a/rpm_package_function/tooling/create_resources.py b/azure_blobrepo_rpm/tooling/create_resources.py similarity index 91% rename from rpm_package_function/tooling/create_resources.py rename to azure_blobrepo_rpm/tooling/create_resources.py index 296df6a..b89ad06 100644 --- a/rpm_package_function/tooling/create_resources.py +++ b/azure_blobrepo_rpm/tooling/create_resources.py @@ -8,15 +8,12 @@ import sys from pathlib import Path -from rpm_package_function.tooling import common_logging -from rpm_package_function.tooling.advice import ( - advice_distribution_repo, - advice_flat_repo, -) -from rpm_package_function.tooling.bicep_deployment import BicepDeployment -from rpm_package_function.tooling.func_app import FuncAppBundle -from rpm_package_function.tooling.poetry import extract_requirements -from rpm_package_function.tooling.resource_group import create_rg +from azure_blobrepo_rpm.tooling import common_logging +from azure_blobrepo_rpm.tooling.advice import advice_distribution_repo, advice_flat_repo +from azure_blobrepo_rpm.tooling.bicep_deployment import BicepDeployment +from azure_blobrepo_rpm.tooling.func_app import FuncAppBundle +from azure_blobrepo_rpm.tooling.poetry import extract_requirements +from azure_blobrepo_rpm.tooling.resource_group import create_rg log = logging.getLogger(__name__) log.addHandler(logging.NullHandler()) diff --git a/rpm_package_function/tooling/func_app.py b/azure_blobrepo_rpm/tooling/func_app.py similarity index 96% rename from rpm_package_function/tooling/func_app.py rename to azure_blobrepo_rpm/tooling/func_app.py index d3e1bee..8ded343 100644 --- a/rpm_package_function/tooling/func_app.py +++ b/azure_blobrepo_rpm/tooling/func_app.py @@ -10,8 +10,8 @@ from subprocess import CalledProcessError from typing import Any, Dict -from rpm_package_function.tooling.azcmd import AzCmdJson, AzCmdNone -from rpm_package_function.tooling.bicep_deployment import BicepDeployment +from azure_blobrepo_rpm.tooling.azcmd import AzCmdJson, AzCmdNone +from azure_blobrepo_rpm.tooling.bicep_deployment import BicepDeployment log = logging.getLogger(__name__) log.addHandler(logging.NullHandler()) diff --git a/rpm_package_function/tooling/poetry.py b/azure_blobrepo_rpm/tooling/poetry.py similarity index 100% rename from rpm_package_function/tooling/poetry.py rename to azure_blobrepo_rpm/tooling/poetry.py diff --git a/rpm_package_function/tooling/resource_group.py b/azure_blobrepo_rpm/tooling/resource_group.py similarity index 91% rename from rpm_package_function/tooling/resource_group.py rename to azure_blobrepo_rpm/tooling/resource_group.py index 6ef258d..4e043be 100644 --- a/rpm_package_function/tooling/resource_group.py +++ b/azure_blobrepo_rpm/tooling/resource_group.py @@ -4,7 +4,7 @@ import logging -from rpm_package_function.tooling.azcmd import AzCmdNone +from azure_blobrepo_rpm.tooling.azcmd import AzCmdNone log = logging.getLogger(__name__) log.addHandler(logging.NullHandler()) diff --git a/rpm_package_function/utils.py b/azure_blobrepo_rpm/utils.py similarity index 100% rename from rpm_package_function/utils.py rename to azure_blobrepo_rpm/utils.py diff --git a/function_app.py b/function_app.py index f0ef3a6..6cbd455 100644 --- a/function_app.py +++ b/function_app.py @@ -9,14 +9,14 @@ from azure.identity import DefaultAzureCredential from azure.storage.blob import ContainerClient -from rpm_package_function import ( +from azure_blobrepo_rpm import ( AzureBaseRepository, AzureDistributionRepository, AzureFlatRepository, ) app = func.FunctionApp() -log = logging.getLogger("rpm-package-function") +log = logging.getLogger("azure-blobrepo-rpm") log.addHandler(logging.NullHandler()) # Turn down logging for azure functions diff --git a/pyproject.toml b/pyproject.toml index de364a1..ff2831f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,5 +1,5 @@ [tool.poetry] -name = "rpm-package-function" +name = "azure-blobrepo-rpm" version = "0.1.0" description = "Functionality to create an RPM package repository in Azure Blob Storage" authors = ["Max Dymond "] @@ -31,7 +31,7 @@ build-backend = "poetry.core.masonry.api" [tool.poetry.scripts] # Script to create resources in Azure -create-resources = "rpm_package_function.tooling.create_resources:run" +create-resources = "azure_blobrepo_rpm.tooling.create_resources:run" [tool.isort] profile = "black" diff --git a/tests/test_rpf.py b/tests/test_rpf.py index dfb7e37..9b3a1e8 100644 --- a/tests/test_rpf.py +++ b/tests/test_rpf.py @@ -12,7 +12,7 @@ from azure.identity import DefaultAzureCredential from azure.storage.blob import ContainerClient -from rpm_package_function import ( +from azure_blobrepo_rpm import ( AzureDistributionOrganiser, AzureDistributionRepository, AzureFlatOrganiser,