Skip to content

Commit 378ec2d

Browse files
committed
Migrate from setup.py to pyproject.toml
Use modern PEP 621 project metadata with setuptools build backend. Removed test deps (pylint, nose) from requirements.txt.
1 parent 3cdc033 commit 378ec2d

3 files changed

Lines changed: 44 additions & 83 deletions

File tree

pyproject.toml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
[build-system]
2+
requires = ["setuptools>=64"]
3+
build-backend = "setuptools.build_meta"
4+
5+
[project]
6+
name = "isovar"
7+
requires-python = ">=3.9"
8+
authors = [{name="Alex Rubinsteyn"}, {name="Arman Aksoy"}, {name="Julia Kodysh"}]
9+
description = "Determine mutant protein sequences from RNA using assembly around variants"
10+
classifiers = [
11+
"Development Status :: 4 - Beta",
12+
"Environment :: Console",
13+
"Operating System :: OS Independent",
14+
"Intended Audience :: Science/Research",
15+
"License :: OSI Approved :: Apache Software License",
16+
"Programming Language :: Python",
17+
"Topic :: Scientific/Engineering :: Bio-Informatics",
18+
]
19+
readme = "README.md"
20+
dynamic = ["version", "dependencies"]
21+
22+
[tool.setuptools.dynamic]
23+
version = {attr = "isovar.__version__"}
24+
dependencies = {file = ["requirements.txt"]}
25+
26+
[tool.setuptools.packages.find]
27+
include = ["isovar", "isovar.*"]
28+
29+
[tool.setuptools.package-data]
30+
isovar = ["logging.conf"]
31+
32+
[project.urls]
33+
"Homepage" = "https://github.com/openvax/isovar"
34+
"Bug Tracker" = "https://github.com/openvax/isovar/issues"
35+
36+
[project.scripts]
37+
isovar = "isovar.cli.isovar_main:run"
38+
isovar-protein-sequences = "isovar.cli.isovar_protein_sequences:run"
39+
isovar-translations = "isovar.cli.isovar_translations:run"
40+
isovar-reference-contexts = "isovar.cli.isovar_reference_contexts:run"
41+
isovar-allele-reads = "isovar.cli.isovar_allele_reads:run"
42+
isovar-allele-counts = "isovar.cli.isovar_allele_counts:run"
43+
isovar-variant-reads = "isovar.cli.isovar_variant_reads:run"
44+
isovar-variant-sequences = "isovar.cli.isovar_variant_sequences:run"

requirements.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
pylint>=1.4.4
21
pyensembl>=1.5.0
32
varcode>=0.9.0
43
pandas>=0.23.0
54
pysam>=0.15.2
6-
nose>=1.3.3
75
psutil

setup.py

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

0 commit comments

Comments
 (0)