@corva/create-app 0.65.0-3 → 0.65.0-4

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.
@@ -276,10 +276,10 @@ const addNvmRc = async (root, manifest, runtime) => {
276
276
  *
277
277
  * @param {string} root
278
278
  * @param {Manifest} manifest
279
- * @param {import('./helpers/resolve-app-runtime.js').Runtime} runtime
279
+ * @param {import('../helpers/resolve-app-runtime.js').Runtime} runtime
280
280
  */
281
281
  const addPythonConfigs = async (root, manifest, runtime) => {
282
- await fs.writeFile(resolve(root, '.python-version'), `${runtime.semver}\n`);
282
+ await fs.writeFile(resolve(root, '.python-version'), `${runtime.version}\n`);
283
283
  await fs.writeFile(resolve(root, '.python-virtualenv'), `${manifest.unix_name}\n`);
284
284
  };
285
285
 
@@ -105,13 +105,13 @@ export const resolveAppRuntime = (opts) => {
105
105
  };
106
106
  }
107
107
 
108
- const version = /python(\d\.\d)/.exec(opts.runtime)[1];
108
+ const version = /python(\d\.\d+)/.exec(opts.runtime)[1];
109
109
 
110
110
  return {
111
111
  language: 'python',
112
112
  isRuntimeAvailable: async () => {
113
113
  if (!IS_WINDOWS) {
114
- return checkCliVersion(`python${version}`, version);
114
+ return checkCliVersion(`python3`, version);
115
115
  }
116
116
 
117
117
  return (
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@corva/create-app",
3
- "version": "0.65.0-3",
3
+ "version": "0.65.0-4",
4
4
  "private": false,
5
5
  "description": "Create an app to use it in CORVA.AI",
6
6
  "keywords": [
@@ -1,4 +1,4 @@
1
- from corva import StreamDepthEvent, StreamTimeRecord
1
+ from corva import StreamDepthEvent, StreamDepthRecord
2
2
  from lambda_function import lambda_handler
3
3
 
4
4