Skip to content

Commit

Permalink
Convert to new toml/poetry build system.
Browse files Browse the repository at this point in the history
(Also, update version)
  • Loading branch information
luciansmith committed Oct 10, 2024
1 parent 8acb483 commit 18694e7
Show file tree
Hide file tree
Showing 8 changed files with 3,603 additions and 73 deletions.
42 changes: 42 additions & 0 deletions .github/actions/setup-poetry-env/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: "setup-poetry-env"
description: "Composite action to setup the Python and poetry environment."

inputs:
python-version:
required: false
description: "The python version to use"
default: "3.11"

runs:
using: "composite"
steps:
- name: Set up python
uses: actions/setup-python@v5
with:
python-version: ${{ inputs.python-version }}

- name: Install Poetry
env:
POETRY_VERSION: "1.7.1"
run: curl -sSL https://install.python-poetry.org | python - -y
shell: bash

- name: Add Poetry to Path
run: echo "$HOME/.local/bin" >> $GITHUB_PATH
shell: bash

# - name: Configure Poetry virtual environment in project
# run: poetry config virtualenvs.in-project true
# shell: bash

- name: Load cached venv
id: cached-poetry-dependencies
uses: actions/cache@v4
with:
path: .venv
key: venv-${{ runner.os }}-${{ inputs.python-version }}-${{ hashFiles('poetry.lock') }}

- name: Install dependencies
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
run: poetry install --no-interaction
shell: bash
2 changes: 1 addition & 1 deletion biosimulators_tellurium/_version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '0.1.43'
__version__ = '0.1.44'
3,515 changes: 3,515 additions & 0 deletions poetry.lock

Large diffs are not rendered by default.

45 changes: 45 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
[tool.poetry]
name = "biosimulators-tellurium"
version = "0.1.44"
description = "BioSimulators-compliant command-line interface to the Tellurium/roadrunner simulator <https://tellurium.readthedocs.io/>."
authors = ["Center for Reproducible Biomedical Modeling <[email protected]>"]
license = "MIT"
readme = "README.md"
homepage = "https://tellurium.readthedocs.io/en/latest/"
repository = "https://github.com/biosimulators/Biosimulators_tellurium"
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: MIT License',
'Topic :: Scientific/Engineering :: Bio-Informatics',
]
keywords=['systems', 'biology', 'modeling', 'simulation']
exclude = ['tests', 'tests.*']

[tool.poetry.dependencies]
python = "^3.10"
biosimulators_utils = {version = "^0.2.3", extras = ["logging", "sbml"]}
kisao = "^2.34"
libroadrunner = "^2.7.0"
lxml = "^4.9.2"
numpy = "^1.24.4"
pandas = "^2.0.2"
tellurium = "^2.2.10"

[tool.poetry.group.dev.dependencies]
flake8 = "^7.1.1"
flakey = "^1.0"
pytest = "^8.3.3"
pytest-cov = "^5.0.0"

[tool.poetry.group.docs.dependencies]
pydata-sphinx-theme = "*"
sphinx = ">=1.8"

[tool.poetry.scripts]
biosimulators-tellurium = 'biosimulators_tellurium.__main__:main'
fix-tellurium-generated-combine-archive = 'biosimulators_copasi.__main__:fix_copasi_generated_combine_archive'

[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
Empty file removed requirements.optional.txt
Empty file.
7 changes: 0 additions & 7 deletions requirements.txt

This file was deleted.

2 changes: 0 additions & 2 deletions setup.cfg

This file was deleted.

63 changes: 0 additions & 63 deletions setup.py

This file was deleted.

0 comments on commit 18694e7

Please sign in to comment.