Skip to content
Snippets Groups Projects
Commit dc70fd1e authored by Christoph Knote's avatar Christoph Knote
Browse files

Moving to poetry

parent 39fa9b51
Branches
Tags
No related merge requests found
exclude src/boxmox/_site_specific.py
recursive-include examples *
include CHANGES.md
include INSTALL.md
include README.md
include LICENSE.txt
[build-system] [tool.poetry]
requires = [ name = "boxmox"
"numpy", "f90nml", "pyparsing", "setuptools" version = "1.2.0"
description = "BOXMOX python interface"
license = "GPL-3.0-or-later"
authors = ["Christoph Knote <christoph.knote@med.uni-augsburg.de>"]
readme = "README.md"
homepage = "https://mbees.med.uni-augsburg.de/"
repository = "https://mbees.med.uni-augsburg.de/gitlab/mbees/boxmox_pypackage"
classifiers = [
"Programming Language :: Python :: 3"
"Development Status :: 5 - Production/Stable"
"Environment :: Console"
"Intended Audience :: Developers"
"Intended Audience :: Education"
"Intended Audience :: End Users/Desktop"
"Intended Audience :: Science/Research"
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)"
"Operating System :: POSIX"
"Topic :: Education"
"Topic :: Scientific/Engineering"
"Topic :: Utilities"
]
packages = [
{ include = "boxmox", from = "src" },
] ]
build-backend = "setuptools.build_meta"
[tool.poetry.urls]
issues = "http://mbees.med.uni-augsburg.de/gitlab/mbees/boxmox_pypackage/issues"
[tool.poetry.dependencies]
python = "^3.10"
numpy = ">= 1.2"
f90nml = ">= 1.3"
pyparsing = ">= 3"
[tool.poetry.dev-dependencies]
pytest = "^5.2"
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
...@@ -16,8 +16,7 @@ except: ...@@ -16,8 +16,7 @@ except:
pass pass
from . import FluxParser from . import FluxParser
work_path = _installation.validate() workPath=os.environ['BOXMOX_WORK_PATH']
examplesPath=os.path.join(os.environ['KPP_HOME'], "case_studies") examplesPath=os.path.join(os.environ['KPP_HOME'], "case_studies")
class ExampleData: class ExampleData:
...@@ -106,7 +105,7 @@ class Experiment: ...@@ -106,7 +105,7 @@ class Experiment:
self.mechanism = mechanism self.mechanism = mechanism
#: Absolute file system path of the experiment #: Absolute file system path of the experiment
self.path = os.path.join(work_path, self.name) self.path = os.path.join(workPath, self.name)
#: Input files #: Input files
self.input = {} self.input = {}
...@@ -326,7 +325,7 @@ class ExperimentFromExample(Experiment): ...@@ -326,7 +325,7 @@ class ExperimentFromExample(Experiment):
self.name = str(uuid.uuid4()) self.name = str(uuid.uuid4())
self.example = example self.example = example
self.path = os.path.join(work_path, self.name) self.path = os.path.join(workPath, self.name)
self.log = None self.log = None
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment