Skip to content

Commit 728dcb3

Browse files
Fixes module finding bug.
1 parent c05929d commit 728dcb3

File tree

3 files changed

+13
-5
lines changed

3 files changed

+13
-5
lines changed

decomp/__init__.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,17 @@
3535
"""
3636

3737
# standard library imports
38+
import importlib.metadata
3839
import importlib.resources
3940
import os
4041
from logging import DEBUG, basicConfig
4142

43+
# Package version
44+
try:
45+
__version__ = importlib.metadata.version("decomp")
46+
except importlib.metadata.PackageNotFoundError:
47+
__version__ = "unknown"
48+
4249
# local imports
4350
from .semantics.uds import (
4451
NormalizedUDSAnnotation,
@@ -56,6 +63,7 @@
5663
)
5764

5865
__all__ = [
66+
'__version__',
5967
'NormalizedUDSAnnotation',
6068
'RawUDSAnnotation',
6169
'UDSCorpus',

docs/source/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@
2424
author = 'Aaron Steven White'
2525

2626
# The full version, including alpha/beta/rc tags
27-
release = '0.3.0'
28-
version = '0.3.0'
27+
release = '0.3.1'
28+
version = '0.3.1'
2929

3030
# -- General configuration ---------------------------------------------------
3131

pyproject.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "decomp"
7-
version = "0.3.0"
7+
version = "0.3.1"
88
description = "Toolkit for working with Universal Decompositional Semantics graphs"
99
authors = [
1010
{name = "Aaron Steven White", email = "aaron.white@rochester.edu"}
@@ -65,11 +65,11 @@ parsing = [
6565
]
6666

6767
[tool.setuptools]
68-
packages = ["decomp"]
68+
packages = {find = {}}
6969
include-package-data = true
7070

7171
[tool.setuptools.package-data]
72-
decomp = ["data/*"]
72+
decomp = ["data/**/*"]
7373

7474
[tool.pytest.ini_options]
7575
testpaths = ["tests"]

0 commit comments

Comments
 (0)