Skip to content

Commit

Permalink
Updated toml to make sure the cpp files are included in the package
Browse files Browse the repository at this point in the history
  • Loading branch information
burtonrj committed Jun 24, 2023
1 parent dc5cd59 commit bd1992e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 12 deletions.
10 changes: 6 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,11 @@ mongomock = "*"
mypy = "*"


[build-system]
requires = ["pybind11", "setuptools"]
build-backend = "setuptools.build_meta"
[tool.poetry.build]
script = "python setup.py build_ext --inplace"

[tool.poetry.package]
include = ["cytotransform/logicle_ext/*.cpp", "cytotransform/logicle_ext/*.h"]

##### isort configuration https://pycqa.github.io/isort/docs/configuration/config_files.html
[tool.isort]
Expand All @@ -49,7 +51,7 @@ skip = "__init__.py"
##### black configuration https://black.readthedocs.io/en/stable/usage_and_configuration/the_basics.html#configuration-via-a-file
[tool.black]
line-length = 88
target_version = ['py311']
target_version = ['py310']


##### pytest configuration: http://doc.pytest.org/en/latest/customize.html
Expand Down
12 changes: 4 additions & 8 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,18 +1,14 @@
from setuptools import setup, Extension
from pybind11.setup_helpers import Pybind11Extension
from setuptools import setup

ext_modules = [
Pybind11Extension(
"cytotransform.logicle_ext",
[
"cytotransform/logicle_ext/FastLogicle.cpp",
"cytotransform/logicle_ext/Logicle.cpp"
]
"cytotransform/logicle_ext/Logicle.cpp",
],
)
]

setup(
name="cytotransform",
version="0.1.0",
ext_modules=ext_modules
)
setup(name="cytotransform", version="0.1.1", ext_modules=ext_modules)

0 comments on commit bd1992e

Please sign in to comment.