Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add some version management #58

Merged
merged 2 commits into from
May 28, 2024
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 .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -136,4 +136,7 @@ notebooks/thinklab/checkpoint/**
/tsfmhfdemos/neurips/models/

# Checkpoints
*.checkpoint-*/
*.checkpoint-*/

# Version
/tsfm_public/_version.py
8 changes: 6 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
[build-system]
requires = ["setuptools>=66", "wheel", "Cython"]
requires = ["setuptools>=66", "wheel", "Cython", "setuptools-scm>=8.0"]

[project]
name = "tsfm_public"
requires-python = ">=3.9,<3.12"
version = "0.0.1"
# version = "0.0.1"
dynamic = ["version"]
authors = [{ name = "IBM" }]
description = "Public notebooks and utilities for TSFM"
readme = "README.md"
Expand Down Expand Up @@ -45,6 +46,9 @@ demos = [
# ###################################################


[tool.setuptools_scm]
version_file = "tsfm_public/_version.py"

[tool.ruff]
# Never enforce `E501` (line length violations).
ignore = ["C901", "E501", "E741", "F402", "F823" ]
Expand Down
2 changes: 2 additions & 0 deletions tsfm_public/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
# Copyright contributors to the TSFM project
#

from .version import __version__, __version_tuple__
9 changes: 9 additions & 0 deletions tsfm_public/version.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Copyright contributors to the TSFM project
#

try:
# Local
from ._version import __version__, __version_tuple__ # noqa: F401 # unused import
except ImportError:
__version__ = "unknown"
version_tuple = (0, 0, __version__)
Loading