Skip to content

Commit

Permalink
build: use version from git
Browse files Browse the repository at this point in the history
This bit was overlooked during the Starbase integration.
  • Loading branch information
tigarmo authored and lengau committed Sep 19, 2024
1 parent 8bda43f commit edac35c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 13 deletions.
8 changes: 0 additions & 8 deletions .bumpversion.cfg

This file was deleted.

17 changes: 12 additions & 5 deletions craft_grammar/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,7 @@
# You should have received a copy of the GNU Lesser General Public License
# along with this program; if not, write to the Free Software Foundation,
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.

"""Enhance part definitions with advanced grammar."""

__version__ = "2.0.0"

"""Enhance project definitions with advanced grammar."""

from . import errors
from ._compound import CompoundStatement
Expand All @@ -29,7 +25,18 @@
from ._try import TryStatement
from .create import create_grammar_model

try:
from ._version import __version__
except ImportError: # pragma: no cover
from importlib.metadata import version, PackageNotFoundError

try:
__version__ = version("craft-grammar")
except PackageNotFoundError:
__version__ = "dev"

__all__ = [
"__version__",
"errors",
"CallStack",
"CompoundStatement",
Expand Down

0 comments on commit edac35c

Please sign in to comment.