birtrashclient 0.1.2.dev1__tar.gz → 0.1.3.dev1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: birtrashclient
3
- Version: 0.1.2.dev1
3
+ Version: 0.1.3.dev1
4
4
  Summary: Async client library for the BIR Trash Collection API
5
5
  Project-URL: Homepage, https://github.com/eirikgrindevoll/birtrashclient
6
6
  Project-URL: Bug Tracker, https://github.com/eirikgrindevoll/birtrashclient/issues
@@ -1,8 +1,13 @@
1
1
  """BIR Trash Collection API client library."""
2
2
 
3
+ from importlib.metadata import PackageNotFoundError, version
4
+
3
5
  from .client import BirTrashAuthError, BirTrashClient, BirTrashConnectionError
4
6
 
5
- __version__ = "0.1.2.dev1"
7
+ try:
8
+ __version__ = version("birtrashclient")
9
+ except PackageNotFoundError:
10
+ __version__ = "unknown"
6
11
 
7
12
  __all__ = [
8
13
  "BirTrashClient",
@@ -1,10 +1,10 @@
1
1
  [build-system]
2
- requires = ["hatchling"]
2
+ requires = ["hatchling", "hatch-vcs"]
3
3
  build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "birtrashclient"
7
- version = "0.1.2.dev1"
7
+ dynamic = ["version"]
8
8
  description = "Async client library for the BIR Trash Collection API"
9
9
  readme = "README.md"
10
10
  license = { text = "MIT" }
@@ -26,3 +26,6 @@ classifiers = [
26
26
  [project.urls]
27
27
  "Homepage" = "https://github.com/eirikgrindevoll/birtrashclient"
28
28
  "Bug Tracker" = "https://github.com/eirikgrindevoll/birtrashclient/issues"
29
+
30
+ [tool.hatch.version]
31
+ source = "vcs"