Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ def read_requirements(file_path):
with open(file_path, "r") as file:
return file.read().splitlines()

def read_version(file_path="version.txt"):
with open(file_path, "r") as file:
return file.readline().strip()

# Determine the package name based on the presence of an environment variable
package_name = "torchao-nightly" if os.environ.get("TORCHAO_NIGHTLY") else "torchao"
Expand All @@ -23,7 +26,7 @@ def read_requirements(file_path):


# Version is year.month.date if using nightlies
version = current_date if package_name == "torchao-nightly" else "0.2.0"
version = current_date if package_name == "torchao-nightly" else read_version()

import torch

Expand Down
1 change: 1 addition & 0 deletions version.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0.3.0