-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d445970
commit 2e763ad
Showing
3 changed files
with
48 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import toml | ||
|
||
def main(): | ||
with open("pyproject.toml", 'r+') as f: | ||
data = toml.load(f) | ||
project = data.get("project") | ||
if not project is None: | ||
version = project.get("version") | ||
if not version is None: | ||
a,b,c = map(int, version.split(".")) | ||
if c < 99: | ||
c += 1 | ||
elif b < 99: | ||
c = 0 | ||
b += 1 | ||
else: | ||
c = 0 | ||
b = 0 | ||
a += 1 | ||
data["project"]["version"] = str(a) + "." + str(b) + "." + str(c) | ||
if not data == {}: | ||
with open("pyproject.toml", 'w') as f: | ||
toml.dump(data, f) | ||
|
||
main() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,53 +1,39 @@ | ||
# SPDX-FileCopyrightText: 2024 German Aerospace Center (DLR) | ||
# | ||
# SPDX-License-Identifier: CC0-1.0 | ||
|
||
# SPDX-FileContributor: Michael Meinel | ||
# SPDX-FileContributor: Michael Fritzsche | ||
|
||
[build-system] | ||
requires = ["setuptools >= 70.1.1"] | ||
requires = [ "setuptools >= 70.1.1",] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[project] | ||
name = "hermes-plugin-python" | ||
dynamic = ["version"] | ||
license = {text = "Apache-2.0"} | ||
version = "0.1.0" | ||
readme = "README.md" | ||
authors = [ | ||
{name = "Michael Meinel", email = "[email protected]"}, | ||
{name = "Michael Fritzsche"}, | ||
] | ||
description = "HERMES plugin for .toml files" | ||
keywords = ["publishing", "metadata", "automation"] | ||
keywords = [ "publishing", "metadata", "automation",] | ||
requires-python = ">= 3.12.4" | ||
classifiers = [ | ||
"Development Status :: 2 - Pre-Alpha", | ||
"Environment :: Plugins", | ||
"Programming Language :: Python :: 3", | ||
"Operating System :: OS Independent", | ||
] | ||
dependencies = [ | ||
"hermes>=0.8.0", | ||
] | ||
classifiers = [ "Development Status :: 2 - Pre-Alpha", "Environment :: Plugins", "Programming Language :: Python :: 3", "Operating System :: OS Independent",] | ||
dependencies = [ "hermes>=0.8.0",] | ||
[[project.authors]] | ||
name = "Michael Meinel" | ||
email = "[email protected]" | ||
|
||
[[project.authors]] | ||
name = "Michael Fritzsche" | ||
|
||
[project.license] | ||
text = "Apache-2.0" | ||
|
||
[project.optional-dependencies] | ||
dev = [ | ||
"pytest>=8.2.2", | ||
"pytest-cov>=3.0.0", | ||
"taskipy>=1.10.3", | ||
"flake8>=5.0.4", | ||
"reuse>=1.1.2", | ||
] | ||
dev = [ "pytest>=8.2.2", "pytest-cov>=3.0.0", "taskipy>=1.10.3", "flake8>=5.0.4", "reuse>=1.1.2",] | ||
|
||
[project.urls] | ||
Repository = "https://github.com/hermes-hmc/hermes-plugin-python" | ||
|
||
[tool.setuptools] | ||
packages = [ "hermes_toml",] | ||
|
||
[project.entry-points."hermes.harvest"] | ||
cff = "hermes.commands.harvest.cff:CffHarvestPlugin" | ||
codemeta = "hermes.commands.harvest.codemeta:CodeMetaHarvestPlugin" | ||
toml = "hermes_toml.harvest:TomlHarvestPlugin" | ||
|
||
[tool.setuptools] | ||
packages = ["hermes_toml"] | ||
package-dir = {"" = "src"} | ||
[tool.setuptools.package-dir] | ||
"" = "src" |