bk-resource 0.4.12__tar.gz → 0.4.13__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.
- {bk_resource-0.4.12 → bk_resource-0.4.13}/PKG-INFO +11 -3
- {bk_resource-0.4.12 → bk_resource-0.4.13}/bk_resource/management/finder.py +10 -2
- {bk_resource-0.4.12 → bk_resource-0.4.13}/bk_resource/settings.py +1 -0
- {bk_resource-0.4.12 → bk_resource-0.4.13}/bk_resource.egg-info/PKG-INFO +11 -3
- {bk_resource-0.4.12 → bk_resource-0.4.13}/readme.md +1 -1
- {bk_resource-0.4.12 → bk_resource-0.4.13}/setup.py +1 -1
- {bk_resource-0.4.12 → bk_resource-0.4.13}/LICENSE.txt +0 -0
- {bk_resource-0.4.12 → bk_resource-0.4.13}/MANIFEST.in +0 -0
- {bk_resource-0.4.12 → bk_resource-0.4.13}/bk_resource/__init__.py +0 -0
- {bk_resource-0.4.12 → bk_resource-0.4.13}/bk_resource/apps.py +0 -0
- {bk_resource-0.4.12 → bk_resource-0.4.13}/bk_resource/base.py +0 -0
- {bk_resource-0.4.12 → bk_resource-0.4.13}/bk_resource/conf/__init__.py +0 -0
- {bk_resource-0.4.12 → bk_resource-0.4.13}/bk_resource/conf/app_template/__init__.py-tpl +0 -0
- {bk_resource-0.4.12 → bk_resource-0.4.13}/bk_resource/conf/app_template/admin.py-tpl +0 -0
- {bk_resource-0.4.12 → bk_resource-0.4.13}/bk_resource/conf/app_template/apps.py-tpl +0 -0
- {bk_resource-0.4.12 → bk_resource-0.4.13}/bk_resource/conf/app_template/migrations/__init__.py-tpl +0 -0
- {bk_resource-0.4.12 → bk_resource-0.4.13}/bk_resource/conf/app_template/models.py-tpl +0 -0
- {bk_resource-0.4.12 → bk_resource-0.4.13}/bk_resource/conf/app_template/resources.py-tpl +0 -0
- {bk_resource-0.4.12 → bk_resource-0.4.13}/bk_resource/conf/app_template/serializers.py-tpl +0 -0
- {bk_resource-0.4.12 → bk_resource-0.4.13}/bk_resource/conf/app_template/urls.py-tpl +0 -0
- {bk_resource-0.4.12 → bk_resource-0.4.13}/bk_resource/conf/app_template/views.py-tpl +0 -0
- {bk_resource-0.4.12 → bk_resource-0.4.13}/bk_resource/contrib/__init__.py +0 -0
- {bk_resource-0.4.12 → bk_resource-0.4.13}/bk_resource/contrib/api.py +0 -0
- {bk_resource-0.4.12 → bk_resource-0.4.13}/bk_resource/contrib/bk_api.py +0 -0
- {bk_resource-0.4.12 → bk_resource-0.4.13}/bk_resource/contrib/cache.py +0 -0
- {bk_resource-0.4.12 → bk_resource-0.4.13}/bk_resource/contrib/model.py +0 -0
- {bk_resource-0.4.12 → bk_resource-0.4.13}/bk_resource/exceptions.py +0 -0
- {bk_resource-0.4.12 → bk_resource-0.4.13}/bk_resource/locale/en/LC_MESSAGES/django.mo +0 -0
- {bk_resource-0.4.12 → bk_resource-0.4.13}/bk_resource/locale/en/LC_MESSAGES/django.po +0 -0
- {bk_resource-0.4.12 → bk_resource-0.4.13}/bk_resource/locale/zh_CN/LC_MESSAGES/django.mo +0 -0
- {bk_resource-0.4.12 → bk_resource-0.4.13}/bk_resource/locale/zh_CN/LC_MESSAGES/django.po +0 -0
- {bk_resource-0.4.12 → bk_resource-0.4.13}/bk_resource/management/__init__.py +0 -0
- {bk_resource-0.4.12 → bk_resource-0.4.13}/bk_resource/management/commands/__init__.py +0 -0
- {bk_resource-0.4.12 → bk_resource-0.4.13}/bk_resource/management/commands/generate_resource_stub_file.py +0 -0
- {bk_resource-0.4.12 → bk_resource-0.4.13}/bk_resource/management/commands/start_resource.py +0 -0
- {bk_resource-0.4.12 → bk_resource-0.4.13}/bk_resource/management/exceptions.py +0 -0
- {bk_resource-0.4.12 → bk_resource-0.4.13}/bk_resource/management/root.py +0 -0
- {bk_resource-0.4.12 → bk_resource-0.4.13}/bk_resource/management/stub_file_generator.py +0 -0
- {bk_resource-0.4.12 → bk_resource-0.4.13}/bk_resource/routers.py +0 -0
- {bk_resource-0.4.12 → bk_resource-0.4.13}/bk_resource/serializers.py +0 -0
- {bk_resource-0.4.12 → bk_resource-0.4.13}/bk_resource/tasks.py +0 -0
- {bk_resource-0.4.12 → bk_resource-0.4.13}/bk_resource/tools.py +0 -0
- {bk_resource-0.4.12 → bk_resource-0.4.13}/bk_resource/utils/__init__.py +0 -0
- {bk_resource-0.4.12 → bk_resource-0.4.13}/bk_resource/utils/cache.py +0 -0
- {bk_resource-0.4.12 → bk_resource-0.4.13}/bk_resource/utils/common_utils.py +0 -0
- {bk_resource-0.4.12 → bk_resource-0.4.13}/bk_resource/utils/factory.py +0 -0
- {bk_resource-0.4.12 → bk_resource-0.4.13}/bk_resource/utils/generators.py +0 -0
- {bk_resource-0.4.12 → bk_resource-0.4.13}/bk_resource/utils/inspectors.py +0 -0
- {bk_resource-0.4.12 → bk_resource-0.4.13}/bk_resource/utils/local.py +0 -0
- {bk_resource-0.4.12 → bk_resource-0.4.13}/bk_resource/utils/logger.py +0 -0
- {bk_resource-0.4.12 → bk_resource-0.4.13}/bk_resource/utils/request.py +0 -0
- {bk_resource-0.4.12 → bk_resource-0.4.13}/bk_resource/utils/request_log.py +0 -0
- {bk_resource-0.4.12 → bk_resource-0.4.13}/bk_resource/utils/text.py +0 -0
- {bk_resource-0.4.12 → bk_resource-0.4.13}/bk_resource/utils/thread_backend.py +0 -0
- {bk_resource-0.4.12 → bk_resource-0.4.13}/bk_resource/utils/time_tools.py +0 -0
- {bk_resource-0.4.12 → bk_resource-0.4.13}/bk_resource/viewsets.py +0 -0
- {bk_resource-0.4.12 → bk_resource-0.4.13}/bk_resource.egg-info/SOURCES.txt +0 -0
- {bk_resource-0.4.12 → bk_resource-0.4.13}/bk_resource.egg-info/dependency_links.txt +0 -0
- {bk_resource-0.4.12 → bk_resource-0.4.13}/bk_resource.egg-info/requires.txt +0 -0
- {bk_resource-0.4.12 → bk_resource-0.4.13}/bk_resource.egg-info/top_level.txt +0 -0
- {bk_resource-0.4.12 → bk_resource-0.4.13}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
|
|
1
|
-
Metadata-Version: 2.
|
1
|
+
Metadata-Version: 2.4
|
2
2
|
Name: bk_resource
|
3
|
-
Version: 0.4.
|
3
|
+
Version: 0.4.13
|
4
4
|
Summary: Bk Resource
|
5
5
|
Home-page: https://bk.tencent.com
|
6
6
|
Author: blueking
|
@@ -15,11 +15,19 @@ Requires-Dist: pyinstrument>=3.4.2
|
|
15
15
|
Requires-Dist: arrow>=1.2.0
|
16
16
|
Requires-Dist: django-rest-framework-condition>=0.1.1
|
17
17
|
Requires-Dist: celery>=4.4.0
|
18
|
+
Dynamic: author
|
19
|
+
Dynamic: author-email
|
20
|
+
Dynamic: description
|
21
|
+
Dynamic: description-content-type
|
22
|
+
Dynamic: home-page
|
23
|
+
Dynamic: license-file
|
24
|
+
Dynamic: requires-dist
|
25
|
+
Dynamic: summary
|
18
26
|
|
19
27
|

