cycl 0.2.0__tar.gz → 0.2.1__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.0 → cycl-0.2.1}/.github/workflows/ci.yml +7 -14
- {cycl-0.2.0 → cycl-0.2.1}/Makefile +1 -1
- {cycl-0.2.0 → cycl-0.2.1}/PKG-INFO +9 -5
- {cycl-0.2.0 → cycl-0.2.1}/README.md +8 -3
- {cycl-0.2.0 → cycl-0.2.1}/pyproject.toml +14 -2
- {cycl-0.2.0 → cycl-0.2.1}/src/cycl.egg-info/PKG-INFO +9 -5
- {cycl-0.2.0 → cycl-0.2.1}/.github/dependabot.yml +0 -0
- {cycl-0.2.0 → cycl-0.2.1}/.github/workflows/release.yml +0 -0
- {cycl-0.2.0 → cycl-0.2.1}/.gitignore +0 -0
- {cycl-0.2.0 → cycl-0.2.1}/LICENSE +0 -0
- {cycl-0.2.0 → cycl-0.2.1}/TODO.md +0 -0
- {cycl-0.2.0 → cycl-0.2.1}/requirements-build.txt +0 -0
- {cycl-0.2.0 → cycl-0.2.1}/requirements-dev.txt +0 -0
- {cycl-0.2.0 → cycl-0.2.1}/requirements.txt +0 -0
- {cycl-0.2.0 → cycl-0.2.1}/setup.cfg +0 -0
- {cycl-0.2.0 → cycl-0.2.1}/src/cycl/__init__.py +0 -0
- {cycl-0.2.0 → cycl-0.2.1}/src/cycl/__main__.py +0 -0
- {cycl-0.2.0 → cycl-0.2.1}/src/cycl/cli.py +0 -0
- {cycl-0.2.0 → cycl-0.2.1}/src/cycl/cycl.py +0 -0
- {cycl-0.2.0 → cycl-0.2.1}/src/cycl/py.typed +0 -0
- {cycl-0.2.0 → cycl-0.2.1}/src/cycl/utils/__init__.py +0 -0
- {cycl-0.2.0 → cycl-0.2.1}/src/cycl/utils/cdk.py +0 -0
- {cycl-0.2.0 → cycl-0.2.1}/src/cycl/utils/cfn.py +0 -0
- {cycl-0.2.0 → cycl-0.2.1}/src/cycl/utils/log_config.py +0 -0
- {cycl-0.2.0 → cycl-0.2.1}/src/cycl/utils/testing.py +0 -0
- {cycl-0.2.0 → cycl-0.2.1}/src/cycl.egg-info/SOURCES.txt +0 -0
- {cycl-0.2.0 → cycl-0.2.1}/src/cycl.egg-info/dependency_links.txt +0 -0
- {cycl-0.2.0 → cycl-0.2.1}/src/cycl.egg-info/entry_points.txt +0 -0
- {cycl-0.2.0 → cycl-0.2.1}/src/cycl.egg-info/requires.txt +0 -0
- {cycl-0.2.0 → cycl-0.2.1}/src/cycl.egg-info/top_level.txt +0 -0
- {cycl-0.2.0 → cycl-0.2.1}/tests/__init__.py +0 -0
- {cycl-0.2.0 → cycl-0.2.1}/tests/cli_test.py +0 -0
- {cycl-0.2.0 → cycl-0.2.1}/tests/cycl_test.py +0 -0
- {cycl-0.2.0 → cycl-0.2.1}/tests/utils/__init__.py +0 -0
- {cycl-0.2.0 → cycl-0.2.1}/tests/utils/cdk_test.py +0 -0
- {cycl-0.2.0 → cycl-0.2.1}/tests/utils/cfn_test.py +0 -0
- {cycl-0.2.0 → cycl-0.2.1}/tests/utils/log_config_test.py +0 -0
- {cycl-0.2.0 → cycl-0.2.1}/tests/utils/testing_test.py +0 -0
|
@@ -2,7 +2,7 @@ name: CI
|
|
|
2
2
|
|
|
3
3
|
on:
|
|
4
4
|
pull_request:
|
|
5
|
-
types: [opened,
|
|
5
|
+
types: [opened, synchronize]
|
|
6
6
|
push:
|
|
7
7
|
branches: ['master', 'main']
|
|
8
8
|
|
|
@@ -15,7 +15,7 @@ jobs:
|
|
|
15
15
|
fail-fast: false
|
|
16
16
|
matrix:
|
|
17
17
|
os: ['ubuntu-latest']
|
|
18
|
-
python-version: ['3.10', '3.11', '3.12', '3.13']
|
|
18
|
+
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']
|
|
19
19
|
runs-on: ${{ matrix.os }}
|
|
20
20
|
steps:
|
|
21
21
|
- uses: actions/checkout@v4
|
|
@@ -25,17 +25,10 @@ jobs:
|
|
|
25
25
|
python-version: ${{ matrix.python-version }}
|
|
26
26
|
cache: 'pip'
|
|
27
27
|
|
|
28
|
-
- name:
|
|
29
|
-
run: pip install
|
|
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/
|
|
28
|
+
- name: setup tox
|
|
29
|
+
run: pip install tox
|
|
39
30
|
|
|
40
31
|
- name: test
|
|
41
|
-
run:
|
|
32
|
+
run: |
|
|
33
|
+
TOXENV="py$(echo ${{ matrix.python-version }} | sed 's/\.//')"
|
|
34
|
+
tox -e "${TOXENV}"
|
|
@@ -27,7 +27,7 @@ validate: ## Validate the project is linted and formatted
|
|
|
27
27
|
mypy ./src/
|
|
28
28
|
|
|
29
29
|
test: ## Run unit tests and generate coverage report
|
|
30
|
-
pytest --cov=./src/
|
|
30
|
+
pytest --cov=./src/ $(ARGS)
|
|
31
31
|
|
|
32
32
|
clean: ## Clean generated project files
|
|
33
33
|
rm -f $(REQ_CACHE)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.2
|
|
2
2
|
Name: cycl
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.1
|
|
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
6
|
Keywords: aws,cdk,cycle,circular,dependency,infrastructure,boto3,cloud
|
|
@@ -11,7 +11,6 @@ Classifier: Programming Language :: Python :: 3.10
|
|
|
11
11
|
Classifier: Programming Language :: Python :: 3.11
|
|
12
12
|
Classifier: Programming Language :: Python :: 3.12
|
|
13
13
|
Classifier: Programming Language :: Python :: 3.13
|
|
14
|
-
Classifier: Programming Language :: Python :: 3.8
|
|
15
14
|
Classifier: Programming Language :: Python :: 3.9
|
|
16
15
|
Classifier: Programming Language :: Python :: 3
|
|
17
16
|
Classifier: Programming Language :: Python
|
|
@@ -25,7 +24,8 @@ Requires-Dist: networkx~=3.0
|
|
|
25
24
|
# cycl
|
|
26
25
|
|
|
27
26
|
[](https://pypi.org/project/cycl/)
|
|
28
|
-
[](https://
|
|
27
|
+
[](https://pypi.python.org/pypi/cycl/)
|
|
28
|
+
[](https://pypi.python.org/pypi/cycl/)
|
|
29
29
|
[](https://github.com/tcm5343/cycl/actions)
|
|
30
30
|
[](https://opensource.org/licenses/MIT)
|
|
31
31
|
|
|
@@ -33,7 +33,7 @@ cycl is a CLI and Python SDK to help identify cross-stack import/export circular
|
|
|
33
33
|
|
|
34
34
|
## Getting started
|
|
35
35
|
|
|
36
|
-
|
|
36
|
+
It is recommended to use `pipx` to install `cycl` but you can also use `pip` by simply running `pip install cycl`.
|
|
37
37
|
|
|
38
38
|
### CLI
|
|
39
39
|
|
|
@@ -45,7 +45,7 @@ Install `cycl` by running `pip install cycl`.
|
|
|
45
45
|
|
|
46
46
|
There are two main use cases for `cycl`.
|
|
47
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
|
|
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
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
50
|
|
|
51
51
|
## Why use cycl?
|
|
@@ -55,3 +55,7 @@ Over the lifetime of a project, circular references are bound to be introduced.
|
|
|
55
55
|
## Contributing
|
|
56
56
|
|
|
57
57
|
`cycl` is being actively developed, instructions will come as it becomes more stable.
|
|
58
|
+
|
|
59
|
+
To run specific tests:
|
|
60
|
+
`tox -e py39 -- ./tests/utils/cdk_test.py`
|
|
61
|
+
`make test ARGS=./tests/utils/cdk_test.py`
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
# cycl
|
|
2
2
|
|
|
3
3
|
[](https://pypi.org/project/cycl/)
|
|
4
|
-
[](https://
|
|
4
|
+
[](https://pypi.python.org/pypi/cycl/)
|
|
5
|
+
[](https://pypi.python.org/pypi/cycl/)
|
|
5
6
|
[](https://github.com/tcm5343/cycl/actions)
|
|
6
7
|
[](https://opensource.org/licenses/MIT)
|
|
7
8
|
|
|
@@ -9,7 +10,7 @@ cycl is a CLI and Python SDK to help identify cross-stack import/export circular
|
|
|
9
10
|
|
|
10
11
|
## Getting started
|
|
11
12
|
|
|
12
|
-
|
|
13
|
+
It is recommended to use `pipx` to install `cycl` but you can also use `pip` by simply running `pip install cycl`.
|
|
13
14
|
|
|
14
15
|
### CLI
|
|
15
16
|
|
|
@@ -21,7 +22,7 @@ Install `cycl` by running `pip install cycl`.
|
|
|
21
22
|
|
|
22
23
|
There are two main use cases for `cycl`.
|
|
23
24
|
|
|
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
|
|
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.
|
|
25
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.
|
|
26
27
|
|
|
27
28
|
## Why use cycl?
|
|
@@ -31,3 +32,7 @@ Over the lifetime of a project, circular references are bound to be introduced.
|
|
|
31
32
|
## Contributing
|
|
32
33
|
|
|
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`
|
|
@@ -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.1'
|
|
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',
|
|
@@ -84,3 +83,16 @@ omit = [
|
|
|
84
83
|
[tool.pytest.ini_options]
|
|
85
84
|
log_cli_level = 'INFO'
|
|
86
85
|
addopts = ['--import-mode=importlib']
|
|
86
|
+
|
|
87
|
+
[tool.tox]
|
|
88
|
+
env_list = ["py39", "py310", "py311", "py312", "py313"]
|
|
89
|
+
skip_missing_interpreters = false
|
|
90
|
+
|
|
91
|
+
[tool.tox.env_run_base]
|
|
92
|
+
allowlist_externals = ['make']
|
|
93
|
+
package = "editable"
|
|
94
|
+
deps = '-rrequirements-dev.txt'
|
|
95
|
+
commands = [
|
|
96
|
+
["make", "validate"],
|
|
97
|
+
["make", "test", "ARGS={posargs}"]
|
|
98
|
+
]
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.2
|
|
2
2
|
Name: cycl
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.1
|
|
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
6
|
Keywords: aws,cdk,cycle,circular,dependency,infrastructure,boto3,cloud
|
|
@@ -11,7 +11,6 @@ Classifier: Programming Language :: Python :: 3.10
|
|
|
11
11
|
Classifier: Programming Language :: Python :: 3.11
|
|
12
12
|
Classifier: Programming Language :: Python :: 3.12
|
|
13
13
|
Classifier: Programming Language :: Python :: 3.13
|
|
14
|
-
Classifier: Programming Language :: Python :: 3.8
|
|
15
14
|
Classifier: Programming Language :: Python :: 3.9
|
|
16
15
|
Classifier: Programming Language :: Python :: 3
|
|
17
16
|
Classifier: Programming Language :: Python
|
|
@@ -25,7 +24,8 @@ Requires-Dist: networkx~=3.0
|
|
|
25
24
|
# cycl
|
|
26
25
|
|
|
27
26
|
[](https://pypi.org/project/cycl/)
|
|
28
|
-
[](https://
|
|
27
|
+
[](https://pypi.python.org/pypi/cycl/)
|
|
28
|
+
[](https://pypi.python.org/pypi/cycl/)
|
|
29
29
|
[](https://github.com/tcm5343/cycl/actions)
|
|
30
30
|
[](https://opensource.org/licenses/MIT)
|
|
31
31
|
|
|
@@ -33,7 +33,7 @@ cycl is a CLI and Python SDK to help identify cross-stack import/export circular
|
|
|
33
33
|
|
|
34
34
|
## Getting started
|
|
35
35
|
|
|
36
|
-
|
|
36
|
+
It is recommended to use `pipx` to install `cycl` but you can also use `pip` by simply running `pip install cycl`.
|
|
37
37
|
|
|
38
38
|
### CLI
|
|
39
39
|
|
|
@@ -45,7 +45,7 @@ Install `cycl` by running `pip install cycl`.
|
|
|
45
45
|
|
|
46
46
|
There are two main use cases for `cycl`.
|
|
47
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
|
|
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
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
50
|
|
|
51
51
|
## Why use cycl?
|
|
@@ -55,3 +55,7 @@ Over the lifetime of a project, circular references are bound to be introduced.
|
|
|
55
55
|
## Contributing
|
|
56
56
|
|
|
57
57
|
`cycl` is being actively developed, instructions will come as it becomes more stable.
|
|
58
|
+
|
|
59
|
+
To run specific tests:
|
|
60
|
+
`tox -e py39 -- ./tests/utils/cdk_test.py`
|
|
61
|
+
`make test ARGS=./tests/utils/cdk_test.py`
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|