Skip to content

Commit bd66b56

Browse files
authored
Merge pull request #2 from EBI-Metagenomics/dev
fix cli path when installing with pip
2 parents 6f4ddfc + 0e129c1 commit bd66b56

File tree

8 files changed

+21
-20
lines changed

8 files changed

+21
-20
lines changed
File renamed without changes.

pyproject.toml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "mi-pimento"
3-
version = "0.0.1"
3+
version = "0.0.2"
44
readme = "README.md"
55
license = {text = "Apache Software License 2.0"}
66
authors = [
@@ -30,10 +30,11 @@ requires = ["setuptools>=61.0"]
3030
build-backend = "setuptools.build_meta"
3131

3232
[tool.setuptools]
33-
packages = ["bin"]
33+
packages = ["cli",
34+
"bin"]
3435

3536
[project.scripts]
36-
pimento = "pimento:cli"
37+
pimento = "cli.pimento:cli"
3738

3839
[project.optional-dependencies]
3940
tests = [

tests/unit/test_are_there_primers.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,21 @@
22
tags:
33
- are_there_primers
44
exit_code: 2
5-
command: python -m pimento std --chromosome X
5+
command: python -m cli.pimento std --chromosome X
66
stderr:
77
contains:
88
- "Error: No such option: --chromosome"
99
- name: are_there_primers test_correct_args
1010
tags:
1111
- are_there_primers
12-
command: python -m pimento are_there_primers -i tests/fixtures/test.fastq.gz -o sample
12+
command: python -m cli.pimento are_there_primers -i tests/fixtures/test.fastq.gz -o sample
1313
files:
1414
- path: "sample_general_primer_out.txt"
1515
md5sum: f2160c8ffedf48068f2e1137e0a3a7e7
1616
- name: are_there_primers test_big_file
1717
tags:
1818
- are_there_primers
19-
command: python -m pimento are_there_primers -i tests/fixtures/test_big.fastq.gz -o sample
19+
command: python -m cli.pimento are_there_primers -i tests/fixtures/test_big.fastq.gz -o sample
2020
files:
2121
- path: "sample_general_primer_out.txt"
2222
md5sum: f2160c8ffedf48068f2e1137e0a3a7e7

tests/unit/test_choose_primer_cutoff.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,21 @@
22
tags:
33
- choose_primer_cutoff
44
exit_code: 2
5-
command: python -m pimento choose_primer_cutoff --chromosome X
5+
command: python -m cli.pimento choose_primer_cutoff --chromosome X
66
stderr:
77
contains:
88
- "Error: No such option: --chromosome"
99
- name: choose_primer_cutoff test_correct_args
1010
tags:
1111
- choose_primer_cutoff
12-
command: python -m pimento choose_primer_cutoff -i tests/fixtures/test.fastq.gz -p tests/fixtures/test_cutoffs.tsv -o sample
12+
command: python -m cli.pimento choose_primer_cutoff -i tests/fixtures/test.fastq.gz -p tests/fixtures/test_cutoffs.tsv -o sample
1313
files:
1414
- path: "sample_auto_primers.fasta"
1515
md5sum: c36ff305d6aec14df3b7a61cb702101e
1616
- name: choose_primer_cutoff test_large_file
1717
tags:
1818
- choose_primer_cutoff
19-
command: python -m pimento choose_primer_cutoff -i tests/fixtures/test_big.fastq.gz -p tests/fixtures/test_cutoffs_big.tsv -o sample
19+
command: python -m cli.pimento choose_primer_cutoff -i tests/fixtures/test_big.fastq.gz -p tests/fixtures/test_cutoffs_big.tsv -o sample
2020
files:
2121
- path: "sample_auto_primers.fasta"
2222
md5sum: b6abc080cbb4390dce82b23fc176f3c2

tests/unit/test_find_cutoffs.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,21 @@
22
tags:
33
- find_cutoffs
44
exit_code: 2
5-
command: python -m pimento find_cutoffs --chromosome X
5+
command: python -m cli.pimento find_cutoffs --chromosome X
66
stderr:
77
contains:
88
- "Error: No such option: --chromosome"
99
- name: find_cutoffs test_correct_args
1010
tags:
1111
- find_cutoffs
12-
command: python -m pimento find_cutoffs -i tests/fixtures/test_bcv.tsv -o sample
12+
command: python -m cli.pimento find_cutoffs -i tests/fixtures/test_bcv.tsv -o sample
1313
files:
1414
- path: "sample_cutoffs.tsv"
1515
md5sum: b4da973b056b9b5ed4ec7ca8d7998be4
1616
- name: find_cutoffs test_large_file
1717
tags:
1818
- find_cutoffs
19-
command: python -m pimento find_cutoffs -i tests/fixtures/test_big_bcv.tsv -o sample
19+
command: python -m cli.pimento find_cutoffs -i tests/fixtures/test_big_bcv.tsv -o sample
2020
files:
2121
- path: "sample_cutoffs.tsv"
2222
md5sum: 80767a078f817aab1b9c67736d14093b

tests/unit/test_generate_bcv.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,21 @@
22
tags:
33
- generate_bcv
44
exit_code: 2
5-
command: python -m pimento std --chromosome X
5+
command: python -m cli.pimento std --chromosome X
66
stderr:
77
contains:
88
- "Error: No such option: --chromosome"
99
- name: generate_bcv test_correct_args
1010
tags:
1111
- generate_bcv
12-
command: python -m pimento gen_bcv -i tests/fixtures/test.fastq.gz -st FR -o sample
12+
command: python -m cli.pimento gen_bcv -i tests/fixtures/test.fastq.gz -st FR -o sample
1313
files:
1414
- path: "sample_bcv.tsv"
1515
md5sum: 875c712aadf9b21bd535e555dbb4b7e1
1616
- name: generate_bcv test_large_file
1717
tags:
1818
- generate_bcv
19-
command: python -m pimento gen_bcv -i tests/fixtures/test_big.fastq.gz -st FR -o sample
19+
command: python -m cli.pimento gen_bcv -i tests/fixtures/test_big.fastq.gz -st FR -o sample
2020
files:
2121
- path: "sample_bcv.tsv"
2222
md5sum: e4e43a0b9eb6c1c7d1cf9f10926b24c3

tests/unit/test_primer_cutoff_strategy.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,21 @@
22
tags:
33
- primer_cutoff_strategy
44
exit_code: 2
5-
command: python -m pimento choose_primer_cutoff --chromosome X
5+
command: python -m cli.pimento choose_primer_cutoff --chromosome X
66
stderr:
77
contains:
88
- "Error: No such option: --chromosome"
99
- name: primer_cutoff_strategy test_correct_args
1010
tags:
1111
- primer_cutoff_strategy
12-
command: python -m pimento auto -i tests/fixtures/test.fastq.gz -st FR -o sample
12+
command: python -m cli.pimento auto -i tests/fixtures/test.fastq.gz -st FR -o sample
1313
files:
1414
- path: "sample_auto_primers.fasta"
1515
md5sum: c36ff305d6aec14df3b7a61cb702101e
1616
- name: primer_cutoff_strategy test_large_file
1717
tags:
1818
- primer_cutoff_strategy
19-
command: python -m pimento auto -i tests/fixtures/test_big.fastq.gz -st FR -o sample
19+
command: python -m cli.pimento auto -i tests/fixtures/test_big.fastq.gz -st FR -o sample
2020
files:
2121
- path: "sample_auto_primers.fasta"
2222
md5sum: b6abc080cbb4390dce82b23fc176f3c2

tests/unit/test_standard_primer_matching.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22
tags:
33
- standard_primer_matching
44
exit_code: 2
5-
command: python -m pimento std --chromosome X
5+
command: python -m cli.pimento std --chromosome X
66
stderr:
77
contains:
88
- "Error: No such option: --chromosome"
99
- name: standard_primer_matching test_correct_args
1010
tags:
1111
- standard_primer_matching
12-
command: python -m pimento std -i tests/fixtures/test.fastq.gz -p standard_primers -o sample
12+
command: python -m cli.pimento std -i tests/fixtures/test.fastq.gz -p standard_primers -o sample
1313
files:
1414
- path: "sample_std_primers.fasta"
1515
md5sum: f26cdc22a5231d2dbd0831f1f1983dc6

0 commit comments

Comments
 (0)