-
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.
- Loading branch information
1 parent
2abdd43
commit 06e23c6
Showing
8 changed files
with
172 additions
and
40 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,53 @@ | ||
name: Upload Python Package | ||
|
||
on: | ||
workflow_run: | ||
workflows: ["Create Release with Images"] | ||
types: | ||
- completed | ||
|
||
jobs: | ||
build: | ||
name: Build distribution 📦 | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.8" | ||
- name: Install pypa/build | ||
run: >- | ||
python3 -m | ||
pip install | ||
build | ||
--user | ||
- name: Build a binary wheel and a source tarball | ||
run: python3 -m build | ||
- name: Store the distribution packages | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: python-package-distributions | ||
path: dist/ | ||
|
||
publish-to-pypi: | ||
name: >- | ||
Publish Python 🐍 distribution 📦 to PyPI | ||
needs: | ||
- build | ||
runs-on: ubuntu-latest | ||
environment: | ||
name: pypi | ||
url: https://pypi.org/p/kegg-pathways-completeness | ||
permissions: | ||
id-token: write # IMPORTANT: mandatory for trusted publishing | ||
|
||
steps: | ||
- name: Download all the dists | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: python-package-distributions | ||
path: dist/ | ||
- name: Publish distribution 📦 to PyPI | ||
uses: pypa/gh-action-pypi-publish@release/v1 |
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,28 @@ | ||
name: Tests | ||
|
||
on: | ||
push: | ||
branches: [master, pypi-release] | ||
pull_request: | ||
branches: [master] | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: [ '3.8', '3.11' ] | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Install dependencies | ||
run: pip install .[test] | ||
|
||
- name: Run pytest | ||
run: pytest |
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
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,62 @@ | ||
[project] | ||
name = "eukcc" | ||
version = "2.1.3" | ||
readme = "README.md" | ||
license = {text = "GPLv3"} | ||
authors = [ | ||
{ name = "Paul Saary", email = "[email protected]" }, | ||
{ name = "MGnify team", email = "[email protected]" }, | ||
] | ||
keywords = ["bioinformatics", "mags", "eukaryotic", "completeness", "contamination"] | ||
description = "Check eukaryotic genomes or MAGs for completeness and contamination" | ||
requires-python = ">=3.8" | ||
classifiers = [ | ||
"Programming Language :: Python :: 3.6", | ||
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)", | ||
"Operating System :: Unix", | ||
] | ||
|
||
dependencies = [ | ||
"ete3>=3.1.3", | ||
"numpy>=1.24.4", | ||
"jsonpickle>=4.0.0", | ||
"biopython==1.83", | ||
"pysam==0.21.0" | ||
] | ||
|
||
[build-system] | ||
requires = ["setuptools>=61.0"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[tool.setuptools] | ||
packages = [ | ||
"eukcc", | ||
"scripts", | ||
] | ||
|
||
[project.scripts] | ||
# eukcc | ||
eukcc = "eukcc.__main__:main" | ||
shared_markers = "eukcc.find_markerset:main" | ||
# scripts | ||
binlinks = "scripts.binlinks:main" | ||
filter_euk_bins = "scripts.filter_euk_bins:main" | ||
|
||
[project.optional-dependencies] | ||
tests = [ | ||
"pytest==7.4.0", | ||
"pytest-md==0.2.0", | ||
"pytest-workflow==2.0.1", | ||
"ete3>=3.1.3", | ||
"numpy>=1.24.4", | ||
"jsonpickle>=4.0.0", | ||
"biopython==1.83", | ||
"pysam==0.21.0" | ||
] | ||
|
||
dev = [ | ||
"pre-commit==3.8.0", | ||
"black==24.8.0", | ||
"flake8==7.1.1", | ||
"pep8-naming==0.14.1" | ||
] |
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,7 @@ | ||
ete3 | ||
six | ||
numpy | ||
jsonpickle | ||
metaeuk==4.a0f584d | ||
pplacer | ||
epa-ng==0.3.8 | ||
hmmer==3.3 | ||
minimap2 | ||
bwa | ||
samtools==1.12 |
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