Skip to content

Commit fb5c040

Browse files
ad3002claude
andcommitted
Migrate to pyproject.toml, fix license to MIT
- Replace setup.py with pyproject.toml (modern Python packaging) - Version now defined in pyproject.toml only - __init__.py uses importlib.metadata to get version - Fix license: BSD-3-Clause -> MIT in both Python and Rust Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent ed2a80c commit fb5c040

5 files changed

Lines changed: 52 additions & 54 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>=61.0"]
3+
build-backend = "setuptools.build_meta"
4+
5+
[project]
6+
name = "ArraySplitter"
7+
version = "1.6.0"
8+
description = "De Novo Decomposition of Satellite DNA Arrays into Monomers within Telomere-to-Telomere Assemblies"
9+
readme = "README.md"
10+
license = {text = "MIT"}
11+
authors = [
12+
{name = "Aleksey Komissarov", email = "ad3002@gmail.com"}
13+
]
14+
requires-python = ">=3.8"
15+
classifiers = [
16+
"Development Status :: 4 - Beta",
17+
"Environment :: Console",
18+
"Intended Audience :: Science/Research",
19+
"License :: OSI Approved :: MIT License",
20+
"Operating System :: OS Independent",
21+
"Programming Language :: Python",
22+
"Programming Language :: Python :: 3",
23+
"Programming Language :: Python :: 3.8",
24+
"Programming Language :: Python :: 3.9",
25+
"Programming Language :: Python :: 3.10",
26+
"Programming Language :: Python :: 3.11",
27+
"Programming Language :: Python :: 3.12",
28+
"Topic :: Scientific/Engineering :: Bio-Informatics",
29+
]
30+
dependencies = [
31+
"PyExp",
32+
"editdistance",
33+
"tqdm",
34+
]
35+
36+
[project.urls]
37+
Homepage = "https://github.com/aglabx/ArraySplitter"
38+
Repository = "https://github.com/aglabx/ArraySplitter"
39+
40+
[project.scripts]
41+
arraysplitter = "ArraySplitter.main:run_it"
42+
43+
[tool.setuptools.packages.find]
44+
where = ["src"]

setup.py

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

src/ArraySplitter/__init__.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@
55
# @author: Aleksey Komissarov
66
# @contact: ad3002@gmail.com
77

8-
__version__ = "1.4.0"
8+
from importlib.metadata import version, PackageNotFoundError
9+
10+
try:
11+
__version__ = version("ArraySplitter")
12+
except PackageNotFoundError:
13+
__version__ = "dev"
914

1015
# __all__ = []

src/rust/arraysplitter/Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/rust/arraysplitter/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ version = "1.6.0"
44
edition = "2021"
55
authors = ["Aleksey Komissarov <ad3002@gmail.com>"]
66
description = "De novo decomposition of satellite DNA arrays into monomers"
7-
license = "BSD-3-Clause"
7+
license = "MIT"
88

99
[dependencies]
1010
# CLI

0 commit comments

Comments
 (0)