deply 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.
- {deply-0.2.0/deply.egg-info → deply-0.2.2}/PKG-INFO +2 -2
- {deply-0.2.0 → deply-0.2.2}/README.md +1 -1
- deply-0.2.2/deply/__init__.py +1 -0
- {deply-0.2.0 → deply-0.2.2}/deply/main.py +12 -6
- {deply-0.2.0 → deply-0.2.2/deply.egg-info}/PKG-INFO +2 -2
- {deply-0.2.0 → deply-0.2.2}/setup.py +2 -1
- deply-0.2.0/tests/__init__.py +0 -0
- {deply-0.2.0 → deply-0.2.2}/LICENSE +0 -0
- {deply-0.2.0 → deply-0.2.2}/MANIFEST.in +0 -0
- {deply-0.2.0 → deply-0.2.2}/deply/code_analyzer.py +0 -0
- {deply-0.2.0 → deply-0.2.2}/deply/collectors/__init__.py +0 -0
- {deply-0.2.0 → deply-0.2.2}/deply/collectors/base_collector.py +0 -0
- {deply-0.2.0 → deply-0.2.2}/deply/collectors/bool_collector.py +0 -0
- {deply-0.2.0 → deply-0.2.2}/deply/collectors/class_inherits_collector.py +0 -0
- {deply-0.2.0 → deply-0.2.2}/deply/collectors/class_name_regex_collector.py +0 -0
- {deply-0.2.0 → deply-0.2.2}/deply/collectors/collector_factory.py +0 -0
- {deply-0.2.0 → deply-0.2.2}/deply/collectors/decorator_usage_collector.py +0 -0
- {deply-0.2.0 → deply-0.2.2}/deply/collectors/directory_collector.py +0 -0
- {deply-0.2.0 → deply-0.2.2}/deply/collectors/file_regex_collector.py +0 -0
- {deply-0.2.0 → deply-0.2.2}/deply/config_parser.py +0 -0
- {deply-0.2.0 → deply-0.2.2}/deply/models/__init__.py +0 -0
- {deply-0.2.0 → deply-0.2.2}/deply/models/code_element.py +0 -0
- {deply-0.2.0 → deply-0.2.2}/deply/models/dependency.py +0 -0
- {deply-0.2.0 → deply-0.2.2}/deply/models/layer.py +0 -0
- {deply-0.2.0 → deply-0.2.2}/deply/models/violation.py +0 -0
- {deply-0.2.0 → deply-0.2.2}/deply/reports/__init__.py +0 -0
- {deply-0.2.0/deply → deply-0.2.2/deply/reports/formats}/__init__.py +0 -0
- {deply-0.2.0 → deply-0.2.2}/deply/reports/formats/text_report.py +0 -0
- {deply-0.2.0 → deply-0.2.2}/deply/reports/report_generator.py +0 -0
- {deply-0.2.0 → deply-0.2.2}/deply/rules/__init__.py +0 -0
- {deply-0.2.0 → deply-0.2.2}/deply/rules/base_rule.py +0 -0
- {deply-0.2.0 → deply-0.2.2}/deply/rules/dependency_rule.py +0 -0
- {deply-0.2.0 → deply-0.2.2}/deply/rules/rule_factory.py +0 -0
- {deply-0.2.0/deply/reports/formats → deply-0.2.2/deply/utils}/__init__.py +0 -0
- {deply-0.2.0 → deply-0.2.2}/deply/utils/ast_utils.py +0 -0
- {deply-0.2.0 → deply-0.2.2}/deply.egg-info/SOURCES.txt +0 -0
- {deply-0.2.0 → deply-0.2.2}/deply.egg-info/dependency_links.txt +0 -0
- {deply-0.2.0 → deply-0.2.2}/deply.egg-info/entry_points.txt +0 -0
- {deply-0.2.0 → deply-0.2.2}/deply.egg-info/requires.txt +0 -0
- {deply-0.2.0 → deply-0.2.2}/deply.egg-info/top_level.txt +0 -0
- {deply-0.2.0 → deply-0.2.2}/pyproject.toml +0 -0
- {deply-0.2.0 → deply-0.2.2}/requirements.txt +0 -0
- {deply-0.2.0 → deply-0.2.2}/setup.cfg +0 -0
- {deply-0.2.0/deply/utils → deply-0.2.2/tests}/__init__.py +0 -0
- {deply-0.2.0 → deply-0.2.2}/tests/test.py +0 -0
- {deply-0.2.0 → deply-0.2.2}/tests/test_collectors.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: deply
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.2
|
|
4
4
|
Summary: A tool to enforce architectural patterns in python projects
|
|
5
5
|
Home-page: https://github.com/vashkatsi/deply
|
|
6
6
|
Author: Archil Abuladze
|
|
@@ -80,7 +80,7 @@ deply:
|
|
|
80
80
|
- type: class_name_regex
|
|
81
81
|
class_name_regex: ".*Service$"
|
|
82
82
|
must_not:
|
|
83
|
-
- type:
|
|
83
|
+
- type: file_regex
|
|
84
84
|
regex: ".*/excluded_folder_name/.*"
|
|
85
85
|
- type: decorator_usage
|
|
86
86
|
decorator_name: "deprecated_service"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = '0.2.2'
|
|
@@ -2,6 +2,7 @@ import argparse
|
|
|
2
2
|
import sys
|
|
3
3
|
from pathlib import Path
|
|
4
4
|
|
|
5
|
+
from deply import __version__
|
|
5
6
|
from .code_analyzer import CodeAnalyzer
|
|
6
7
|
from .collectors.collector_factory import CollectorFactory
|
|
7
8
|
from .config_parser import ConfigParser
|
|
@@ -14,18 +15,23 @@ from .rules.dependency_rule import DependencyRule
|
|
|
14
15
|
|
|
15
16
|
def main():
|
|
16
17
|
parser = argparse.ArgumentParser(prog="deply", description='Deply - A dependency analysis tool')
|
|
18
|
+
parser.add_argument('-V', '--version', action='store_true', help='Show the version number and exit')
|
|
19
|
+
|
|
17
20
|
subparsers = parser.add_subparsers(dest='command', help='Sub-commands')
|
|
18
21
|
parser_analyse = subparsers.add_parser('analyze', help='Analyze the project dependencies')
|
|
19
|
-
parser_analyse.add_argument(
|
|
20
|
-
parser_analyse.add_argument(
|
|
22
|
+
parser_analyse.add_argument('--config', type=str, default="deply.yaml", help="Path to the configuration YAML file")
|
|
23
|
+
parser_analyse.add_argument('--report-format', type=str, choices=["text", "json", "html"], default="text",
|
|
21
24
|
help="Format of the output report")
|
|
22
|
-
parser_analyse.add_argument(
|
|
25
|
+
parser_analyse.add_argument('--output', type=str, help="Output file for the report")
|
|
23
26
|
args = parser.parse_args()
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
+
|
|
28
|
+
if args.version:
|
|
29
|
+
version = __version__
|
|
30
|
+
print(f"deply {version}")
|
|
31
|
+
sys.exit(0)
|
|
27
32
|
|
|
28
33
|
# Parse configuration
|
|
34
|
+
config_path = Path(args.config)
|
|
29
35
|
config = ConfigParser(config_path).parse()
|
|
30
36
|
|
|
31
37
|
# Collect code elements and organize them by layers
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: deply
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.2
|
|
4
4
|
Summary: A tool to enforce architectural patterns in python projects
|
|
5
5
|
Home-page: https://github.com/vashkatsi/deply
|
|
6
6
|
Author: Archil Abuladze
|
|
@@ -80,7 +80,7 @@ deply:
|
|
|
80
80
|
- type: class_name_regex
|
|
81
81
|
class_name_regex: ".*Service$"
|
|
82
82
|
must_not:
|
|
83
|
-
- type:
|
|
83
|
+
- type: file_regex
|
|
84
84
|
regex: ".*/excluded_folder_name/.*"
|
|
85
85
|
- type: decorator_usage
|
|
86
86
|
decorator_name: "deprecated_service"
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
from deply import __version__
|
|
1
2
|
from setuptools import setup, find_packages
|
|
2
3
|
|
|
3
4
|
with open("README.md", "r", encoding="utf-8") as fh:
|
|
@@ -5,7 +6,7 @@ with open("README.md", "r", encoding="utf-8") as fh:
|
|
|
5
6
|
|
|
6
7
|
setup(
|
|
7
8
|
name="deply",
|
|
8
|
-
version=
|
|
9
|
+
version=__version__,
|
|
9
10
|
author="Archil Abuladze",
|
|
10
11
|
author_email="armiworker@gmail.com",
|
|
11
12
|
description="A tool to enforce architectural patterns in python projects",
|
deply-0.2.0/tests/__init__.py
DELETED
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|