Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
[![No Maintenance Intended](http://unmaintained.tech/badge.svg)](http://unmaintained.tech/)
![Version](https://img.shields.io/badge/dynamic/toml?url=https%3A%2F%2Fraw.githubusercontent.com%2FCDCgov%2Fcfa_azure%2Frefs%2Fheads%2Fmaster%2Fpyproject.toml&query=%24.tool.poetry.version&style=plastic&label=version&color=lightgray)
![pre-commit](https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit&style=plastic&link=https://raw.githubusercontent.com/CDCgov/cfa_azure/refs/heads/master/.pre-commit-config.yaml)
![pre-commit](https://github.com/CDCgov/cfa_azure/workflows/pre-commit/badge.svg?style=plastic&link=https://github.com/CDCgov/cfa_azure/actions/workflows/pre-commit.yaml)
Expand All @@ -8,6 +9,8 @@
![GitHub commit activity](https://img.shields.io/github/commit-activity/m/cdcgov/cfa_azure?style=plastic)


# --***DEPRECATED***--
*cfa_azure is now deprecated. No new development will be added to this repo. For continued python/Azure integrations, please use [cfa-cloudops](https://github.com/CDCgov/cfa-cloudops).*
# cfa_azure Python Package
## Created by Ryan Raasch (Peraton) for CFA

Expand Down
8 changes: 8 additions & 0 deletions cfa_azure/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,19 @@
import logging
import os
import sys
import warnings

from cfa_azure import helpers

__all__ = ["helpers", "clients", "automation", "batch"]

warnings.warn(
"The cfa_azure package is deprecated and will be removed in a future release. "
"Please use cfa-cloudops instead.",
DeprecationWarning,
stacklevel=2,
)

logger = logging.getLogger(__name__)
run_time = datetime.datetime.now()
now_string = f"{run_time:%Y-%m-%d_%H:%M:%S%z}"
Expand Down
7 changes: 7 additions & 0 deletions cfa_azure/clients.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import json
import logging
import os
import warnings
from graphlib import CycleError, TopologicalSorter
from time import sleep

Expand Down Expand Up @@ -67,6 +68,12 @@ def __init__(
self.pool_name = None
self.pool_parameters = None

warnings.warn(
"WARNING: The cfa_azure package is deprecated and will be removed in a future release. Please use cfa-cloudops instead.",
DeprecationWarning,
stacklevel=2,
)

logger.debug("Attributes initialized in client.")

if not config_path and not use_env_vars:
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "cfa_azure"
version = "1.5.9"
version = "1.6.0"
description = "module for use with Azure and Azure Batch"
authors = ["Ryan Raasch <[email protected]>"]
readme = "README.md"
Expand Down