-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #35 from xtrojak/conda-env
Conda env
- Loading branch information
Showing
31 changed files
with
201 additions
and
46 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,37 @@ | ||
name: Python Package using Conda | ||
|
||
on: | ||
push: | ||
pull_request: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build-linux: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
max-parallel: 5 | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python 3.8 | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.8 | ||
- name: Add conda to system path | ||
run: | | ||
# $CONDA is an environment variable pointing to the root of the miniconda directory | ||
echo $CONDA/bin >> $GITHUB_PATH | ||
- name: Install dependencies | ||
run: | | ||
conda env update --file conda/environment-dev.yml --name base | ||
- name: Lint with flake8 | ||
run: | | ||
conda install flake8 | ||
# stop the build if there are Python syntax errors or undefined names | ||
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics | ||
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide | ||
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics | ||
- name: Test with pytest | ||
run: | | ||
conda install pytest pytest-cov | ||
pytest --cov --cov-report term --cov-report xml --junitxml=xunit-result.xml |
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,15 @@ | ||
name: pyMSPannotator | ||
channels: | ||
- bioconda | ||
- conda-forge | ||
- defaults | ||
dependencies: | ||
- python >=3.7,<3.9 | ||
- matchms >=0.9.1 | ||
- pandas | ||
- scipy | ||
- requests | ||
- aiohttp | ||
- asyncstdlib | ||
- frozendict | ||
- tabulate |
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,19 @@ | ||
name: pyMSPannotator | ||
channels: | ||
- bioconda | ||
- conda-forge | ||
- defaults | ||
dependencies: | ||
- python >=3.7,<3.9 | ||
- matchms >=0.9.1 | ||
- pandas | ||
- scipy | ||
- requests | ||
- aiohttp | ||
- asyncstdlib | ||
- frozendict | ||
- tabulate | ||
- mock | ||
- pytest | ||
- pytest-aiohttp | ||
- pytest-cov |
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,62 @@ | ||
{% set name = "pyMSPannotator" %} | ||
{% set version = "0.1.0" %} | ||
|
||
package: | ||
name: {{ name|lower }} | ||
version: {{ version }} | ||
|
||
source: | ||
path: .. | ||
|
||
extra: | ||
channels: | ||
- conda-forge | ||
- bioconda | ||
|
||
build: | ||
noarch: python | ||
preserve_egg_dir: True | ||
number: 0 | ||
script: {{ PYTHON }} -m pip install --no-deps --ignore-installed . -vv | ||
|
||
requirements: | ||
build: | ||
- conda-build | ||
- conda-verify | ||
- pytest-runner | ||
- python | ||
- setuptools | ||
host: | ||
- python >=3.7,<3.9 | ||
- pip | ||
- pytest-runner | ||
- setuptools | ||
run: | ||
- python >=3.7,<3.9 | ||
- matchms >=0.9.1 | ||
- pandas | ||
- scipy | ||
- requests | ||
- aiohttp | ||
- asyncstdlib | ||
- frozendict | ||
- tabulate | ||
- mock | ||
- pytest | ||
- pytest-aiohttp | ||
- pytest-cov | ||
|
||
test: | ||
imports: | ||
- pyMSPannotator | ||
|
||
about: | ||
home: https://github.com/RECETOX/pyMSPannotator | ||
license: MIT | ||
license_file: LICENSE | ||
summary: Repository for tool that adds more annotations (e.g. SMILES, InChI, CAS number) to MSP files (Python version). | ||
dev_url: https://github.com/RECETOX/pyMSPannotator | ||
|
||
extra: | ||
recipe-maintainers: | ||
- xtrojak |
This file was deleted.
Oops, something went wrong.
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
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
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
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
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
2 changes: 1 addition & 1 deletion
2
libs/services/PubChem.py → pyMSPannotator/libs/services/PubChem.py
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
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,4 @@ | ||
from pyMSPannotator.libs.services.CIR import CIR | ||
from pyMSPannotator.libs.services.CTS import CTS | ||
from pyMSPannotator.libs.services.NLM import NLM | ||
from pyMSPannotator.libs.services.PubChem import PubChem |
File renamed without changes.
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
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
File renamed without changes.
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,3 @@ | ||
from pyMSPannotator.libs.utils.Logger import Logger | ||
|
||
logger = Logger() |
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,24 @@ | ||
from setuptools import setup, find_packages | ||
|
||
setup(name='pyMSPannotator', | ||
version='0.1', | ||
description='Repository for tool that adds more annotations ' | ||
'(e.g. SMILES, InChI, CAS number) to MSP files (Python version).', | ||
url='https://github.com/RECETOX/pyMSPannotator', | ||
author='Matej Trojak', | ||
author_email='matej.trojak@recetox.muni.cz', | ||
license='MIT', | ||
packages=find_packages(exclude=['*tests*']), | ||
zip_safe=False, | ||
test_suite="tests", | ||
python_requires='>=3.7', | ||
install_requires=[ | ||
"matchms", | ||
"requests", | ||
"pandas", | ||
"aiohttp", | ||
"asyncstdlib", | ||
"frozendict", | ||
"tabulate" | ||
] | ||
) |
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
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
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
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
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
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
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
from libs.Curator import Curator | ||
from pyMSPannotator.libs.Curator import Curator | ||
|
||
|
||
def test_fix_cas_number(): | ||
|
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