mirror of https://github.com/databricks/cli.git
Change default_python template to auto-update version on each wheel build (#1034)
## Changes Change default_python template to auto-update version on each wheel build
This commit is contained in:
parent
60a8abdcd7
commit
cdf29da27b
|
@ -10,11 +10,14 @@ from setuptools import setup, find_packages
|
|||
import sys
|
||||
sys.path.append('./src')
|
||||
|
||||
import datetime
|
||||
import {{.project_name}}
|
||||
|
||||
setup(
|
||||
name="{{.project_name}}",
|
||||
version={{.project_name}}.__version__,
|
||||
# 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
|
||||
version={{.project_name}}.__version__ + "+" + datetime.datetime.utcnow().strftime("%Y%m%d.%H%M%S"),
|
||||
url="https://databricks.com",
|
||||
author="{{user_name}}",
|
||||
description="wheel file based on {{.project_name}}/src",
|
||||
|
|
Loading…
Reference in New Issue