mirror of https://github.com/databricks/cli.git
Fix more formatting
This commit is contained in:
parent
e9bf70846f
commit
6f4ba74351
|
@ -29,7 +29,8 @@
|
||||||
"source": [
|
"source": [
|
||||||
{{- if (eq .include_python "yes") }}
|
{{- if (eq .include_python "yes") }}
|
||||||
"import sys\n",
|
"import sys\n",
|
||||||
"sys.path.append('../src')\n",
|
"\n",
|
||||||
|
"sys.path.append(\"../src\")\n",
|
||||||
"from {{.project_name}} import main\n",
|
"from {{.project_name}} import main\n",
|
||||||
"\n",
|
"\n",
|
||||||
"main.get_taxis(spark).show(10)"
|
"main.get_taxis(spark).show(10)"
|
||||||
|
|
|
@ -15,13 +15,13 @@ sys.path.append("./src")
|
||||||
import datetime
|
import datetime
|
||||||
import {{.project_name}}
|
import {{.project_name}}
|
||||||
|
|
||||||
|
local_version = datetime.datetime.utcnow().strftime("%Y%m%d.%H%M%S")
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
name="{{.project_name}}",
|
name="{{.project_name}}",
|
||||||
# We use timestamp as Local version identifier (https://peps.python.org/pep-0440/#local-version-identifiers.)
|
# We use timestamp as Local version identifier (https://peps.python.org/pep-0440/#local-version-identifiers.)
|
||||||
# to ensure that changes to wheel package are picked up when used on all-purpose clusters
|
# to ensure that changes to wheel package are picked up when used on all-purpose clusters
|
||||||
version={{.project_name}}.__version__
|
version={{.project_name}}.__version__ + "+" + local_version,
|
||||||
+ "+"
|
|
||||||
+ datetime.datetime.utcnow().strftime("%Y%m%d.%H%M%S"),
|
|
||||||
url="https://databricks.com",
|
url="https://databricks.com",
|
||||||
author="{{user_name}}",
|
author="{{user_name}}",
|
||||||
description="wheel file based on {{.project_name}}/src",
|
description="wheel file based on {{.project_name}}/src",
|
||||||
|
|
Loading…
Reference in New Issue