-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add pyproject.toml and update github actions (#277)
* add pyproject and update github actions * fix test action * import bioscrape in try-except * readme update for CI and version * setup version update * add pypi release github action
- Loading branch information
1 parent
dee6155
commit 8db3158
Showing
9 changed files
with
216 additions
and
85 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: BioCRNpyler Deploy | ||
on: | ||
push: | ||
branches: ["master"] | ||
pull_request: | ||
branches: ["master"] | ||
jobs: | ||
build: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [windows-latest, ubuntu-latest, macos-latest] | ||
python-version: [3.8, 3.11, 3.12] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v3 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install pytest pytest-cov python-libsbml | ||
- name: Tnstall biocrnpyler | ||
run: pip install -e .[all] | ||
- name: Test biocrnpyler | ||
run: pytest --cov biocrnpyler | ||
- uses: actions/checkout@main | ||
- uses: codecov/codecov-action@v4 | ||
with: | ||
fail_ci_if_error: false | ||
name: codecov-umbrella | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
verbose: false |
This file was deleted.
Oops, something went wrong.
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,30 @@ | ||
# Manually run this action | ||
name: PyPI Release | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
pypi-publish: | ||
runs-on: ubuntu-latest | ||
environment: Release Deploy | ||
|
||
steps: | ||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: '3.12' | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install build | ||
- name: Build the package | ||
run: | | ||
python -m build | ||
- name: Publish package to PyPI | ||
uses: pypa/gh-action-pypi-publish@release/v1 | ||
with: | ||
password: ${{ secrets.PYPI_API_TOKEN}} |
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,33 @@ | ||
name: BioCRNpyler Test | ||
on: | ||
push: | ||
branches: ["*","!master"] | ||
jobs: | ||
build: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
max-parallel: 4 | ||
matrix: | ||
os: [ubuntu-latest] | ||
python-version: ["3.8", "3.12"] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v3 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install pytest pytest-cov python-libsbml | ||
- name: Tnstall biocrnpyler | ||
run: pip install -e .[all] | ||
- name: Test biocrnpyler | ||
run: pytest --cov biocrnpyler | ||
- uses: actions/checkout@main | ||
- uses: codecov/codecov-action@v4 | ||
with: | ||
fail_ci_if_error: false | ||
name: codecov-umbrella | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
verbose: false |
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
100 changes: 55 additions & 45 deletions
100
examples/4. Promoters Transcriptional Regulation and Gene Regulatory Networks.ipynb
Large diffs are not rendered by default.
Oops, something went wrong.
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,58 @@ | ||
[build-system] | ||
requires = ["setuptools>=64", "wheel"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[tool.distutils.bdist_wheel] | ||
universal = true | ||
|
||
[project] | ||
name = "BioCRNpyler" | ||
version = "1.1.2" | ||
description = "A chemical reaction network compiler for generating large biological circuit models" | ||
authors = [{name='Build-A-Cell'}] | ||
classifiers=[ | ||
'Development Status :: 5 - Production/Stable', | ||
'Intended Audience :: Science/Research', | ||
'License :: OSI Approved :: BSD License', | ||
'Programming Language :: Python', | ||
'Programming Language :: Python :: 3', | ||
'Programming Language :: Python :: 3.8', | ||
'Programming Language :: Python :: 3.9', | ||
'Programming Language :: Python :: 3.10', | ||
'Programming Language :: Python :: 3.11', | ||
'Programming Language :: Python :: 3.12', | ||
'Topic :: Software Development', | ||
'Topic :: Scientific/Engineering', | ||
'Operating System :: OS Independent', | ||
] | ||
license = {file = "LICENSE"} | ||
readme = "README.md" | ||
keywords=["SBML", "synthetic biology", "modeling", | ||
"Chemical Reaction Network", "CRN"] | ||
dependencies = [ | ||
"python-libsbml", | ||
"numpy<2.0", | ||
"matplotlib", | ||
"networkx", | ||
"bokeh>=1.4.0", | ||
"fa2_modified", | ||
"jupyter", | ||
"pytest", | ||
"pytest-cov", | ||
"nbconvert" | ||
] | ||
requires-python = ">=3.7" | ||
|
||
[project.optional-dependencies] | ||
test = [ | ||
"pytest" | ||
] | ||
|
||
[project.urls] | ||
"Homepage" = "https://github.com/buildacell/biocrnpyler/" | ||
"Bug Tracker" = "https://github.com/buildacell/biocrnpyler/issues" | ||
|
||
[tool.setuptools] | ||
packages = ["biocrnpyler"] | ||
include-package-data = true | ||
package-dir = {"biocrnpyler"="biocrnpyler"} |
This file was deleted.
Oops, something went wrong.
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