File tree Expand file tree Collapse file tree 4 files changed +15
-13
lines changed Expand file tree Collapse file tree 4 files changed +15
-13
lines changed Original file line number Diff line number Diff line change @@ -37,8 +37,9 @@ def execute(self, config: test) -> None:
37
37
#Throw an exception if the target exists
38
38
shutil .copytree (source_directory , target_directory , dirs_exist_ok = False )
39
39
40
- #Create the config file as well
41
- shutil .copyfile (pathlib .Path (os .path .dirname (__file__ ))/ '../templates/README' ,'README' )
40
+ # Create a README.md file. Note that this is the README.md for the repository, not the
41
+ # one which will actually be packaged into the app. That is located in the app_template folder.
42
+ shutil .copyfile (pathlib .Path (os .path .dirname (__file__ ))/ '../templates/README.md' ,'README.md' )
42
43
43
44
44
45
print (f"The app '{ config .app .title } ' has been initialized. "
Original file line number Diff line number Diff line change @@ -169,15 +169,8 @@ def packageAppTar(self) -> None:
169
169
170
170
def packageAppSlim (self ) -> None :
171
171
172
-
173
- # input_app_path = pathlib.Path(self.config.build.path_root)/f"{self.config.build.name}"
174
-
175
- # readme_file = pathlib.Path("README")
176
- # if not readme_file.is_file():
177
- # raise Exception("The README file does not exist in this directory. Cannot build app.")
178
- # shutil.copyfile(readme_file, input_app_path/readme_file.name)
179
-
180
-
172
+ raise Exception ("Packaging with splunk-packaging-toolkit not currently supported as slim only supports Python 3.7. "
173
+ "Please raise an issue in the contentctl GitHub if you encounter this exception." )
181
174
try :
182
175
import slim
183
176
from slim .utils import SlimLogger
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ # Contentctl App Readme
2
+
3
+ This README file was automatically created by contentctl init.
4
+ Please fill it with meaningful information that describes your app.
5
+
6
+ Note that this file can contain Markdown and will be richly rendered in GitHub or most other Version Control Systems.
7
+
8
+
9
+ Note: This readme file is actually DIFFERENT from the one that will be packaged as part of your App.
10
+ That file is located at app_template/README.md.
You can’t perform that action at this time.
0 commit comments