cycl 0.2.0__tar.gz → 0.2.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- cycl-0.2.2/.github/workflows/ci.yml +72 -0
- {cycl-0.2.0 → cycl-0.2.2}/.gitignore +3 -0
- {cycl-0.2.0 → cycl-0.2.2}/Makefile +7 -3
- {cycl-0.2.0 → cycl-0.2.2}/PKG-INFO +21 -20
- cycl-0.2.2/README.md +28 -0
- cycl-0.2.2/compose.yml +13 -0
- cycl-0.2.2/docs/Dockerfile +3 -0
- cycl-0.2.2/docs/cmd.md +8 -0
- cycl-0.2.2/docs/conf.py +28 -0
- cycl-0.2.2/docs/index.md +23 -0
- {cycl-0.2.0 → cycl-0.2.2}/pyproject.toml +28 -2
- {cycl-0.2.0 → cycl-0.2.2}/src/cycl/cli.py +6 -1
- {cycl-0.2.0 → cycl-0.2.2}/src/cycl.egg-info/PKG-INFO +21 -20
- {cycl-0.2.0 → cycl-0.2.2}/src/cycl.egg-info/SOURCES.txt +5 -0
- cycl-0.2.2/src/cycl.egg-info/requires.txt +9 -0
- cycl-0.2.0/.github/workflows/ci.yml +0 -41
- cycl-0.2.0/README.md +0 -33
- cycl-0.2.0/src/cycl.egg-info/requires.txt +0 -2
- {cycl-0.2.0 → cycl-0.2.2}/.github/dependabot.yml +0 -0
- {cycl-0.2.0 → cycl-0.2.2}/.github/workflows/release.yml +0 -0
- {cycl-0.2.0 → cycl-0.2.2}/LICENSE +0 -0
- {cycl-0.2.0 → cycl-0.2.2}/TODO.md +0 -0
- {cycl-0.2.0 → cycl-0.2.2}/requirements-build.txt +0 -0
- {cycl-0.2.0 → cycl-0.2.2}/requirements-dev.txt +0 -0
- {cycl-0.2.0 → cycl-0.2.2}/requirements.txt +0 -0
- {cycl-0.2.0 → cycl-0.2.2}/setup.cfg +0 -0
- {cycl-0.2.0 → cycl-0.2.2}/src/cycl/__init__.py +0 -0
- {cycl-0.2.0 → cycl-0.2.2}/src/cycl/__main__.py +0 -0
- {cycl-0.2.0 → cycl-0.2.2}/src/cycl/cycl.py +0 -0
- {cycl-0.2.0 → cycl-0.2.2}/src/cycl/py.typed +0 -0
- {cycl-0.2.0 → cycl-0.2.2}/src/cycl/utils/__init__.py +0 -0
- {cycl-0.2.0 → cycl-0.2.2}/src/cycl/utils/cdk.py +0 -0
- {cycl-0.2.0 → cycl-0.2.2}/src/cycl/utils/cfn.py +0 -0
- {cycl-0.2.0 → cycl-0.2.2}/src/cycl/utils/log_config.py +0 -0
- {cycl-0.2.0 → cycl-0.2.2}/src/cycl/utils/testing.py +0 -0
- {cycl-0.2.0 → cycl-0.2.2}/src/cycl.egg-info/dependency_links.txt +0 -0
- {cycl-0.2.0 → cycl-0.2.2}/src/cycl.egg-info/entry_points.txt +0 -0
- {cycl-0.2.0 → cycl-0.2.2}/src/cycl.egg-info/top_level.txt +0 -0
- {cycl-0.2.0 → cycl-0.2.2}/tests/__init__.py +0 -0
- {cycl-0.2.0 → cycl-0.2.2}/tests/cli_test.py +0 -0
- {cycl-0.2.0 → cycl-0.2.2}/tests/cycl_test.py +0 -0
- {cycl-0.2.0 → cycl-0.2.2}/tests/utils/__init__.py +0 -0
- {cycl-0.2.0 → cycl-0.2.2}/tests/utils/cdk_test.py +0 -0
- {cycl-0.2.0 → cycl-0.2.2}/tests/utils/cfn_test.py +0 -0
- {cycl-0.2.0 → cycl-0.2.2}/tests/utils/log_config_test.py +0 -0
- {cycl-0.2.0 → cycl-0.2.2}/tests/utils/testing_test.py +0 -0
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
name: CI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
pull_request:
|
|
5
|
+
types: [opened, synchronize]
|
|
6
|
+
push:
|
|
7
|
+
branches: ['master', 'main']
|
|
8
|
+
|
|
9
|
+
env:
|
|
10
|
+
PYTHONPATH: './src:./test'
|
|
11
|
+
|
|
12
|
+
jobs:
|
|
13
|
+
build:
|
|
14
|
+
strategy:
|
|
15
|
+
fail-fast: false
|
|
16
|
+
matrix:
|
|
17
|
+
os: ['ubuntu-latest']
|
|
18
|
+
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']
|
|
19
|
+
runs-on: ${{ matrix.os }}
|
|
20
|
+
steps:
|
|
21
|
+
- uses: actions/checkout@v4
|
|
22
|
+
|
|
23
|
+
- uses: actions/setup-python@v5
|
|
24
|
+
with:
|
|
25
|
+
python-version: ${{ matrix.python-version }}
|
|
26
|
+
cache: 'pip'
|
|
27
|
+
|
|
28
|
+
- name: setup tox
|
|
29
|
+
run: pip install tox
|
|
30
|
+
|
|
31
|
+
- name: test
|
|
32
|
+
run: |
|
|
33
|
+
TOXENV="py$(echo ${{ matrix.python-version }} | sed 's/\.//')"
|
|
34
|
+
tox -e "${TOXENV}"
|
|
35
|
+
|
|
36
|
+
build-docs:
|
|
37
|
+
runs-on: ubuntu-latest
|
|
38
|
+
permissions:
|
|
39
|
+
contents: write
|
|
40
|
+
steps:
|
|
41
|
+
- uses: actions/checkout@v4
|
|
42
|
+
|
|
43
|
+
- uses: actions/setup-python@v5
|
|
44
|
+
with:
|
|
45
|
+
python-version: 3.11
|
|
46
|
+
|
|
47
|
+
- name: Install dependencies
|
|
48
|
+
run: pip install -e .[docs]
|
|
49
|
+
|
|
50
|
+
- name: Sphinx build
|
|
51
|
+
run: sphinx-build docs docs/_build --builder html --fresh-env
|
|
52
|
+
|
|
53
|
+
- name: Upload static files as artifact
|
|
54
|
+
id: deployment
|
|
55
|
+
uses: actions/upload-pages-artifact@v3
|
|
56
|
+
with:
|
|
57
|
+
path: docs/_build/
|
|
58
|
+
|
|
59
|
+
deploy-docs:
|
|
60
|
+
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
|
|
61
|
+
needs: build-docs
|
|
62
|
+
runs-on: ubuntu-latest
|
|
63
|
+
environment:
|
|
64
|
+
name: github-pages
|
|
65
|
+
url: ${{ steps.deployment.outputs.page_url }}
|
|
66
|
+
permissions:
|
|
67
|
+
pages: write # to deploy to Pages
|
|
68
|
+
id-token: write # to verify the deployment originates from an appropriate source
|
|
69
|
+
steps:
|
|
70
|
+
- name: Deploy to GitHub Pages
|
|
71
|
+
id: deployment
|
|
72
|
+
uses: actions/deploy-pages@v4
|
|
@@ -24,10 +24,13 @@ format: ## Format the project
|
|
|
24
24
|
validate: ## Validate the project is linted and formatted
|
|
25
25
|
ruff format --check
|
|
26
26
|
ruff check
|
|
27
|
-
mypy ./src/
|
|
27
|
+
python3 -m mypy ./src/
|
|
28
28
|
|
|
29
29
|
test: ## Run unit tests and generate coverage report
|
|
30
|
-
pytest --cov=./src/
|
|
30
|
+
pytest --cov=./src/ $(ARGS)
|
|
31
|
+
|
|
32
|
+
docs-serve: ## Serve a live version of the documentation locally
|
|
33
|
+
docker compose up sphinx --remove-orphans
|
|
31
34
|
|
|
32
35
|
clean: ## Clean generated project files
|
|
33
36
|
rm -f $(REQ_CACHE)
|
|
@@ -38,4 +41,5 @@ clean: ## Clean generated project files
|
|
|
38
41
|
rm -rf ./.tox
|
|
39
42
|
rm -rf ./dist
|
|
40
43
|
rm -rf ./.mypy_cache
|
|
41
|
-
|
|
44
|
+
rm -rf ./docs/_build
|
|
45
|
+
find . -type d -name "__pycache__" -exec rm -rf {} +
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
Metadata-Version: 2.2
|
|
2
2
|
Name: cycl
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.2
|
|
4
4
|
Summary: CLI and Python SDK to help identify cross-stack import/export circular dependencies, for a given AWS account and region.
|
|
5
5
|
Project-URL: Repository, http://github.com/tcm5343/cycl
|
|
6
|
+
Project-URL: Documentation, https://tcm5343.github.io/cycl/index.html
|
|
6
7
|
Keywords: aws,cdk,cycle,circular,dependency,infrastructure,boto3,cloud
|
|
7
8
|
Classifier: Intended Audience :: Developers
|
|
8
9
|
Classifier: License :: OSI Approved :: MIT License
|
|
@@ -11,7 +12,6 @@ Classifier: Programming Language :: Python :: 3.10
|
|
|
11
12
|
Classifier: Programming Language :: Python :: 3.11
|
|
12
13
|
Classifier: Programming Language :: Python :: 3.12
|
|
13
14
|
Classifier: Programming Language :: Python :: 3.13
|
|
14
|
-
Classifier: Programming Language :: Python :: 3.8
|
|
15
15
|
Classifier: Programming Language :: Python :: 3.9
|
|
16
16
|
Classifier: Programming Language :: Python :: 3
|
|
17
17
|
Classifier: Programming Language :: Python
|
|
@@ -21,37 +21,38 @@ Description-Content-Type: text/markdown
|
|
|
21
21
|
License-File: LICENSE
|
|
22
22
|
Requires-Dist: boto3~=1.0
|
|
23
23
|
Requires-Dist: networkx~=3.0
|
|
24
|
+
Provides-Extra: docs
|
|
25
|
+
Requires-Dist: myst-parser==4.0.1; extra == "docs"
|
|
26
|
+
Requires-Dist: sphinx_rtd_theme==3.0.2; extra == "docs"
|
|
27
|
+
Requires-Dist: sphinx-argparse==0.5.2; extra == "docs"
|
|
28
|
+
Requires-Dist: sphinx-autobuild==2024.10.3; extra == "docs"
|
|
29
|
+
Requires-Dist: sphinx==8.1.3; extra == "docs"
|
|
24
30
|
|
|
25
31
|
# cycl
|
|
26
32
|
|
|
27
33
|
[](https://pypi.org/project/cycl/)
|
|
28
|
-
[](https://
|
|
34
|
+
[](https://pypi.python.org/pypi/cycl/)
|
|
35
|
+
[](https://pypi.python.org/pypi/cycl/)
|
|
29
36
|
[](https://github.com/tcm5343/cycl/actions)
|
|
30
37
|
[](https://opensource.org/licenses/MIT)
|
|
38
|
+
[](https://github.com/charliermarsh/ruff)
|
|
39
|
+

|
|
31
40
|
|
|
32
41
|
cycl is a CLI and Python SDK to help identify cross-stack import/export circular dependencies, for a given AWS account and region. The successor to [circular-dependency-detector](https://github.com/tcm5343/circular-dependency-detector), which was built at the University of Texas at Austin.
|
|
33
42
|
|
|
34
|
-
##
|
|
43
|
+
## Documentation
|
|
35
44
|
|
|
36
|
-
|
|
45
|
+
Documentation for using `cycl` is found [here](https://tcm5343.github.io/cycl/).
|
|
37
46
|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
- `cycl check --exit-zero` - exit 0 regardless of result
|
|
41
|
-
- `cycl check --log-level` - set the logging level (default: WARNING)
|
|
42
|
-
- `cycl check --cdk-out /path/to/cdk.out` - path to cdk.out, where stacks are CDK synthesized to CFN templates
|
|
43
|
-
|
|
44
|
-
## How to use cycl?
|
|
45
|
-
|
|
46
|
-
There are two main use cases for `cycl`.
|
|
47
|
+
## Contributing
|
|
47
48
|
|
|
48
|
-
|
|
49
|
-
2. To perform analysis. While a CLI is best used in a pipeline, if you require analysis which is not currently supported, you can use the SDK. The SDK gives you all the information that `cycl` collects.
|
|
49
|
+
`cycl` is being actively developed, instructions will come as it becomes more stable.
|
|
50
50
|
|
|
51
|
-
|
|
51
|
+
Run `make` to see the available targets and their descriptions.
|
|
52
52
|
|
|
53
|
-
|
|
53
|
+
To serve the documentation pages locally, you can simply run `make docs-serve`. The address should be served on `http://0.0.0.0:8000`, if not, you can run `docker compose logs sphinx | grep "Serving"` to determine the correct address.
|
|
54
54
|
|
|
55
|
-
|
|
55
|
+
To run specific tests:
|
|
56
56
|
|
|
57
|
-
`
|
|
57
|
+
* `tox -e py39 -- ./tests/utils/cdk_test.py`
|
|
58
|
+
* `make test ARGS=./tests/utils/cdk_test.py`
|
cycl-0.2.2/README.md
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# cycl
|
|
2
|
+
|
|
3
|
+
[](https://pypi.org/project/cycl/)
|
|
4
|
+
[](https://pypi.python.org/pypi/cycl/)
|
|
5
|
+
[](https://pypi.python.org/pypi/cycl/)
|
|
6
|
+
[](https://github.com/tcm5343/cycl/actions)
|
|
7
|
+
[](https://opensource.org/licenses/MIT)
|
|
8
|
+
[](https://github.com/charliermarsh/ruff)
|
|
9
|
+

|
|
10
|
+
|
|
11
|
+
cycl is a CLI and Python SDK to help identify cross-stack import/export circular dependencies, for a given AWS account and region. The successor to [circular-dependency-detector](https://github.com/tcm5343/circular-dependency-detector), which was built at the University of Texas at Austin.
|
|
12
|
+
|
|
13
|
+
## Documentation
|
|
14
|
+
|
|
15
|
+
Documentation for using `cycl` is found [here](https://tcm5343.github.io/cycl/).
|
|
16
|
+
|
|
17
|
+
## Contributing
|
|
18
|
+
|
|
19
|
+
`cycl` is being actively developed, instructions will come as it becomes more stable.
|
|
20
|
+
|
|
21
|
+
Run `make` to see the available targets and their descriptions.
|
|
22
|
+
|
|
23
|
+
To serve the documentation pages locally, you can simply run `make docs-serve`. The address should be served on `http://0.0.0.0:8000`, if not, you can run `docker compose logs sphinx | grep "Serving"` to determine the correct address.
|
|
24
|
+
|
|
25
|
+
To run specific tests:
|
|
26
|
+
|
|
27
|
+
* `tox -e py39 -- ./tests/utils/cdk_test.py`
|
|
28
|
+
* `make test ARGS=./tests/utils/cdk_test.py`
|
cycl-0.2.2/compose.yml
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
services:
|
|
2
|
+
sphinx:
|
|
3
|
+
build:
|
|
4
|
+
context: .
|
|
5
|
+
dockerfile: docs/Dockerfile
|
|
6
|
+
ports:
|
|
7
|
+
- "8000:8000"
|
|
8
|
+
volumes:
|
|
9
|
+
- .:/work
|
|
10
|
+
environment:
|
|
11
|
+
PYTHONPATH: "/work/src:/work"
|
|
12
|
+
working_dir: /work
|
|
13
|
+
command: pip install -e .[docs] && sphinx-autobuild -M html /work/docs /work/docs/_build/html --host 0.0.0.0 --port 8000 --write-all --fresh-env
|
cycl-0.2.2/docs/cmd.md
ADDED
cycl-0.2.2/docs/conf.py
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import sys
|
|
2
|
+
|
|
3
|
+
# import os
|
|
4
|
+
from unittest import mock
|
|
5
|
+
|
|
6
|
+
MOCK_MODULES = ['boto3', 'networkx', 'botocore', 'botocore.config', 'botocore.exceptions']
|
|
7
|
+
for mod_name in MOCK_MODULES:
|
|
8
|
+
sys.modules[mod_name] = mock.Mock()
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
project = 'cycl'
|
|
12
|
+
copyright = '2025, tcm5343'
|
|
13
|
+
author = 'tcm5343'
|
|
14
|
+
release = '0.2.2'
|
|
15
|
+
|
|
16
|
+
extensions = [
|
|
17
|
+
'sphinx_rtd_theme',
|
|
18
|
+
'sphinx.ext.autodoc',
|
|
19
|
+
'sphinxarg.ext',
|
|
20
|
+
'sphinx.ext.githubpages',
|
|
21
|
+
'myst_parser',
|
|
22
|
+
]
|
|
23
|
+
|
|
24
|
+
templates_path = ['_templates']
|
|
25
|
+
exclude_patterns = []
|
|
26
|
+
|
|
27
|
+
html_theme = 'sphinx_rtd_theme'
|
|
28
|
+
html_static_path = ['_static']
|
cycl-0.2.2/docs/index.md
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# cycl documentation
|
|
2
|
+
|
|
3
|
+
## Getting started
|
|
4
|
+
|
|
5
|
+
It is recommended to use `pipx` to install `cycl` but you can also use `pip` by simply running `pip install cycl`.
|
|
6
|
+
|
|
7
|
+
## How to use cycl?
|
|
8
|
+
|
|
9
|
+
There are two main use cases for `cycl`.
|
|
10
|
+
|
|
11
|
+
1. In a pipeline. `cycl` is best used to detect circular dependencies before a deployment. If you're using the AWS CDK v2 (v1 support coming soon), simply synthesize you templates to a directory and pass that directory to `cycl` using `--cdk-out-path some-path-here`. This allows `cycl` to find all existing cycles and then those to be introduced by the deployment. This prevents the circular dependency from ever being introduced. If your pipeline deploys more than once, you should execute `cycl` before each deployment.
|
|
12
|
+
2. To perform analysis. While a CLI is best used in a pipeline, if you require analysis which is not currently supported, you can use the SDK. The SDK gives you all the information that `cycl` collects.
|
|
13
|
+
|
|
14
|
+
## Why use cycl?
|
|
15
|
+
|
|
16
|
+
Over the lifetime of a project, circular references are bound to be introduced. They may not be noticed until you need to re-deploy some infrastructure. A good example is disaster recovery testing and potentially deploying all your infrastructure from scratch in a new region. This tool detects those changes.
|
|
17
|
+
|
|
18
|
+
```{toctree}
|
|
19
|
+
:maxdepth: 2
|
|
20
|
+
:caption: CLI:
|
|
21
|
+
|
|
22
|
+
cmd
|
|
23
|
+
```
|
|
@@ -4,7 +4,7 @@ build-backend = 'setuptools.build_meta'
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = 'cycl'
|
|
7
|
-
version='0.2.
|
|
7
|
+
version='0.2.2'
|
|
8
8
|
requires-python = '>=3.8'
|
|
9
9
|
description = 'CLI and Python SDK to help identify cross-stack import/export circular dependencies, for a given AWS account and region.'
|
|
10
10
|
readme = 'README.md'
|
|
@@ -17,7 +17,6 @@ classifiers = [
|
|
|
17
17
|
'Programming Language :: Python :: 3.11',
|
|
18
18
|
'Programming Language :: Python :: 3.12',
|
|
19
19
|
'Programming Language :: Python :: 3.13',
|
|
20
|
-
'Programming Language :: Python :: 3.8',
|
|
21
20
|
'Programming Language :: Python :: 3.9',
|
|
22
21
|
'Programming Language :: Python :: 3',
|
|
23
22
|
'Programming Language :: Python',
|
|
@@ -28,8 +27,18 @@ dependencies = [
|
|
|
28
27
|
'networkx~=3.0',
|
|
29
28
|
]
|
|
30
29
|
|
|
30
|
+
[project.optional-dependencies]
|
|
31
|
+
docs = [
|
|
32
|
+
'myst-parser==4.0.1',
|
|
33
|
+
'sphinx_rtd_theme==3.0.2',
|
|
34
|
+
'sphinx-argparse==0.5.2',
|
|
35
|
+
'sphinx-autobuild==2024.10.3',
|
|
36
|
+
'sphinx==8.1.3',
|
|
37
|
+
]
|
|
38
|
+
|
|
31
39
|
[project.urls]
|
|
32
40
|
Repository = 'http://github.com/tcm5343/cycl'
|
|
41
|
+
Documentation = 'https://tcm5343.github.io/cycl/index.html'
|
|
33
42
|
|
|
34
43
|
[project.scripts]
|
|
35
44
|
cycl = 'cycl.cli:app'
|
|
@@ -56,6 +65,10 @@ ignore = [
|
|
|
56
65
|
'PLR2004', # magic-value-comparison
|
|
57
66
|
'S101', # assert
|
|
58
67
|
]
|
|
68
|
+
'docs/**' = [
|
|
69
|
+
'INP001', # implicit-namespace-package
|
|
70
|
+
'A001', # builtin-variable-shadowing
|
|
71
|
+
]
|
|
59
72
|
'__init__.py' = [
|
|
60
73
|
'F401', # unused-import
|
|
61
74
|
]
|
|
@@ -84,3 +97,16 @@ omit = [
|
|
|
84
97
|
[tool.pytest.ini_options]
|
|
85
98
|
log_cli_level = 'INFO'
|
|
86
99
|
addopts = ['--import-mode=importlib']
|
|
100
|
+
|
|
101
|
+
[tool.tox]
|
|
102
|
+
env_list = ["py39", "py310", "py311", "py312", "py313"]
|
|
103
|
+
skip_missing_interpreters = false
|
|
104
|
+
|
|
105
|
+
[tool.tox.env_run_base]
|
|
106
|
+
allowlist_externals = ['make']
|
|
107
|
+
package = "editable"
|
|
108
|
+
deps = '-rrequirements-dev.txt'
|
|
109
|
+
commands = [
|
|
110
|
+
["make", "validate"],
|
|
111
|
+
["make", "test", "ARGS={posargs}"]
|
|
112
|
+
]
|
|
@@ -13,7 +13,7 @@ from cycl.utils.log_config import configure_log
|
|
|
13
13
|
log = getLogger(__name__)
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
def
|
|
16
|
+
def create_parser() -> argparse.ArgumentParser:
|
|
17
17
|
parser = argparse.ArgumentParser(prog='cycl', description='Check for cross-stack import/export circular dependencies.')
|
|
18
18
|
sp = parser.add_subparsers(dest='cmd', required=True)
|
|
19
19
|
|
|
@@ -43,6 +43,11 @@ def app() -> None:
|
|
|
43
43
|
type=str,
|
|
44
44
|
help='List of nodes to ignore when building the graph (ex. --ignore-nodes s1 s2 ...)',
|
|
45
45
|
)
|
|
46
|
+
return parser
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
def app() -> None:
|
|
50
|
+
parser = create_parser()
|
|
46
51
|
|
|
47
52
|
if len(sys.argv) == 1:
|
|
48
53
|
parser.print_help()
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
Metadata-Version: 2.2
|
|
2
2
|
Name: cycl
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.2
|
|
4
4
|
Summary: CLI and Python SDK to help identify cross-stack import/export circular dependencies, for a given AWS account and region.
|
|
5
5
|
Project-URL: Repository, http://github.com/tcm5343/cycl
|
|
6
|
+
Project-URL: Documentation, https://tcm5343.github.io/cycl/index.html
|
|
6
7
|
Keywords: aws,cdk,cycle,circular,dependency,infrastructure,boto3,cloud
|
|
7
8
|
Classifier: Intended Audience :: Developers
|
|
8
9
|
Classifier: License :: OSI Approved :: MIT License
|
|
@@ -11,7 +12,6 @@ Classifier: Programming Language :: Python :: 3.10
|
|
|
11
12
|
Classifier: Programming Language :: Python :: 3.11
|
|
12
13
|
Classifier: Programming Language :: Python :: 3.12
|
|
13
14
|
Classifier: Programming Language :: Python :: 3.13
|
|
14
|
-
Classifier: Programming Language :: Python :: 3.8
|
|
15
15
|
Classifier: Programming Language :: Python :: 3.9
|
|
16
16
|
Classifier: Programming Language :: Python :: 3
|
|
17
17
|
Classifier: Programming Language :: Python
|
|
@@ -21,37 +21,38 @@ Description-Content-Type: text/markdown
|
|
|
21
21
|
License-File: LICENSE
|
|
22
22
|
Requires-Dist: boto3~=1.0
|
|
23
23
|
Requires-Dist: networkx~=3.0
|
|
24
|
+
Provides-Extra: docs
|
|
25
|
+
Requires-Dist: myst-parser==4.0.1; extra == "docs"
|
|
26
|
+
Requires-Dist: sphinx_rtd_theme==3.0.2; extra == "docs"
|
|
27
|
+
Requires-Dist: sphinx-argparse==0.5.2; extra == "docs"
|
|
28
|
+
Requires-Dist: sphinx-autobuild==2024.10.3; extra == "docs"
|
|
29
|
+
Requires-Dist: sphinx==8.1.3; extra == "docs"
|
|
24
30
|
|
|
25
31
|
# cycl
|
|
26
32
|
|
|
27
33
|
[](https://pypi.org/project/cycl/)
|
|
28
|
-
[](https://
|
|
34
|
+
[](https://pypi.python.org/pypi/cycl/)
|
|
35
|
+
[](https://pypi.python.org/pypi/cycl/)
|
|
29
36
|
[](https://github.com/tcm5343/cycl/actions)
|
|
30
37
|
[](https://opensource.org/licenses/MIT)
|
|
38
|
+
[](https://github.com/charliermarsh/ruff)
|
|
39
|
+

|
|
31
40
|
|
|
32
41
|
cycl is a CLI and Python SDK to help identify cross-stack import/export circular dependencies, for a given AWS account and region. The successor to [circular-dependency-detector](https://github.com/tcm5343/circular-dependency-detector), which was built at the University of Texas at Austin.
|
|
33
42
|
|
|
34
|
-
##
|
|
43
|
+
## Documentation
|
|
35
44
|
|
|
36
|
-
|
|
45
|
+
Documentation for using `cycl` is found [here](https://tcm5343.github.io/cycl/).
|
|
37
46
|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
- `cycl check --exit-zero` - exit 0 regardless of result
|
|
41
|
-
- `cycl check --log-level` - set the logging level (default: WARNING)
|
|
42
|
-
- `cycl check --cdk-out /path/to/cdk.out` - path to cdk.out, where stacks are CDK synthesized to CFN templates
|
|
43
|
-
|
|
44
|
-
## How to use cycl?
|
|
45
|
-
|
|
46
|
-
There are two main use cases for `cycl`.
|
|
47
|
+
## Contributing
|
|
47
48
|
|
|
48
|
-
|
|
49
|
-
2. To perform analysis. While a CLI is best used in a pipeline, if you require analysis which is not currently supported, you can use the SDK. The SDK gives you all the information that `cycl` collects.
|
|
49
|
+
`cycl` is being actively developed, instructions will come as it becomes more stable.
|
|
50
50
|
|
|
51
|
-
|
|
51
|
+
Run `make` to see the available targets and their descriptions.
|
|
52
52
|
|
|
53
|
-
|
|
53
|
+
To serve the documentation pages locally, you can simply run `make docs-serve`. The address should be served on `http://0.0.0.0:8000`, if not, you can run `docker compose logs sphinx | grep "Serving"` to determine the correct address.
|
|
54
54
|
|
|
55
|
-
|
|
55
|
+
To run specific tests:
|
|
56
56
|
|
|
57
|
-
`
|
|
57
|
+
* `tox -e py39 -- ./tests/utils/cdk_test.py`
|
|
58
|
+
* `make test ARGS=./tests/utils/cdk_test.py`
|
|
@@ -3,6 +3,7 @@ LICENSE
|
|
|
3
3
|
Makefile
|
|
4
4
|
README.md
|
|
5
5
|
TODO.md
|
|
6
|
+
compose.yml
|
|
6
7
|
pyproject.toml
|
|
7
8
|
requirements-build.txt
|
|
8
9
|
requirements-dev.txt
|
|
@@ -10,6 +11,10 @@ requirements.txt
|
|
|
10
11
|
.github/dependabot.yml
|
|
11
12
|
.github/workflows/ci.yml
|
|
12
13
|
.github/workflows/release.yml
|
|
14
|
+
docs/Dockerfile
|
|
15
|
+
docs/cmd.md
|
|
16
|
+
docs/conf.py
|
|
17
|
+
docs/index.md
|
|
13
18
|
src/cycl/__init__.py
|
|
14
19
|
src/cycl/__main__.py
|
|
15
20
|
src/cycl/cli.py
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
name: CI
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
pull_request:
|
|
5
|
-
types: [opened, edited, synchronize]
|
|
6
|
-
push:
|
|
7
|
-
branches: ['master', 'main']
|
|
8
|
-
|
|
9
|
-
env:
|
|
10
|
-
PYTHONPATH: './src:./test'
|
|
11
|
-
|
|
12
|
-
jobs:
|
|
13
|
-
build:
|
|
14
|
-
strategy:
|
|
15
|
-
fail-fast: false
|
|
16
|
-
matrix:
|
|
17
|
-
os: ['ubuntu-latest']
|
|
18
|
-
python-version: ['3.10', '3.11', '3.12', '3.13']
|
|
19
|
-
runs-on: ${{ matrix.os }}
|
|
20
|
-
steps:
|
|
21
|
-
- uses: actions/checkout@v4
|
|
22
|
-
|
|
23
|
-
- uses: actions/setup-python@v5
|
|
24
|
-
with:
|
|
25
|
-
python-version: ${{ matrix.python-version }}
|
|
26
|
-
cache: 'pip'
|
|
27
|
-
|
|
28
|
-
- name: install deps
|
|
29
|
-
run: pip install --editable . -r requirements-dev.txt
|
|
30
|
-
|
|
31
|
-
- name: lint
|
|
32
|
-
run: ruff check
|
|
33
|
-
|
|
34
|
-
- name: format
|
|
35
|
-
run: ruff format --check
|
|
36
|
-
|
|
37
|
-
- name: static type checking
|
|
38
|
-
run: mypy ./src/
|
|
39
|
-
|
|
40
|
-
- name: test
|
|
41
|
-
run: pytest --cov=./src/ ./tests/
|
cycl-0.2.0/README.md
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
# cycl
|
|
2
|
-
|
|
3
|
-
[](https://pypi.org/project/cycl/)
|
|
4
|
-
[](https://pepy.tech/projects/cycl)
|
|
5
|
-
[](https://github.com/tcm5343/cycl/actions)
|
|
6
|
-
[](https://opensource.org/licenses/MIT)
|
|
7
|
-
|
|
8
|
-
cycl is a CLI and Python SDK to help identify cross-stack import/export circular dependencies, for a given AWS account and region. The successor to [circular-dependency-detector](https://github.com/tcm5343/circular-dependency-detector), which was built at the University of Texas at Austin.
|
|
9
|
-
|
|
10
|
-
## Getting started
|
|
11
|
-
|
|
12
|
-
Install `cycl` by running `pip install cycl`.
|
|
13
|
-
|
|
14
|
-
### CLI
|
|
15
|
-
|
|
16
|
-
- `cycl check --exit-zero` - exit 0 regardless of result
|
|
17
|
-
- `cycl check --log-level` - set the logging level (default: WARNING)
|
|
18
|
-
- `cycl check --cdk-out /path/to/cdk.out` - path to cdk.out, where stacks are CDK synthesized to CFN templates
|
|
19
|
-
|
|
20
|
-
## How to use cycl?
|
|
21
|
-
|
|
22
|
-
There are two main use cases for `cycl`.
|
|
23
|
-
|
|
24
|
-
1. In a pipeline. `cycl` is best used to detect circular dependencies before a deployment. If you're using the AWS CDK v2 (v1 support coming soon), simply synthesize you templates to a directory and pass that directory to `cycl` using `--cdk-out-path some-path-here `. This allows `cycl` to find all existing cycles and then those to be introduced by the deployment. This prevents the circular dependency from ever being introduced. If your pipeline deploys more than once, you should execute `cycl` before each deployment.
|
|
25
|
-
2. To perform analysis. While a CLI is best used in a pipeline, if you require analysis which is not currently supported, you can use the SDK. The SDK gives you all the information that `cycl` collects.
|
|
26
|
-
|
|
27
|
-
## Why use cycl?
|
|
28
|
-
|
|
29
|
-
Over the lifetime of a project, circular references are bound to be introduced. They may not be noticed until you need to re-deploy some infrastructure. A good example is disaster recovery testing and potentially deploying all your infrastructure from scratch in a new region. This tool detects those changes.
|
|
30
|
-
|
|
31
|
-
## Contributing
|
|
32
|
-
|
|
33
|
-
`cycl` is being actively developed, instructions will come as it becomes more stable.
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|