-
Notifications
You must be signed in to change notification settings - Fork 0
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
Showing
21 changed files
with
184 additions
and
66 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,36 @@ | ||
name: Create release | ||
|
||
on: | ||
push: | ||
tags: | ||
- "v.*" | ||
|
||
permissions: | ||
contents: write | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python | ||
uses: actions/setup-python@v3 | ||
with: | ||
python-version: '3.x' | ||
- name: Install FluMut | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install . | ||
- name: Run FluMut | ||
run: | | ||
cp examples/multiple_samples.fa examples/fasta_input_example.fa | ||
flumut --update | ||
flumut -x examples/excel_output_example.xlsm examples/multiple_samples.fa | ||
- name: Release | ||
uses: softprops/action-gh-release@v2 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
files: | | ||
examples/excel_output_example.xlsm | ||
examples/fasta_input_example.fa |
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,58 @@ | ||
# This workflow will upload a Python Package using Twine when a release is created | ||
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python#publishing-to-package-registries | ||
|
||
# This workflow uses actions that are not certified by GitHub. | ||
# They are provided by a third-party and are governed by | ||
# separate terms of service, privacy policy, and support | ||
# documentation. | ||
|
||
name: Upload Python Package | ||
|
||
on: | ||
release: | ||
types: [published] | ||
|
||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python | ||
uses: actions/setup-python@v3 | ||
with: | ||
python-version: '3.x' | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install build | ||
- name: Build package | ||
run: python -m build | ||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: dist_folder | ||
path: dist | ||
|
||
pypi-publish: | ||
name: upload release to PyPI | ||
runs-on: ubuntu-latest | ||
# Specifying a GitHub environment is optional, but strongly encouraged | ||
environment: release | ||
permissions: | ||
# IMPORTANT: this permission is mandatory for trusted publishing | ||
id-token: write | ||
steps: | ||
- uses: actions/download-artifact@v4 | ||
with: | ||
name: dist_folder | ||
path: dist | ||
# retrieve your distributions here | ||
- name: Publish package distributions 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
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,6 +1,47 @@ | ||
[build-system] | ||
requires = [ | ||
"setuptools>=42", | ||
"wheel" | ||
] | ||
build-backend = "setuptools.build_meta" | ||
[build-system] | ||
requires = ["setuptools>=61.2"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[project] | ||
name = "flumut" | ||
description = "A tool to search for molecular markers with potential impact on the biological characteristics of Influenza A viruses of the A(H5N1) subtype." | ||
requires-python = ">=3.7" | ||
dependencies = [ | ||
"click >=8.0.0", | ||
"biopython >=1.81", | ||
"openpyxl >= 3.1.2", | ||
"importlib-resources >= 1.3", | ||
] | ||
authors = [ | ||
{name = "Edoardo Giussani", email = "[email protected]"}, | ||
{name = "Alessandro Sartori", email = "[email protected]"}, | ||
] | ||
dynamic = ["version"] | ||
|
||
[project.readme] | ||
file = "README.md" | ||
content-type = "text/markdown" | ||
|
||
[project.license] | ||
file = "LICENSE" | ||
content-type = "text-markdown" | ||
|
||
[project.urls] | ||
Homepage = "https://github.com/izsvenezie-virology/FluMut" | ||
|
||
[project.scripts] | ||
flumut = "flumut.flumut:main" | ||
|
||
[tool.setuptools] | ||
package-dir = {"" = "src"} | ||
include-package-data = true | ||
|
||
[tool.setuptools.packages.find] | ||
where = ["src"] | ||
namespaces = true | ||
|
||
[tool.setuptools.package-data] | ||
flumutdata = ["*"] | ||
|
||
[tool.setuptools.dynamic] | ||
version = {attr = "flumut.flumut.__version__"} |
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
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 |
---|---|---|
|
@@ -14,15 +14,15 @@ | |
from importlib_resources import files | ||
from Bio.Align import PairwiseAligner | ||
|
||
from FluMut.DbReader import close_connection, execute_query, open_connection, to_dict, update_db | ||
from FluMut import OutputFormatter | ||
from FluMut.DataClass import Mutation, Sample | ||
from flumut.DbReader import close_connection, execute_query, open_connection, to_dict, update_db | ||
from flumut import OutputFormatter | ||
from flumut.DataClass import Mutation, Sample | ||
|
||
PRINT_ALIGNMENT = False | ||
SKIP_UNMATCH_NAMES_OPT = '--skip-unmatch-names' | ||
SKIP_UNKNOWN_SEGMENTS_OPT = '--skip-unknown-segments' | ||
DB_FILE = files('FluMutData').joinpath('flumut_db.sqlite') | ||
__version__ = '0.5.2' | ||
DB_FILE = files('flumutdata').joinpath('flumut_db.sqlite') | ||
__version__ = '0.5.3' | ||
__author__ = 'Edoardo Giussani' | ||
__contact__ = '[email protected]' | ||
|
||
|
Empty file.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
import unittest | ||
import FluMut.FluMut as fm | ||
import flumut.flumut as fm | ||
import re | ||
|
||
|
||
|
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,5 @@ | ||
import unittest | ||
import FluMut.FluMut as fm | ||
import flumut.flumut as fm | ||
|
||
|
||
class TestPosition(unittest.TestCase): | ||
|
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,5 @@ | ||
import unittest | ||
import FluMut.FluMut as fm | ||
import flumut.flumut as fm | ||
|
||
|
||
class TestTranslate(unittest.TestCase): | ||
|