Add HTML parsing for Azure Artifacts version retrieval / Add support for non-interactive environments in Publisher class
IMPORTANT This commit introduces a new function to check for non-interactive environments (CI/CD) and modifies the credential retrieval process in the Publisher class. In non-interactive scenarios, it retrieves the username and password/token from environment variables instead of prompting the user, ensuring smoother automation for publishing packages. Error handling is also improved to provide clear messages when credentials are missing.
This commit introduces a new SimpleIndexParser class to parse the PEP 503 simple index HTML format from Azure Artifacts, allowing the extraction of package versions from the HTML response. The query_azure_artifacts_version function is updated to utilize this parser, improving the handling of version retrieval. Additionally, tests are added to verify the parsing functionality, including scenarios for successful version extraction, handling 404 responses, and cases with empty HTML responses.