Skip to content

Commit 08a44f9

Browse files
committed
Introduce dynamic versioning
1 parent 8dc71ed commit 08a44f9

2 files changed

Lines changed: 11 additions & 5 deletions

File tree

pyproject.toml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
[build-system]
2-
requires = ["poetry-core>=1.0.0"]
3-
build-backend = "poetry.core.masonry.api"
2+
requires = ["poetry-core>=1.0.0", "poetry-dynamic-versioning>=1.0.0,<2.0.0"]
3+
build-backend = "poetry_dynamic_versioning.backend"
44

55
[tool.poetry]
66
name = "userlist"
7-
version = "0.3.0"
7+
version = "0.0.0"
88
description = "Python client for the Userlist API"
99
homepage = "https://github.com/userlist/userlist-python"
1010
repository = "https://github.com/userlist/userlist-python"
@@ -23,6 +23,9 @@ classifiers = [
2323
python = ">=3.8"
2424
requests = ">=2.31.0"
2525

26+
[tool.poetry.requires-plugins]
27+
poetry-dynamic-versioning = { version = ">=1.0.0,<2.0.0", extras = ["plugin"] }
28+
2629
[tool.poetry.group.dev.dependencies]
2730
pytest = ">=7.4.0"
2831
pytest-cov = ">=4.1.0"
@@ -46,4 +49,7 @@ exclude = '''
4649
| build
4750
| dist
4851
)/
49-
'''
52+
'''
53+
[tool.poetry-dynamic-versioning]
54+
enable = true
55+
vcs = ["git"]

src/userlist/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
from .config import Config
33
from .client import Client
44

5-
__version__ = "0.3.0"
5+
__version__ = "0.0.0"
66
__all__ = ["Push", "Config", "Client"]

0 commit comments

Comments
 (0)