Skip to content

Commit

Permalink
change where the version info is stored.
Browse files Browse the repository at this point in the history
  • Loading branch information
jgstew committed Feb 29, 2024
1 parent 7447efd commit 85dc6d8
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[metadata]
# single source version in besapi.__init__.__version__
# can get version on command line with: `python setup.py --version`
version = attr: besapi.__version__
version = attr: besapi.besapi.__version__
long_description = file: README.md
long_description_content_type = text/markdown
classifiers =
Expand Down
2 changes: 0 additions & 2 deletions src/besapi/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,3 @@
# https://stackoverflow.com/questions/279237/import-a-module-from-a-relative-path/4397291

from . import besapi

__version__ = "3.2.1"
2 changes: 2 additions & 0 deletions src/besapi/besapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@
from lxml import etree, objectify
from pkg_resources import resource_filename

__version__ = "3.2.2"

besapi_logger = logging.getLogger("besapi")


Expand Down
5 changes: 4 additions & 1 deletion src/bescli/bescli.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,10 @@
# this is for the case in which we are calling bescli from besapi
import besapi

from besapi import __version__
try:
from besapi.besapi import __version__
except ImportError:
from besapi import __version__


class BESCLInterface(Cmd):
Expand Down

0 comments on commit 85dc6d8

Please sign in to comment.