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:
Andrew Nester 2023-12-01 14:24:55 +01:00 committed by GitHub
parent 60a8abdcd7
commit cdf29da27b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -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",