Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
atalman committed Aug 12, 2024
1 parent 5f9554e commit 877acd3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

from setuptools import find_packages, setup

current_date = datetime.now().strftime("%Y.%m.%d")
current_date = datetime.now().strftime("%Y%m%d")


def get_git_commit_id():
Expand All @@ -35,9 +35,9 @@ def read_version(file_path="version.txt"):

use_cpp = os.getenv('USE_CPP')


# Version is year.month.date if using nightlies
version = current_date if os.environ.get("TORCHAO_NIGHTLY") else read_version()
version_prefix = read_version()
# Version is version.dev year month date if using nightlies and version if not
version = f"{version_prefix}.dev{current_date}" if os.environ.get("TORCHAO_NIGHTLY") else version_prefix

import torch

Expand Down

0 comments on commit 877acd3

Please sign in to comment.