diff --git a/.github/workflows/build_deploy.yml b/.github/workflows/build_deploy.yml index d2f9a3a..467115c 100644 --- a/.github/workflows/build_deploy.yml +++ b/.github/workflows/build_deploy.yml @@ -1,6 +1,28 @@ name: CI-CD -on: push +on: + push: + inputs: + allowDeploy: + description: "Whether to deploy." + required: true + default: true + type: boolean + pull_request: + types: [opened, edited, synchronize, reopened] + inputs: + allowDeploy: + description: "Whether to deploy." + required: true + default: false + type: boolean + workflow_dispatch: + inputs: + allowDeploy: + description: "Whether to deploy." + required: true + default: false + type: boolean jobs: matrix_prep: @@ -125,7 +147,7 @@ jobs: path: dist/*.tar.gz deploy: - if: github.ref == 'refs/heads/master' + if: github.ref == 'refs/heads/master' && inputs.allowDeploy == true needs: [build_wheels, build_sdist] runs-on: ubuntu-latest steps: diff --git a/archives/prospr_core.tar.gz b/archives/prospr_core.tar.gz index 456e360..2912062 100644 Binary files a/archives/prospr_core.tar.gz and b/archives/prospr_core.tar.gz differ diff --git a/archives/prospr_core.zip b/archives/prospr_core.zip index 0126991..cd9e352 100644 Binary files a/archives/prospr_core.zip and b/archives/prospr_core.zip differ diff --git a/archives/prospr_data.tar.gz b/archives/prospr_data.tar.gz index 4a48a2c..a7f79b1 100644 Binary files a/archives/prospr_data.tar.gz and b/archives/prospr_data.tar.gz differ diff --git a/archives/prospr_data.zip b/archives/prospr_data.zip index 3f1c5ec..defc14f 100644 Binary files a/archives/prospr_data.zip and b/archives/prospr_data.zip differ diff --git a/prospr/__init__.py b/prospr/__init__.py index 0f4e85a..8a94e48 100644 --- a/prospr/__init__.py +++ b/prospr/__init__.py @@ -1,3 +1,5 @@ +from pathlib import Path + from prospr_core import ( AminoAcid, Protein, @@ -9,7 +11,7 @@ from .visualize import plot_protein # Import __version__ from _version.py during compile time. -exec(open("prospr/_version.py").read()) +exec(open(Path(__file__).parent.absolute() / "_version.py").read()) __all__ = [ "__version__", diff --git a/prospr/_version.py b/prospr/_version.py index 4802e90..f901408 100644 --- a/prospr/_version.py +++ b/prospr/_version.py @@ -1 +1 @@ -__version__ = "1.0" +__version__ = "1.1" diff --git a/pyproject.toml b/pyproject.toml index 645ba7c..6b6ca79 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -30,13 +30,18 @@ keywords = [ ] classifiers = [ "Programming Language :: Python :: 3", - "Development Status :: 2 - Pre-Alpha", + "Development Status :: 5 - Production/Stable", "License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)", "Operating System :: OS Independent", "Topic :: Education", "Topic :: Scientific/Engineering", "Topic :: Scientific/Engineering :: Bio-Informatics", ] +dependencies = [ + "matplotlib==3.7.2", + "pandas==2.0.3", + "seaborn==0.12.2", +] [project.urls] homepage = "https://github.com/okkevaneck/prospr"