Skip to content

Commit

Permalink
Update version to use pyproject.toml as the source of truth
Browse files Browse the repository at this point in the history
  • Loading branch information
AdamWhittingham committed Oct 25, 2023
1 parent a25857f commit 5b6c66e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
CURRENT_VERSION:=$(shell grep "^Version: " PKG-INFO | cut -d" " -f2)
INIT_VERSION:=$(shell grep "__version__" pycronofy/__init__.py | cut -d"'" -f2)
INIT_VERSION:=$(shell grep "version" ./pyproject.toml | cut -d"=" -f2 | tr -d '"[:blank:]' )


.PHONY: all
all: test
Expand Down
4 changes: 3 additions & 1 deletion pycronofy/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
from pycronofy.client import Client # noqa: F401
from pycronofy import settings
__version__ = '2.0.0'
import importlib

__name__ = 'PyCronofy'
__version__ = importlib.metadata.version(__package__ or __name__)

"""
SDK for Cronofy - the Scheduling Platform for Business
Expand Down

0 comments on commit 5b6c66e

Please sign in to comment.