Skip to content
Snippets Groups Projects
Commit ced213e8 authored by Lars Bilke's avatar Lars Bilke
Browse files

Merge branch 'publish' into 'main'

Publish to PYPI

See merge request ogs/tools/ogstools!21
parents 91398422 eab22fd8
No related branches found
No related tags found
No related merge requests found
......@@ -33,3 +33,11 @@ tests (arch):
tests:
script:
- tox -p
publish:
rules:
- if: $CI_COMMIT_TAG
variables:
TWINE_REPOSITORY: testpypi
script:
- tox -e publish
......@@ -4,7 +4,7 @@ build-backend = 'setuptools.build_meta'
[project]
name = "ogstools"
version = "0.0.1"
version = "0.0.2"
description = "A collection of Python tools aimed at evolving into a modeling toolchain around OpenGeoSys."
authors = [{ name = 'OpenGeoSys Community', email = 'info@opengeosys.org' }]
license = { text = "BSD-3-Clause" }
......@@ -17,8 +17,10 @@ dependencies = ["meshio>=5.3.0"]
"Bug Tracker" = 'https://gitlab.opengeosys.org/ogs/tools/ogstools/-/issues'
"Source Code" = 'https://gitlab.opengeosys.org/ogs/tools/ogstools'
[tool.setuptools]
packages = ["ogstools"]
[tool.setuptools.packages.find]
where = ["."]
include = ["ogstools"]
namespaces = false
[project.scripts]
msh2vtu = 'ogstools.msh2vtu._cli:cli'
......
......@@ -41,6 +41,20 @@ deps = pre-commit
skip_install = True
commands = pre-commit run --all-files
[testenv:publish]
deps =
build
twine
skip_install = True
passenv =
TWINE_REPOSITORY
TWINE_USERNAME
TWINE_PASSWORD
commands =
pyproject-build
twine upload dist/*
# Tool settings
[pytest]
testpaths = ogstools
xfail_strict = true
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment