11[build-system ]
2- requires = [" poetry>=1.0.2 " , " poetry-dynamic-versioning" ]
2+ requires = [" poetry-core >=1.0.0 " , " poetry-dynamic-versioning" ]
33build-backend = " poetry.masonry.api"
44
55[tool .poetry ]
@@ -16,11 +16,10 @@ maintainers = [
1616license = " Apache-2.0"
1717readme = " README.md"
1818repository = " https://github.com/bp/resqpy"
19- homepage = " www.geosiris.com"
19+ homepage = " http:// www.geosiris.com"
2020classifiers = [
21- " License :: OSI Approved :: Apache Software License" ,
2221 " Programming Language :: Python :: 3.9" ,
23- " License :: OSI Approved :: Apache Software License"
22+ " License :: OSI Approved :: Apache Software License" ,
2423]
2524keywords = [" ETP" ]
2625
@@ -63,7 +62,7 @@ exclude = '''
6362'''
6463
6564[tool .pytest .ini_options ]
66- addopts = " -v --cache-clear -rf --cov=etpproto/ --cov-report=term --cov-report=html --junitxml=pytest.xml "
65+ addopts = " "
6766console_output_style = " count"
6867python_classes = " Test"
6968python_files = " test_*.py"
@@ -77,3 +76,17 @@ source = ["etpproto"]
7776
7877[tool .pylint .format ]
7978max-line-length = " 88"
79+
80+ [tool .poetry-dynamic-versioning ]
81+ enable = true
82+ vcs = " git"
83+ style = " pep440"
84+ format-jinja = """
85+ {%- if distance == 0 -%}
86+ {{ serialize_pep440(base, stage, revision) }}
87+ {%- elif revision is not none -%}
88+ {{ serialize_pep440(base, stage, revision + 1, dev=distance) }}
89+ {%- else -%}
90+ {{ serialize_pep440(bump_version(base), stage, revision, dev=distance) }}
91+ {%- endif -%}
92+ """
0 commit comments