Skip to content

Commit

Permalink
Change default_python template to auto-update version on each wheel b…
Browse files Browse the repository at this point in the history
…uild (#1034)

## Changes
Change default_python template to auto-update version on each wheel
build
  • Loading branch information
andrewnester authored Dec 1, 2023
1 parent 60a8abd commit cdf29da
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit cdf29da

Please sign in to comment.