|
20
28
|
|
21
29
|
[](https://github.com/TencentBlueKing/bk-resource/blob/main/LICENSE.txt)
|
22
|
-
[](https://github.com/TencentBlueKing/bk-resource/releases)
|
23
31
|
[](https://github.com/TencentBlueKing/bk-resource/pulls)
|
24
32
|
[](https://codecov.io/gh/TencentBlueKing/bk-resource)
|
25
33
|
[](https://github.com/TencentBlueKing/bk-resource/actions/workflows/unittest.yml)
|
@@ -42,9 +42,17 @@ class ResourceFinder(BaseFinder):
|
|
42
42
|
app_names = set(app_names)
|
43
43
|
app_configs = [ac for ac in app_configs if ac.name in app_names]
|
44
44
|
|
45
|
+
# 获取需要排除的应用列表
|
46
|
+
exclude_apps_env = bk_resource_settings.RESOURCE_EXCLUDE_APPS
|
47
|
+
exclude_apps = set()
|
48
|
+
if exclude_apps_env:
|
49
|
+
exclude_apps = set(app.strip() for app in exclude_apps_env.split(',') if app.strip())
|
50
|
+
|
45
51
|
for app_config in app_configs:
|
46
|
-
|
47
|
-
|
52
|
+
# 检查当前应用是否在排除列表中
|
53
|
+
if app_config.name not in exclude_apps:
|
54
|
+
self.resource_path += self.find(app_config.path, root_path=os.path.dirname(app_config.path))
|
55
|
+
app_path_directories.append(app_config.path)
|
48
56
|
|
49
57
|
for path in RESOURCE_DIRS:
|
50
58
|
search_path = os.path.join(settings.BASE_DIR, path)
|
@@ -1,6 +1,6 @@
|
|
1
|
-
Metadata-Version: 2.
|
1
|
+
Metadata-Version: 2.4
|
2
2
|
Name: bk_resource
|
3
|
-
Version: 0.4.
|
3
|
+
Version: 0.4.13
|
4
4
|
Summary: Bk Resource
|
5
5
|
Home-page: https://bk.tencent.com
|
6
6
|
Author: blueking
|
@@ -15,11 +15,19 @@ Requires-Dist: pyinstrument>=3.4.2
|
|
15
15
|
Requires-Dist: arrow>=1.2.0
|
16
16
|
Requires-Dist: django-rest-framework-condition>=0.1.1
|
17
17
|
Requires-Dist: celery>=4.4.0
|
18
|
+
Dynamic: author
|
19
|
+
Dynamic: author-email
|
20
|
+
Dynamic: description
|
21
|
+
Dynamic: description-content-type
|
22
|
+
Dynamic: home-page
|
23
|
+
Dynamic: license-file
|
24
|
+
Dynamic: requires-dist
|
25
|
+
Dynamic: summary
|
18
26
|
|
19
27
|

|
20
28
|
|
21
29
|
[](https://github.com/TencentBlueKing/bk-resource/blob/main/LICENSE.txt)
|
22
|
-
[](https://github.com/TencentBlueKing/bk-resource/releases)
|
23
31
|
[](https://github.com/TencentBlueKing/bk-resource/pulls)
|
24
32
|
[](https://codecov.io/gh/TencentBlueKing/bk-resource)
|
25
33
|
[](https://github.com/TencentBlueKing/bk-resource/actions/workflows/unittest.yml)
|
@@ -1,7 +1,7 @@
|
|
1
1
|

|
2
2
|
|
3
3
|
[](https://github.com/TencentBlueKing/bk-resource/blob/main/LICENSE.txt)
|
4
|
-
[](https://github.com/TencentBlueKing/bk-resource/releases)
|
5
5
|
[](https://github.com/TencentBlueKing/bk-resource/pulls)
|
6
6
|
[](https://codecov.io/gh/TencentBlueKing/bk-resource)
|
7
7
|
[](https://github.com/TencentBlueKing/bk-resource/actions/workflows/unittest.yml)
|
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
|
{bk_resource-0.4.12 → bk_resource-0.4.13}/bk_resource/conf/app_template/migrations/__init__.py-tpl
RENAMED
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
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|