diff --git a/crossref/__init__.py b/crossref/__init__.py index 3585554..e0a98b6 100644 --- a/crossref/__init__.py +++ b/crossref/__init__.py @@ -1 +1,3 @@ -VERSION = "1.5.2" +from importlib import metadata + +VERSION = metadata.version("crossrefapi") diff --git a/pyproject.toml b/pyproject.toml index 74f0eb7..f11a512 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,6 +4,9 @@ version = "1.6.0" description = "Library that implements the endpoints of the Crossref API" authors = ["Fabio Batalha "] readme = "README.rst" +packages = [ + { include = "crossref", from="."} +] [tool.poetry.dependencies] python = "^3.8"