Skip to content

Commit 7193eed

Browse files
committed
add pyproject.toml
1 parent 652bfe2 commit 7193eed

8 files changed

Lines changed: 45 additions & 42 deletions

File tree

Makefile

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,21 @@
1+
.PHONY: dist wheel test
2+
13
all:
2-
python setup.py build_ext -i
4+
pip install -e .
35

46
clean:
57
rm -fr bbhash.cpp bbhash.cpython-36m-darwin.so build/ bbhash.egg-info
68

79
test: all
810
py.test
911

10-
upload:
11-
rm -fr dist
12-
python setup.py sdist
12+
upload: dist
1313
twine upload dist/bbhash-*.tar.gz
14+
15+
dist:
16+
rm -fr dist
17+
python -m build -s
18+
19+
wheel:
20+
rm -fr dist
21+
python -m build

pyproject.toml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
[build-system]
2+
requires = [
3+
"setuptools", "cython"
4+
]
5+
6+
[project]
7+
name = "bbhash"
8+
version = "0.6.0"
9+
readme = "README.md"
10+
description = "A Python wrapper for the BBHash Minimal Perfect Hash Function"
11+
license = "BSD-3-Clause"
12+
13+
authors = [
14+
{ name="C. Titus Brown" },
15+
]
16+
17+
dependencies = [
18+
"numpy",
19+
]
20+
21+
requires-python = ">=3.11"
22+
23+
[metadata]
24+
license = { text = "BSD 3-Clause License" }
25+
26+
[project.urls]
27+
"Source" = "http://github.com/dib-lab/pybbhash"
28+
29+
[tool.setuptools]
30+
ext-modules = [
31+
{ name = "bbhash", sources = ["src/bbhash.pyx"], language="c++", depends=["src/BooPHF.h"] },
32+
{ name = "bbhash_table", sources = ["src/bbhash_table.pyx"], language="c++" }
33+
]

setup.py

Lines changed: 0 additions & 38 deletions
This file was deleted.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)