Skip to content

Commit 6eac920

Browse files
authored
Merge pull request #89 from NatPRoach/feat/migrate_python_to_modern_build_peps
feat: adding pyproject.toml to enable building via newer python versions
2 parents d107376 + 9f84b3d commit 6eac920

3 files changed

Lines changed: 17 additions & 9 deletions

File tree

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ $(SRC_DIR)/abpoa_dispatch_simd_avx512bw.o:$(SRC_DIR)/abpoa_dispatch_simd.c $(SRC
197197
$(CC) -c $(CFLAGS) -DABPOA_SIMD_DISPATCH -mavx512bw -I$(INC_DIR) $< -o $@
198198

199199
install_py: setup.py python/cabpoa.pxd python/pyabpoa.pyx python/README.md
200-
${py_SIMD_FLAG} python setup.py install
200+
${py_SIMD_FLAG} python -m pip install .
201201

202202
sdist: setup.py python/cabpoa.pxd python/pyabpoa.pyx python/README.md
203203
${py_SIMD_FLAG} python setup.py sdist #bdist_wheel

pyproject.toml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
[build-system]
2+
requires = [
3+
"setuptools",
4+
"cython"
5+
]
6+
build-backend = "setuptools.build_meta"
7+
8+
[project]
9+
name = "pyabpoa"
10+
version = "1.5.6"
11+
urls = {Project-URL = "https://github.com/yangao07/abPOA"}
12+
authors = [{name = "Yan Gao", email = "yangao@ds.dfci.harvard.edu"}]
13+
license = "MIT"
14+
keywords = ["multiple-sequence-alignment", "partial-order-graph-alignment"]
15+
description = "pyabpoa: SIMD-based partial order alignment using adaptive band"
16+
readme = "python/README.md"

setup.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -58,16 +58,8 @@
5858

5959
setup(
6060
# Information
61-
name = "pyabpoa",
62-
description = "pyabpoa: SIMD-based partial order alignment using adaptive band",
6361
long_description = long_description,
6462
long_description_content_type="text/markdown",
65-
version = "1.5.5",
66-
url = "https://github.com/yangao07/abPOA",
67-
author = "Yan Gao",
68-
author_email = "yangao@ds.dfci.harvard.edu",
69-
license = "MIT",
70-
keywords = "multiple-sequence-alignment partial-order-graph-alignment",
7163
setup_requires=["cython"],
7264
# Build instructions
7365
ext_modules = [

0 commit comments

Comments
 (0)