cycl 0.2.1__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.
Files changed (46) hide show
  1. cycl-0.2.2/.github/workflows/ci.yml +72 -0
  2. {cycl-0.2.1 → cycl-0.2.2}/.gitignore +3 -0
  3. {cycl-0.2.1 → cycl-0.2.2}/Makefile +6 -2
  4. {cycl-0.2.1 → cycl-0.2.2}/PKG-INFO +19 -22
  5. cycl-0.2.2/README.md +28 -0
  6. cycl-0.2.2/compose.yml +13 -0
  7. cycl-0.2.2/docs/Dockerfile +3 -0
  8. cycl-0.2.2/docs/cmd.md +8 -0
  9. cycl-0.2.2/docs/conf.py +28 -0
  10. cycl-0.2.2/docs/index.md +23 -0
  11. {cycl-0.2.1 → cycl-0.2.2}/pyproject.toml +15 -1
  12. {cycl-0.2.1 → cycl-0.2.2}/src/cycl/cli.py +6 -1
  13. {cycl-0.2.1 → cycl-0.2.2}/src/cycl.egg-info/PKG-INFO +19 -22
  14. {cycl-0.2.1 → cycl-0.2.2}/src/cycl.egg-info/SOURCES.txt +5 -0
  15. cycl-0.2.2/src/cycl.egg-info/requires.txt +9 -0
  16. cycl-0.2.1/.github/workflows/ci.yml +0 -34
  17. cycl-0.2.1/README.md +0 -38
  18. cycl-0.2.1/src/cycl.egg-info/requires.txt +0 -2
  19. {cycl-0.2.1 → cycl-0.2.2}/.github/dependabot.yml +0 -0
  20. {cycl-0.2.1 → cycl-0.2.2}/.github/workflows/release.yml +0 -0
  21. {cycl-0.2.1 → cycl-0.2.2}/LICENSE +0 -0
  22. {cycl-0.2.1 → cycl-0.2.2}/TODO.md +0 -0
  23. {cycl-0.2.1 → cycl-0.2.2}/requirements-build.txt +0 -0
  24. {cycl-0.2.1 → cycl-0.2.2}/requirements-dev.txt +0 -0
  25. {cycl-0.2.1 → cycl-0.2.2}/requirements.txt +0 -0
  26. {cycl-0.2.1 → cycl-0.2.2}/setup.cfg +0 -0
  27. {cycl-0.2.1 → cycl-0.2.2}/src/cycl/__init__.py +0 -0
  28. {cycl-0.2.1 → cycl-0.2.2}/src/cycl/__main__.py +0 -0
  29. {cycl-0.2.1 → cycl-0.2.2}/src/cycl/cycl.py +0 -0
  30. {cycl-0.2.1 → cycl-0.2.2}/src/cycl/py.typed +0 -0
  31. {cycl-0.2.1 → cycl-0.2.2}/src/cycl/utils/__init__.py +0 -0
  32. {cycl-0.2.1 → cycl-0.2.2}/src/cycl/utils/cdk.py +0 -0
  33. {cycl-0.2.1 → cycl-0.2.2}/src/cycl/utils/cfn.py +0 -0
  34. {cycl-0.2.1 → cycl-0.2.2}/src/cycl/utils/log_config.py +0 -0
  35. {cycl-0.2.1 → cycl-0.2.2}/src/cycl/utils/testing.py +0 -0
  36. {cycl-0.2.1 → cycl-0.2.2}/src/cycl.egg-info/dependency_links.txt +0 -0
  37. {cycl-0.2.1 → cycl-0.2.2}/src/cycl.egg-info/entry_points.txt +0 -0
  38. {cycl-0.2.1 → cycl-0.2.2}/src/cycl.egg-info/top_level.txt +0 -0
  39. {cycl-0.2.1 → cycl-0.2.2}/tests/__init__.py +0 -0
  40. {cycl-0.2.1 → cycl-0.2.2}/tests/cli_test.py +0 -0
  41. {cycl-0.2.1 → cycl-0.2.2}/tests/cycl_test.py +0 -0
  42. {cycl-0.2.1 → cycl-0.2.2}/tests/utils/__init__.py +0 -0
  43. {cycl-0.2.1 → cycl-0.2.2}/tests/utils/cdk_test.py +0 -0
  44. {cycl-0.2.1 → cycl-0.2.2}/tests/utils/cfn_test.py +0 -0
  45. {cycl-0.2.1 → cycl-0.2.2}/tests/utils/log_config_test.py +0 -0
  46. {cycl-0.2.1 → 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
@@ -181,3 +181,6 @@ aws
181
181
 
182
182
  # make marker files
183
183
  requirements.cache
184
+
185
+ # docs
186
+ docs_dist
@@ -24,11 +24,14 @@ 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
30
  pytest --cov=./src/ $(ARGS)
31
31
 
32
+ docs-serve: ## Serve a live version of the documentation locally
33
+ docker compose up sphinx --remove-orphans
34
+
32
35
  clean: ## Clean generated project files
33
36
  rm -f $(REQ_CACHE)
34
37
  rm -f .coverage
@@ -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
- find . -type d -name "__pycache__" -exec rm -r {} +
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.1
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
@@ -20,6 +21,12 @@ Description-Content-Type: text/markdown
20
21
  License-File: LICENSE
21
22
  Requires-Dist: boto3~=1.0
22
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"
23
30
 
24
31
  # cycl
25
32
 
@@ -28,34 +35,24 @@ Requires-Dist: networkx~=3.0
28
35
  [![PyPI Supported Python Versions](https://img.shields.io/pypi/pyversions/cycl.svg)](https://pypi.python.org/pypi/cycl/)
29
36
  [![Build Status](https://github.com/tcm5343/cycl/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/tcm5343/cycl/actions)
30
37
  [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
38
+ [![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/charliermarsh/ruff/main/assets/badge/v0.json)](https://github.com/charliermarsh/ruff)
39
+ ![Checked with mypy](https://img.shields.io/badge/mypy-checked-blue)
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
- ## Getting started
43
+ ## Documentation
35
44
 
36
- It is recommended to use `pipx` to install `cycl` but you can also use `pip` by simply running `pip install cycl`.
37
-
38
- ### CLI
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
-
48
- 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.
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.
50
-
51
- ## Why use cycl?
52
-
53
- 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.
45
+ Documentation for using `cycl` is found [here](https://tcm5343.github.io/cycl/).
54
46
 
55
47
  ## Contributing
56
48
 
57
49
  `cycl` is being actively developed, instructions will come as it becomes more stable.
58
50
 
51
+ Run `make` to see the available targets and their descriptions.
52
+
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
+
59
55
  To run specific tests:
60
- `tox -e py39 -- ./tests/utils/cdk_test.py`
61
- `make test ARGS=./tests/utils/cdk_test.py`
56
+
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
+ [![PyPI](https://img.shields.io/pypi/v/cycl)](https://pypi.org/project/cycl/)
4
+ [![Downloads](https://static.pepy.tech/badge/cycl)](https://pypi.python.org/pypi/cycl/)
5
+ [![PyPI Supported Python Versions](https://img.shields.io/pypi/pyversions/cycl.svg)](https://pypi.python.org/pypi/cycl/)
6
+ [![Build Status](https://github.com/tcm5343/cycl/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/tcm5343/cycl/actions)
7
+ [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
8
+ [![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/charliermarsh/ruff/main/assets/badge/v0.json)](https://github.com/charliermarsh/ruff)
9
+ ![Checked with mypy](https://img.shields.io/badge/mypy-checked-blue)
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
@@ -0,0 +1,3 @@
1
+ FROM python:3.11-slim
2
+
3
+ WORKDIR /work
cycl-0.2.2/docs/cmd.md ADDED
@@ -0,0 +1,8 @@
1
+ # cycl
2
+
3
+ ```{argparse}
4
+ :module: cycl.cli
5
+ :func: create_parser
6
+ :prog: cycl
7
+ ```
8
+
@@ -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']
@@ -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.1'
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'
@@ -27,8 +27,18 @@ dependencies = [
27
27
  'networkx~=3.0',
28
28
  ]
29
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
+
30
39
  [project.urls]
31
40
  Repository = 'http://github.com/tcm5343/cycl'
41
+ Documentation = 'https://tcm5343.github.io/cycl/index.html'
32
42
 
33
43
  [project.scripts]
34
44
  cycl = 'cycl.cli:app'
@@ -55,6 +65,10 @@ ignore = [
55
65
  'PLR2004', # magic-value-comparison
56
66
  'S101', # assert
57
67
  ]
68
+ 'docs/**' = [
69
+ 'INP001', # implicit-namespace-package
70
+ 'A001', # builtin-variable-shadowing
71
+ ]
58
72
  '__init__.py' = [
59
73
  'F401', # unused-import
60
74
  ]
@@ -13,7 +13,7 @@ from cycl.utils.log_config import configure_log
13
13
  log = getLogger(__name__)
14
14
 
15
15
 
16
- def app() -> None:
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.1
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
@@ -20,6 +21,12 @@ Description-Content-Type: text/markdown
20
21
  License-File: LICENSE
21
22
  Requires-Dist: boto3~=1.0
22
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"
23
30
 
24
31
  # cycl
25
32
 
@@ -28,34 +35,24 @@ Requires-Dist: networkx~=3.0
28
35
  [![PyPI Supported Python Versions](https://img.shields.io/pypi/pyversions/cycl.svg)](https://pypi.python.org/pypi/cycl/)
29
36
  [![Build Status](https://github.com/tcm5343/cycl/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/tcm5343/cycl/actions)
30
37
  [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
38
+ [![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/charliermarsh/ruff/main/assets/badge/v0.json)](https://github.com/charliermarsh/ruff)
39
+ ![Checked with mypy](https://img.shields.io/badge/mypy-checked-blue)
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
- ## Getting started
43
+ ## Documentation
35
44
 
36
- It is recommended to use `pipx` to install `cycl` but you can also use `pip` by simply running `pip install cycl`.
37
-
38
- ### CLI
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
-
48
- 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.
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.
50
-
51
- ## Why use cycl?
52
-
53
- 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.
45
+ Documentation for using `cycl` is found [here](https://tcm5343.github.io/cycl/).
54
46
 
55
47
  ## Contributing
56
48
 
57
49
  `cycl` is being actively developed, instructions will come as it becomes more stable.
58
50
 
51
+ Run `make` to see the available targets and their descriptions.
52
+
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
+
59
55
  To run specific tests:
60
- `tox -e py39 -- ./tests/utils/cdk_test.py`
61
- `make test ARGS=./tests/utils/cdk_test.py`
56
+
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
@@ -0,0 +1,9 @@
1
+ boto3~=1.0
2
+ networkx~=3.0
3
+
4
+ [docs]
5
+ myst-parser==4.0.1
6
+ sphinx_rtd_theme==3.0.2
7
+ sphinx-argparse==0.5.2
8
+ sphinx-autobuild==2024.10.3
9
+ sphinx==8.1.3
@@ -1,34 +0,0 @@
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}"
cycl-0.2.1/README.md DELETED
@@ -1,38 +0,0 @@
1
- # cycl
2
-
3
- [![PyPI](https://img.shields.io/pypi/v/cycl)](https://pypi.org/project/cycl/)
4
- [![Downloads](https://static.pepy.tech/badge/cycl)](https://pypi.python.org/pypi/cycl/)
5
- [![PyPI Supported Python Versions](https://img.shields.io/pypi/pyversions/cycl.svg)](https://pypi.python.org/pypi/cycl/)
6
- [![Build Status](https://github.com/tcm5343/cycl/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/tcm5343/cycl/actions)
7
- [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
8
-
9
- 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.
10
-
11
- ## Getting started
12
-
13
- It is recommended to use `pipx` to install `cycl` but you can also use `pip` by simply running `pip install cycl`.
14
-
15
- ### CLI
16
-
17
- - `cycl check --exit-zero` - exit 0 regardless of result
18
- - `cycl check --log-level` - set the logging level (default: WARNING)
19
- - `cycl check --cdk-out /path/to/cdk.out` - path to cdk.out, where stacks are CDK synthesized to CFN templates
20
-
21
- ## How to use cycl?
22
-
23
- There are two main use cases for `cycl`.
24
-
25
- 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.
26
- 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.
27
-
28
- ## Why use cycl?
29
-
30
- 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.
31
-
32
- ## Contributing
33
-
34
- `cycl` is being actively developed, instructions will come as it becomes more stable.
35
-
36
- To run specific tests:
37
- `tox -e py39 -- ./tests/utils/cdk_test.py`
38
- `make test ARGS=./tests/utils/cdk_test.py`
@@ -1,2 +0,0 @@
1
- boto3~=1.0
2
- networkx~=3.0
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