Skip to content

Commit

Permalink
store version in dedicated file and point setup.py to that file to pu…
Browse files Browse the repository at this point in the history
…ll the version from there
  • Loading branch information
benne238 committed Mar 9, 2021
1 parent edaeed3 commit 8917116
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions VERSION
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
VERSION = 1.9.1
9 changes: 8 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
import setuptools
from pathlib import Path
from os import environ
from dotenv import load_dotenv

current_dir = Path(__file__).parent
version_file_path = Path(current_dir, "VERSION")
load_dotenv(version_file_path)

VERSION = environ.get("VERSION")

VERSION = "2.1.0"
python_ldap_version = "3.3.1"

setuptools.setup(
Expand Down

0 comments on commit 8917116

Please sign in to comment.