-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
157 changed files
with
1,357 additions
and
1,183 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
cmake_minimum_required(VERSION 3.20) | ||
project(${SKBUILD_PROJECT_NAME} VERSION ${SKBUILD_PROJECT_VERSION} LANGUAGES C) | ||
|
||
set(BUILD_SHARED_LIBS OFF) | ||
set(CMAKE_POSITION_INDEPENDENT_CODE ON) | ||
|
||
set_property(GLOBAL PROPERTY PYTHON_EXTENSIONS_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/src) | ||
|
||
# --- Detect SIMD -------------------------------------------------------------- | ||
|
||
include("src/scripts/cmake/FindNEON.cmake") | ||
include("src/scripts/cmake/FindSSE2.cmake") | ||
include("src/scripts/cmake/FindSSE4.cmake") | ||
include("src/scripts/cmake/FindVMX.cmake") | ||
include("src/scripts/cmake/Destatic.cmake") | ||
include("src/scripts/cmake/CythonExtension.cmake") | ||
|
||
if(HAVE_SSE4) | ||
set(eslENABLE_SSE4 true) | ||
string(STRIP "${SSE4_C_FLAGS}" IMPL_FLAGS) | ||
if(IMPL_FLAGS) | ||
add_compile_options(${IMPL_FLAGS}) | ||
endif() | ||
endif() | ||
|
||
if(HAVE_SSE2) | ||
set(eslENABLE_SSE true) | ||
set(HMMER_IMPL "SSE") | ||
string(STRIP "${SSE2_C_FLAGS}" IMPL_FLAGS) | ||
elseif(HAVE_NEON) | ||
set(eslENABLE_NEON true) | ||
set(HMMER_IMPL "NEON") | ||
string(STRIP "${NEON_C_FLAGS}" IMPL_FLAGS) | ||
elseif(HAVE_VMX) | ||
set(eslENABLE_VMX true) | ||
set(HMMER_IMPL "VMX") | ||
string(STRIP "${VMX_C_FLAGS}" IMPL_FLAGS) | ||
else() | ||
message(FATAL_ERROR "Unsupported platform, none of SSE2, NEON or AltiVec available.") | ||
endif() | ||
|
||
if(IMPL_FLAGS) | ||
add_compile_options(${IMPL_FLAGS}) | ||
endif() | ||
|
||
# --- Setup include folders ---------------------------------------------------- | ||
|
||
set(CYTHON_HEADERS_DIR ${CMAKE_CURRENT_LIST_DIR}/include) | ||
|
||
# --- Compile source code ------------------------------------------------------ | ||
|
||
add_subdirectory("src") |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,112 @@ | ||
[build-system] | ||
requires = ["scikit-build-core", "cython >= 3.0"] | ||
build-backend = "scikit_build_core.build" | ||
|
||
[project] | ||
name = "pyhmmer" | ||
version = "0.10.15" | ||
description = "Cython bindings and Python interface to HMMER3." | ||
readme = "README.md" | ||
requires-python = ">=3.7" | ||
license = { file = "COPYING" } | ||
authors = [ | ||
{ name = "Martin Larralde", email = "martin.larralde@embl.de" }, | ||
] | ||
# platform = "posix" | ||
keywords = ["bioinformatics", "profile", "HMM", "sequence", "pfam"] | ||
classifiers = [ | ||
"Development Status :: 4 - Beta", | ||
"Intended Audience :: Developers", | ||
"Intended Audience :: Science/Research", | ||
"License :: OSI Approved :: MIT License", | ||
"Operating System :: POSIX", | ||
"Programming Language :: C", | ||
"Programming Language :: Cython", | ||
"Programming Language :: Python :: 3.7", | ||
"Programming Language :: Python :: 3.8", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
"Programming Language :: Python :: 3.12", | ||
"Programming Language :: Python :: Implementation :: CPython", | ||
"Programming Language :: Python :: Implementation :: PyPy", | ||
"Topic :: Scientific/Engineering :: Bio-Informatics", | ||
"Topic :: Scientific/Engineering :: Medical Science Apps.", | ||
"Typing :: Typed", | ||
] | ||
dependencies = [ | ||
"psutil ~=6.0" | ||
] | ||
|
||
[project.urls] | ||
"Documentation" = "https://pyhmmer.readthedocs.io/en/stable/" | ||
"Bug Tracker" = "https://github.com/althonos/pyhmmer/issues" | ||
"Changelog" = "https://github.com/althonos/pyhmmer/blob/master/CHANGELOG.md" | ||
"Coverage" = "https://codecov.io/gh/althonos/pyhmmer/" | ||
"Builds" = "https://github.com/althonos/pyhmmer/actions" | ||
"Paper" = "https://doi.org/10.1093/bioinformatics/btad214" | ||
"PyPI" = "https://pypi.org/project/pyhmmer" | ||
|
||
[project.optional-dependencies] | ||
test = ["importlib-resources ; python_version < '3.9'"] | ||
|
||
[tool.scikit-build] | ||
build-dir = "build/{build_type}" | ||
editable.rebuild = true | ||
editable.verbose = false | ||
|
||
[[tool.scikit-build.generate]] | ||
path = "src/pyhmmer/_version.py" | ||
template = '__version__ = "${version}"' | ||
location = 'source' | ||
|
||
[[tool.scikit-build.overrides]] | ||
if.state = "editable" | ||
cmake.build-type = "Debug" | ||
|
||
[[tool.scikit-build-overrides]] | ||
if.env.SCCACHE = true | ||
cmake.define.CMAKE_C_COMPILER_LAUNCHER = "sccache" | ||
cmake.define.CMAKE_CXX_COMPILER_LAUNCHER = "sccache" | ||
|
||
[[tool.scikit-build-overrides]] | ||
if.env.MOLD = true | ||
cmake.define.CMAKE_LINKER_TYPE = "mold" | ||
|
||
#[tool.coverage.run] | ||
#plugins = ["Cython.Coverage"] | ||
|
||
[tool.coverage.report] | ||
include = ["src/pyhmmer/*"] | ||
omit = ["src/pyhmmer/tests/*"] | ||
show_missing = true | ||
exclude_lines = [ | ||
"pragma: no cover", | ||
"if typing.TYPE_CHECKING:", | ||
"@abc.abstractmethod", | ||
"@abc.abstractproperty", | ||
"raise NotImplementedError", | ||
"return NotImplemented", | ||
"raise UnexpectedError", | ||
"raise AllocationError", | ||
] | ||
|
||
[tool.coverage.paths] | ||
source = [ | ||
"src/pyhmmer/", | ||
"build/Debug/src/pyhmmer/", | ||
] | ||
|
||
[tool.mypy] | ||
disallow_any_decorated = true | ||
disallow_any_generics = true | ||
disallow_any_unimported = false | ||
disallow_subclassing_any = false | ||
disallow_untyped_calls = true | ||
disallow_untyped_defs = true | ||
ignore_missing_imports = true | ||
warn_unused_ignores = true | ||
warn_return_any = true | ||
|
||
["tool.mypy-pyhmmer.tests.*"] | ||
ignore_errors = true |
Oops, something went wrong.