Skip to content

feat: export changelog in addition to readme, license, requirements.txt #683

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jan 6, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased - 0.9.2+snapshot]
### Fixed
- #681 Convert specified namespaces to upper case for `enable` and `unmap` commands.
- #680 Always export static files (README.md, LICENSE, requirements.txt) if existent
- #680, #683 Always export static files (README.md, LICENSE, requirements.txt, CHANGELOG.md) if existent

## [0.9.1] - 2024-12-18

Expand Down
1 change: 1 addition & 0 deletions src/cls/IPM/Lifecycle/Base.cls
Original file line number Diff line number Diff line change
Expand Up @@ -1185,6 +1185,7 @@ Method %Export(ByRef pParams, ByRef pTargetDirectory As %String, Output pDepende
/// Always keep these files
Set staticFiles = $ListBuild(
"readme.md",
"changelog.md",
"license",
"requirements.txt",
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Method TestWSGIApp()
Set tSC = ##class(%IPM.Main).Shell("static-file-export-test package -DPath="_exportDir)
Do $$$AssertStatusOK(tSC,"Exported to directory " _ exportDir _ " successfully.")
Do $$$AssertTrue(##class(%File).DirectoryExists(exportDir))
For file = "LICENSE","README.md","requirements.txt" {
For file = "LICENSE","README.md","requirements.txt","CHANGELOG.md" {
Set tFile = ##class(%File).NormalizeFilename(file, exportDir)
If '$$$AssertTrue(##class(%File).Exists(tFile)) {
Do $$$LogMessage("File "_tFile_" does not exist.")
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
This is a changelog
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<Module>
<Name>static-file-export-test</Name>
<Version>1.0.0</Version>
<Description>Test whether static files (readme.md, licence, requirements.txt) are properly exported</Description>
<Description>Test whether static files (readme.md, changelog.md, licence, requirements.txt) are properly exported</Description>
<Packaging>module</Packaging>
<AfterInstallMessage>Module installed successfully!</AfterInstallMessage>
</Module>
Expand Down
Loading