Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:

strategy:
matrix:
python: [3.7]
python: [3.12]

name: Python ${{ matrix.python }}

Expand All @@ -29,9 +29,6 @@ jobs:
- name: Install coverage dependencies
run: pip install pytest-cov

- name: Build
run: python setup.py build_ext --inplace

- name: Install pybbhash
run: pip install -e .

Expand Down
16 changes: 12 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,13 +1,21 @@
.PHONY: dist wheel test

all:
python setup.py build_ext -i
pip install -e .

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

test: all
py.test

upload:
rm -fr dist
python setup.py sdist
upload: dist
twine upload dist/bbhash-*.tar.gz

dist:
rm -fr dist
python -m build -s

wheel:
rm -fr dist
python -m build
33 changes: 33 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
[build-system]
requires = [
"setuptools", "cython"
]

[project]
name = "bbhash"
version = "0.6.0"
readme = "README.md"
description = "A Python wrapper for the BBHash Minimal Perfect Hash Function"
license = "BSD-3-Clause"

authors = [
{ name="C. Titus Brown" },
]

dependencies = [
"numpy",
]

requires-python = ">=3.11"

[metadata]
license = { text = "BSD 3-Clause License" }

[project.urls]
"Source" = "http://github.com/dib-lab/pybbhash"

[tool.setuptools]
ext-modules = [
{ name = "bbhash", sources = ["src/bbhash.pyx"], language="c++", depends=["src/BooPHF.h"] },
{ name = "bbhash_table", sources = ["src/bbhash_table.pyx"], language="c++" }
]
41 changes: 0 additions & 41 deletions setup.py

This file was deleted.

File renamed without changes.
File renamed without changes.
3 changes: 3 additions & 0 deletions bbhash_table.pyx → src/bbhash_table.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ import bbhash
import os
from collections import defaultdict

# huh, ok.
STUFF="Hi"

class BBHashTable(object):
"""\
Retrieve values by MPHF lookup.
Expand Down
File renamed without changes.
File renamed without changes.