Skip to content

Commit

Permalink
revert python project version to 3.8
Browse files Browse the repository at this point in the history
  • Loading branch information
rvhonorato committed Apr 30, 2024
1 parent dfd0fcd commit 4d68b8c
Show file tree
Hide file tree
Showing 7 changed files with 478 additions and 59 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: ci

on: push

jobs:
test:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
with:
submodules: recursive

- uses: actions/setup-python@v4
with:
python-version: "3.8"

- uses: snok/install-poetry@v1
with:
version: 1.3.2
virtualenvs-create: true
virtualenvs-in-project: true

- run: poetry install --no-interaction --no-root

- run: poetry run pytest --cov --cov-report xml:coverage.xml --cov-append -vv --hypothesis-show-statistics

- name: Run codacy-coverage-reporter
uses: codacy/codacy-coverage-reporter-action@v1
with:
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
coverage-reports: coverage.xml
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -104,3 +104,5 @@ venv.bak/
.mypy_cache/

.DS_Store

.vscode
10 changes: 1 addition & 9 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,16 +1,8 @@
#==============================================================================================
FROM continuumio/anaconda3:2022.10

RUN apt-get update && \
apt-get install -y --no-install-recommends \
build-essential=12.9 \
&& \
apt-get clean && rm -rf /var/lib/apt/lists/*

FROM python:3.8
WORKDIR /opt/software
COPY . .
RUN pip install .
WORKDIR /data

ENTRYPOINT [ "prodigy_cryst" ]
#==============================================================================================
408 changes: 408 additions & 0 deletions poetry.lock

Large diffs are not rendered by default.

35 changes: 35 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
[tool.poetry]
name = "prodigy-cryst"
version = "1.0.1"
description = "Predicts if a protein complex interface is biological or crystallographic."
authors = ["BonvinLab <[email protected]>"]
readme = "README.md"
license = "Apache-2.0"
classifiers = [
"Development Status :: 5 - Production/Stable",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 3.8",
"Topic :: Scientific/Engineering :: Chemistry",
"Topic :: Scientific/Engineering :: Bio-Informatics",
"Intended Audience :: Science/Research",
]

[tool.poetry.dependencies]
python = "^3.8"
scikit-learn = "0.22"
biopython = "^1.79"
numpy = "~1.20"

[tool.poetry.group.dev.dependencies]
pytest = "^8.2.0"
coverage = "^7.5.0"
pytest-cov = "^5.0.0"
hypothesis = "^6.100.2"

[tool.poetry.scripts]
prodigy_cryst = "prodigy_cryst.interface_classifier:main"


[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
5 changes: 0 additions & 5 deletions requirements.txt

This file was deleted.

45 changes: 0 additions & 45 deletions setup.py

This file was deleted.

0 comments on commit 4d68b8c

Please sign in to comment.