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
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ $ pip install --editable . # OR pip install -e .
</pre>

**Version:**<br>
3.0.0 <!-- -Beta --> <!-- -Alpha -->
3.1.0 <!-- -Beta --> <!-- -Alpha -->

Authors:
William Gebhardt, Alexander G. Ororbia II<br>
Expand Down
18 changes: 14 additions & 4 deletions ngcsimlib/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,22 @@
from ngcsimlib._src.deprecators import deprecated, deprecate_args
from ngcsimlib._src.configManager import init_config
from ngcsimlib._src.configManager import get_config, provide_namespace
import argparse, os, json
import sys, argparse, os, json

import pkg_resources
from pkg_resources import get_distribution
########################################################################################################################
if sys.version_info >= (3, 8): ## for new versions of python/ngc-learn
from importlib.metadata import version, distributions, PackageNotFoundError
else: ## for older versions of python before 3.8
from importlib_metadata import version, distributions, PackageNotFoundError

__version__ = get_distribution('ngcsimlib').version
## Following obtains ngc-learn's version
from importlib.metadata import version
__version__ = version("ngcsimlib")

## these two lines below are deprecated if using newer python(s) (had to do this for ngc-learn)
# from pkg_resources import get_distribution
# __version__ = get_distribution('ngcsimlib').version
########################################################################################################################

def configure():
parser = argparse.ArgumentParser(description='Build and run a model using ngclearn')
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "ngcsimlib"
version = "3.0.0"
version = "3.1.0"

description = "Simulation software backend for ngc-learn."
authors = [
Expand Down
Loading