-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: expose train script in pypi (#20)
* refactor: only use pip, remove conda * ci: add workflow to push to pypi on release * fix: make train script available when installed using pip * fix: bump ci python to 3.8 * fix: macos-14 does not have python version <3.10 so use macos13 * fix: bump python to 3.10, remove loader.py, train_baseline.py * deps: remove tensorflow and deepchem deps * fix: python version shall be string * fix: test macos-13 again * ci: run ci * chore: bump version to 1.0.0
- Loading branch information
Showing
12 changed files
with
42 additions
and
946 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
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,23 @@ | ||
name: Upload Python Package | ||
|
||
on: | ||
release: | ||
types: [created] | ||
|
||
jobs: | ||
deploy: | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-python@v2 | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install setuptools wheel twine | ||
- name: Build and publish | ||
env: | ||
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} | ||
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} | ||
run: | | ||
python setup.py sdist bdist_wheel | ||
twine upload --skip-existing dist/* |
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,10 +1,9 @@ | ||
paccmann_predictor @ git+https://github.com/PaccMann/paccmann_predictor@sarscov2 | ||
numpy>=1.14.3 | ||
torch>=1.5.1 | ||
deepchem>=2.4 | ||
six>=1.15.0 | ||
torch | ||
six | ||
scikit-learn>=0.21.3 | ||
tensorflow>=2.0 | ||
Pillow>=7.1.0 | ||
brc_pytorch>=0.1.3 | ||
pytoda>=1.1.2 | ||
rdkit | ||
pytoda>=1.1.5 |
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 @@ | ||
#!/usr/bin/env python3 | ||
#! /usr/bin/env python3 | ||
"""Test toxsmi predictor.""" | ||
import argparse | ||
import glob | ||
|
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#!/usr/bin/env python3 | ||
#! /usr/bin/env python3 | ||
"""Train toxsmi predictor.""" | ||
import argparse | ||
import json | ||
|
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,3 +1,3 @@ | ||
"""Initialization for `toxsmi` module.""" | ||
__version__ = "0.0.3" | ||
__version__ = "1.0.0" | ||
__name__ = "toxsmi" |
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,5 +1,2 @@ | ||
from .hyperparams import LOSS_FN_FACTORY # noqa | ||
from .loaders import load_organdb_github # noqa | ||
from .loaders import load_organdb_suppl # noqa | ||
from .loaders import load_tox21 # noqa | ||
from .utils import * # noqa |
Oops, something went wrong.