python-package-folder 4.3.5__py3-none-any.whl → 4.3.6__py3-none-any.whl
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.
- python_package_folder/scripts/get-next-version.cjs +14 -0
- {python_package_folder-4.3.5.dist-info → python_package_folder-4.3.6.dist-info}/METADATA +1 -1
- {python_package_folder-4.3.5.dist-info → python_package_folder-4.3.6.dist-info}/RECORD +6 -6
- {python_package_folder-4.3.5.dist-info → python_package_folder-4.3.6.dist-info}/WHEEL +0 -0
- {python_package_folder-4.3.5.dist-info → python_package_folder-4.3.6.dist-info}/entry_points.txt +0 -0
- {python_package_folder-4.3.5.dist-info → python_package_folder-4.3.6.dist-info}/licenses/LICENSE +0 -0
|
@@ -74,10 +74,24 @@ if (!fs.existsSync(workingDir)) {
|
|
|
74
74
|
|
|
75
75
|
// For subfolder builds, ensure package.json exists with correct name
|
|
76
76
|
let tempPackageJson = null;
|
|
77
|
+
let tempProjectRootPackageJson = null; // Track project root package.json if we create it
|
|
77
78
|
let backupCreatedByScript = false;
|
|
78
79
|
let fileCreatedByScript = false;
|
|
79
80
|
let originalPackageJsonContent = null; // Track original content for restoration
|
|
80
81
|
if (isSubfolderBuild) {
|
|
82
|
+
// First, ensure package.json exists at project root (semantic-release-commit-filter may need it)
|
|
83
|
+
const projectRootPackageJson = path.join(projectRoot, 'package.json');
|
|
84
|
+
if (!fs.existsSync(projectRootPackageJson)) {
|
|
85
|
+
// Create minimal package.json at project root
|
|
86
|
+
const rootPackageJsonContent = JSON.stringify({
|
|
87
|
+
name: path.basename(projectRoot),
|
|
88
|
+
version: '0.0.0'
|
|
89
|
+
}, null, 2);
|
|
90
|
+
fs.writeFileSync(projectRootPackageJson, rootPackageJsonContent, 'utf8');
|
|
91
|
+
tempProjectRootPackageJson = projectRootPackageJson;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
// Then, ensure package.json exists in subfolder
|
|
81
95
|
const packageJsonPath = path.join(workingDir, 'package.json');
|
|
82
96
|
const hadPackageJson = fs.existsSync(packageJsonPath);
|
|
83
97
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: python-package-folder
|
|
3
|
-
Version: 4.3.
|
|
3
|
+
Version: 4.3.6
|
|
4
4
|
Summary: Python package to automatically package and build a folder, fetching all relevant dependencies.
|
|
5
5
|
Project-URL: Repository, https://github.com/alelom/python-package-folder
|
|
6
6
|
Author-email: Alessio Lombardi <work@alelom.com>
|
|
@@ -11,9 +11,9 @@ python_package_folder/subfolder_build.py,sha256=oH_KKLJIMByUZCl8y3AyohUO6Om0OvsI
|
|
|
11
11
|
python_package_folder/types.py,sha256=3yeSRR5p_3PDKEAaehW_RJ7NwJHexOIeA08bGaT1iSY,2368
|
|
12
12
|
python_package_folder/utils.py,sha256=lIkWsFKeAYAJ9TDUM99T4pUBHJVbUvCdUgkWQN-LUho,3111
|
|
13
13
|
python_package_folder/version.py,sha256=kIDP6S9trEfs9gj7lBYGxrWm4RPssRla24UtlO9Jkh4,9111
|
|
14
|
-
python_package_folder/scripts/get-next-version.cjs,sha256=
|
|
15
|
-
python_package_folder-4.3.
|
|
16
|
-
python_package_folder-4.3.
|
|
17
|
-
python_package_folder-4.3.
|
|
18
|
-
python_package_folder-4.3.
|
|
19
|
-
python_package_folder-4.3.
|
|
14
|
+
python_package_folder/scripts/get-next-version.cjs,sha256=PsfARiP5L_FUHkTa90HKrqWsXqewHG67jzfBeJzV3J8,25918
|
|
15
|
+
python_package_folder-4.3.6.dist-info/METADATA,sha256=EZyibTyquo1co4ECpF8i1KRxcg1i9PCQZe5K-MUP1xQ,37517
|
|
16
|
+
python_package_folder-4.3.6.dist-info/WHEEL,sha256=QccIxa26bgl1E6uMy58deGWi-0aeIkkangHcxk2kWfw,87
|
|
17
|
+
python_package_folder-4.3.6.dist-info/entry_points.txt,sha256=ttu4wAhoYSHGhWQNercLz9IVTTpXxhVlRA9vSTvaLe0,91
|
|
18
|
+
python_package_folder-4.3.6.dist-info/licenses/LICENSE,sha256=vNgRJh8YiecqZoZld7TtwPI5I72HIymKD9g32fiJjCE,1073
|
|
19
|
+
python_package_folder-4.3.6.dist-info/RECORD,,
|
|
File without changes
|
{python_package_folder-4.3.5.dist-info → python_package_folder-4.3.6.dist-info}/entry_points.txt
RENAMED
|
File without changes
|
{python_package_folder-4.3.5.dist-info → python_package_folder-4.3.6.dist-info}/licenses/LICENSE
RENAMED
|
File without changes
|