Skip to content

Commit 69e2952

Browse files
committed
mv to poetry
1 parent 7758e53 commit 69e2952

File tree

2 files changed

+14
-10
lines changed

2 files changed

+14
-10
lines changed

pyproject.toml

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
[project]
22
name = "epidemik"
3-
dynamic = ["version"]
3+
version = "0.1.2"
4+
45
authors = [
56
{ name="Bruno Gonçalves", email="[email protected]" },
67
]
@@ -17,23 +18,26 @@ dependencies = [
1718
"networkx>=3",
1819
"numpy>=1.20",
1920
"pandas>=2.0",
20-
"scipy>=1.10",
21-
"yaml>=6.0",
22-
"tqdm>=4"
21+
"scipy>=1.7",
22+
"tqdm>=4",
23+
"pyyaml (>=6.0.2,<7.0.0)"
2324
]
2425
[project.urls]
2526
Homepage = "https://github.com/DataForScience/epidemik"
2627
Issues = "https://github.com/DataForScience/epidemik/issues"
2728
Documentation = "https://epidemik.readthedocs.io/"
2829

30+
[tool.poetry-dynamic-versioning]
31+
enable = true
32+
2933
[build-system]
30-
requires = ["setuptools>=61.0"]
31-
build-backend = "setuptools.build_meta"
34+
requires = ["poetry-core>=1.0.0", "poetry-dynamic-versioning>=1.0.0,<2.0.0"]
35+
build-backend = "poetry_dynamic_versioning.backend"
3236

33-
[tool.setuptools.dynamic]
34-
version = {attr = "epidemik.__version__"}
37+
[tool.poetry-dynamic-versioning.from-file]
38+
source = "src/epidemik/__init__.py"
3539

3640
[tool.pytest.ini_options]
3741
pythonpath = [
3842
".", "src",
39-
]
43+
]

src/epidemik/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@
1111
from .NetworkEpiModel import NetworkEpiModel
1212
from .MetaEpiModel import MetaEpiModel
1313

14-
__version__ = "0.1.1"
14+
__version__ = "0.1.2"

0 commit comments

Comments
 (0)