-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1. Drop support for python 3.6 and 3.7
* Update versions for most dependencies * Update python version matrix in CI workflow 2. Add cgranges as submodule * Add build script to compile cgranges * Update pyproject.toml to call build script, and include cgranges package * Tell mypy to ignore lines that reference cgranges * In CI workflow * Checkout with submodules * Install dev dependencies and build before install * Update poetry version 3. Misc * Put authors list in correct format, drop Nick, add myself * Replace references to `py.path` with `tmp_path` in unit tests
- Loading branch information
Showing
9 changed files
with
643 additions
and
807 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[submodule "cgranges"] | ||
path = cgranges | ||
url = https://github.com/lh3/cgranges |
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,26 @@ | ||
from setuptools import Extension | ||
from Cython.Build import build_ext | ||
|
||
ext_modules = [ | ||
Extension( | ||
"cgranges", | ||
sources=["cgranges/python/cgranges.pyx", "cgranges/cgranges.c"], | ||
depends=[ | ||
"cgranges/cgranges.h", | ||
"cgranges/khash.h", | ||
"cgranges/python/cgranges.pyx" | ||
], | ||
include_dirs=["cgranges"] | ||
) | ||
] | ||
|
||
def build(setup_kwargs): | ||
""" | ||
This function is mandatory in order to build the extensions. | ||
""" | ||
setup_kwargs.update( | ||
{ | ||
"ext_modules": ext_modules, | ||
"cmdclass": {"build_ext": build_ext}, | ||
} | ||
) |
Large diffs are not rendered by default.
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
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 |
---|---|---|
@@ -1,48 +1,51 @@ | ||
[tool.poetry] | ||
name = "pybedlite" | ||
version = "0.0.4-dev" | ||
version = "0.0.4-dev1" | ||
description = "Python classes for interfacing with bed intervals" | ||
authors = ["Nils Homer", "Tim Fennell", "Nathan Roach"] | ||
authors = [ | ||
"Nils Homer <[email protected]>", | ||
"Tim Fennell <[email protected]>", | ||
"John Didion <[email protected]>", | ||
] | ||
license = "MIT" | ||
readme = "README.md" | ||
homepage = "https://github.com/fulcrumgenomics/pybedlite" | ||
repository = "https://github.com/fulcrumgenomics/pybedlite" | ||
keywords = ["bioinformatics"] | ||
classifiers = [ | ||
"Development Status :: 3 - Alpha", | ||
"Environment :: Console", | ||
"Environment :: Console", | ||
"Intended Audience :: Developers", | ||
"Intended Audience :: Science/Research", | ||
"License :: OSI Approved :: MIT License", | ||
"Operating System :: OS Independent", | ||
"Operating System :: OS Independent", | ||
"Programming Language :: Python :: 3", | ||
"Topic :: Scientific/Engineering :: Bio-Informatics", | ||
"Topic :: Software Development :: Documentation", | ||
"Topic :: Software Development :: Libraries :: Python Modules", | ||
] | ||
include = [ | ||
"LICENSE", | ||
"Topic :: Software Development :: Documentation", | ||
"Topic :: Software Development :: Libraries :: Python Modules", | ||
] | ||
include = ["LICENSE"] | ||
packages = [{ include = "pybedlite" }, { include = "cgranges" }] | ||
|
||
[tool.poetry.dependencies] | ||
python = ">=3.6.0" | ||
attrs = ">=19.3.0" | ||
typing_extensions = { version = ">=3.7.4", python = "<3.8" } # Literal support | ||
typing_inspect = { version = ">=0.3.1", python = "<3.8" } # inspecting types | ||
sphinx = {version = "4.3.1", optional = true} | ||
Cython = "^0.29.30" | ||
cgranges = {git = "https://github.com/lh3/cgranges.git", rev = "v0.1"} | ||
python = "^3.8.0" | ||
attrs = "^23.0.0" | ||
sphinx = { version = "^7.0.0", optional = true } | ||
|
||
[tool.poetry.dev-dependencies] | ||
pytest = ">=5.4.2" | ||
mypy = ">=0.770" | ||
flake8 = ">=4.0.1" | ||
black = ">=19.10b0" | ||
pytest-cov = ">=2.8.1" | ||
pytest = "^7.0.0" | ||
mypy = "^1.5.0" | ||
flake8 = "^5.0.0" | ||
black = "^23.0.0" | ||
pytest-cov = "^4.0.0" | ||
|
||
[tool.poetry.extras] | ||
docs = ["sphinx"] | ||
|
||
[tool.poetry.build] | ||
script = "build.py" | ||
generate-setup-file = true | ||
|
||
[build-system] | ||
requires = ["poetry>=0.12"] | ||
build-backend = "poetry.masonry.api" | ||
requires = ["poetry-core", "setuptools", "cython"] | ||
build-backend = "poetry.core.masonry.api" |