Skip to content

Commit d35a1a8

Browse files
authored
Merge pull request #13 from PennChopMicrobiomeProgram/codex/modernize-library-setup-with-pyproject.toml
Use pyproject.toml and update CLI flag
2 parents 6264e63 + e69da75 commit d35a1a8

4 files changed

Lines changed: 28 additions & 28 deletions

File tree

pyproject.toml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
[build-system]
2+
requires = ["setuptools>=61.0"]
3+
build-backend = "setuptools.build_meta"
4+
5+
[project]
6+
name = "seqBackup"
7+
description = "Set of rules to organize our fastq storage on the server."
8+
authors = [{name = "Ceylan Tanes", email = "ctanes@gmail.com"}]
9+
readme = "README.md"
10+
requires-python = ">=3.9"
11+
dynamic = ["version"]
12+
13+
[project.urls]
14+
homepage = "https://github.com/PennChopMicrobiomeProgram"
15+
16+
[project.scripts]
17+
backup_illumina = "seqBackupLib.backup:main"
18+
19+
[tool.setuptools.packages.find]
20+
where = ["."]
21+
include = ["seqBackupLib"]
22+
23+
[tool.setuptools.dynamic]
24+
version = {attr = "seqBackupLib.version.__version__"}

scripts/backup_illumina.py

Lines changed: 0 additions & 4 deletions
This file was deleted.

seqBackupLib/backup.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -121,11 +121,9 @@ def main(argv=None):
121121
help="The sample sheet associated with the run.",
122122
)
123123
parser.add_argument(
124-
"--has-index",
125-
required=False,
126-
type=bool,
127-
default=True,
128-
help="Are index reads generated",
124+
"--no-index",
125+
action="store_true",
126+
help="Skip index reads (I1/I2) during backup",
129127
)
130128
parser.add_argument(
131129
"--min-file-size",
@@ -140,7 +138,7 @@ def main(argv=None):
140138
args.forward_reads,
141139
args.destination_dir,
142140
args.sample_sheet,
143-
args.has_index,
141+
not args.no_index,
144142
args.min_file_size,
145143
)
146144

setup.py

Lines changed: 0 additions & 18 deletions
This file was deleted.

0 commit comments

Comments
 (0)