Skip to content

Commit 7e327a1

Browse files
authored
Merge pull request #65 from nvictus/build-mixed-project
Help maturin recognize mixed rust-python project
2 parents 05e67c6 + 6e89f41 commit 7e327a1

2 files changed

Lines changed: 9 additions & 5 deletions

File tree

pybigtools/pybigtools/__init__.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
# ruff: noqa: F403
22
# ruff: noqa: F405
33
# This is here to make sure that source installs with pip work correctly
4+
from pybigtools.pybigtools import *
5+
from pybigtools import pybigtools as bt
46

5-
from .pybigtools import *
6-
7-
__doc__ = pybigtools.__doc__
8-
if hasattr(pybigtools, "__all__"):
9-
__all__ = pybigtools.__all__
7+
__doc__ = bt.__doc__
8+
if hasattr(bt, "__all__"):
9+
__all__ = bt.__all__
10+
del bt

pybigtools/pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,6 @@ dev = [
4141
homepage = "https://github.com/jackh726/bigtools"
4242
documentation = "https://bigtools.readthedocs.io"
4343
repository = "https://github.com/jackh726/bigtools"
44+
45+
[tool.maturin]
46+
python-source = "pybigtools"

0 commit comments

Comments
 (0)