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.
Files changed (38) hide show
  1. {cycl-0.2.0 → cycl-0.2.1}/.github/workflows/ci.yml +7 -14
  2. {cycl-0.2.0 → cycl-0.2.1}/Makefile +1 -1
  3. {cycl-0.2.0 → cycl-0.2.1}/PKG-INFO +9 -5
  4. {cycl-0.2.0 → cycl-0.2.1}/README.md +8 -3
  5. {cycl-0.2.0 → cycl-0.2.1}/pyproject.toml +14 -2
  6. {cycl-0.2.0 → cycl-0.2.1}/src/cycl.egg-info/PKG-INFO +9 -5
  7. {cycl-0.2.0 → cycl-0.2.1}/.github/dependabot.yml +0 -0
  8. {cycl-0.2.0 → cycl-0.2.1}/.github/workflows/release.yml +0 -0
  9. {cycl-0.2.0 → cycl-0.2.1}/.gitignore +0 -0
  10. {cycl-0.2.0 → cycl-0.2.1}/LICENSE +0 -0
  11. {cycl-0.2.0 → cycl-0.2.1}/TODO.md +0 -0
  12. {cycl-0.2.0 → cycl-0.2.1}/requirements-build.txt +0 -0
  13. {cycl-0.2.0 → cycl-0.2.1}/requirements-dev.txt +0 -0
  14. {cycl-0.2.0 → cycl-0.2.1}/requirements.txt +0 -0
  15. {cycl-0.2.0 → cycl-0.2.1}/setup.cfg +0 -0
  16. {cycl-0.2.0 → cycl-0.2.1}/src/cycl/__init__.py +0 -0
  17. {cycl-0.2.0 → cycl-0.2.1}/src/cycl/__main__.py +0 -0
  18. {cycl-0.2.0 → cycl-0.2.1}/src/cycl/cli.py +0 -0
  19. {cycl-0.2.0 → cycl-0.2.1}/src/cycl/cycl.py +0 -0
  20. {cycl-0.2.0 → cycl-0.2.1}/src/cycl/py.typed +0 -0
  21. {cycl-0.2.0 → cycl-0.2.1}/src/cycl/utils/__init__.py +0 -0
  22. {cycl-0.2.0 → cycl-0.2.1}/src/cycl/utils/cdk.py +0 -0
  23. {cycl-0.2.0 → cycl-0.2.1}/src/cycl/utils/cfn.py +0 -0
  24. {cycl-0.2.0 → cycl-0.2.1}/src/cycl/utils/log_config.py +0 -0
  25. {cycl-0.2.0 → cycl-0.2.1}/src/cycl/utils/testing.py +0 -0
  26. {cycl-0.2.0 → cycl-0.2.1}/src/cycl.egg-info/SOURCES.txt +0 -0
  27. {cycl-0.2.0 → cycl-0.2.1}/src/cycl.egg-info/dependency_links.txt +0 -0
  28. {cycl-0.2.0 → cycl-0.2.1}/src/cycl.egg-info/entry_points.txt +0 -0
  29. {cycl-0.2.0 → cycl-0.2.1}/src/cycl.egg-info/requires.txt +0 -0
  30. {cycl-0.2.0 → cycl-0.2.1}/src/cycl.egg-info/top_level.txt +0 -0
  31. {cycl-0.2.0 → cycl-0.2.1}/tests/__init__.py +0 -0
  32. {cycl-0.2.0 → cycl-0.2.1}/tests/cli_test.py +0 -0
  33. {cycl-0.2.0 → cycl-0.2.1}/tests/cycl_test.py +0 -0
  34. {cycl-0.2.0 → cycl-0.2.1}/tests/utils/__init__.py +0 -0
  35. {cycl-0.2.0 → cycl-0.2.1}/tests/utils/cdk_test.py +0 -0
  36. {cycl-0.2.0 → cycl-0.2.1}/tests/utils/cfn_test.py +0 -0
  37. {cycl-0.2.0 → cycl-0.2.1}/tests/utils/log_config_test.py +0 -0
  38. {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, edited, synchronize]
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: 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/
28
+ - name: setup tox
29
+ run: pip install tox
39
30
 
40
31
  - name: test
41
- run: pytest --cov=./src/ ./tests/
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/ ./tests/
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.0
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
  [![PyPI](https://img.shields.io/pypi/v/cycl)](https://pypi.org/project/cycl/)
28
- [![Downloads](https://static.pepy.tech/badge/cycl)](https://pepy.tech/projects/cycl)
27
+ [![Downloads](https://static.pepy.tech/badge/cycl)](https://pypi.python.org/pypi/cycl/)
28
+ [![PyPI Supported Python Versions](https://img.shields.io/pypi/pyversions/cycl.svg)](https://pypi.python.org/pypi/cycl/)
29
29
  [![Build Status](https://github.com/tcm5343/cycl/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/tcm5343/cycl/actions)
30
30
  [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](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
- Install `cycl` by running `pip install cycl`.
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 `. 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.
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
  [![PyPI](https://img.shields.io/pypi/v/cycl)](https://pypi.org/project/cycl/)
4
- [![Downloads](https://static.pepy.tech/badge/cycl)](https://pepy.tech/projects/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/)
5
6
  [![Build Status](https://github.com/tcm5343/cycl/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/tcm5343/cycl/actions)
6
7
  [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](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
- Install `cycl` by running `pip install cycl`.
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 `. 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
+ 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.0'
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.0
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
  [![PyPI](https://img.shields.io/pypi/v/cycl)](https://pypi.org/project/cycl/)
28
- [![Downloads](https://static.pepy.tech/badge/cycl)](https://pepy.tech/projects/cycl)
27
+ [![Downloads](https://static.pepy.tech/badge/cycl)](https://pypi.python.org/pypi/cycl/)
28
+ [![PyPI Supported Python Versions](https://img.shields.io/pypi/pyversions/cycl.svg)](https://pypi.python.org/pypi/cycl/)
29
29
  [![Build Status](https://github.com/tcm5343/cycl/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/tcm5343/cycl/actions)
30
30
  [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](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
- Install `cycl` by running `pip install cycl`.
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 `. 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.
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