-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from tlambert03/add-kwargs
refactor: add extension_kwargs kwargs and nitpicky stuff
- Loading branch information
Showing
5 changed files
with
190 additions
and
116 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,3 +25,6 @@ repos: | |
rev: v1.13.0 | ||
hooks: | ||
- id: mypy | ||
additional_dependencies: | ||
- cython | ||
- setuptools |
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,31 +1,24 @@ | ||
[build-system] | ||
requires = ["setuptools", "setuptools-scm"] | ||
build-backend = "setuptools.build_meta" | ||
requires = ["setuptools", "wheel"] | ||
|
||
[project] | ||
name = "witty" | ||
description = "Well-in-Time Compiler for Cython Modules" | ||
readme = "README.md" | ||
requires-python = ">=3.9" | ||
classifiers = [ | ||
"Programming Language :: Python :: 3", | ||
] | ||
classifiers = ["Programming Language :: Python :: 3"] | ||
keywords = [] | ||
license = { text = "BSD 3-Clause License" } | ||
authors = [ | ||
{ email = "[email protected]", name = "Jan Funke" }, | ||
{ email = "[email protected]", name = "Jan Funke" }, | ||
{ email = "[email protected]", name = "Talley Lambert" }, | ||
] | ||
dynamic = ["version"] | ||
dependencies = ["cython", "setuptools; python_version >= '3.12'"] | ||
|
||
[project.optional-dependencies] | ||
dev = [ | ||
'pytest', | ||
'ruff', | ||
'mypy', | ||
'pdoc', | ||
'pre-commit' | ||
] | ||
dev = ['pytest', 'ruff', 'mypy', 'pdoc', 'pre-commit'] | ||
|
||
[project.urls] | ||
homepage = "https://github.com/funkelab/witty" | ||
|
@@ -34,3 +27,24 @@ repository = "https://github.com/funkelab/witty" | |
[tool.ruff] | ||
target-version = "py39" | ||
src = ["src"] | ||
|
||
[tool.ruff.lint] | ||
select = [ | ||
"E", # style errors | ||
"F", # flakes | ||
"W", # warnings | ||
"I", # isort | ||
"UP", # pyupgrade | ||
] | ||
|
||
[tool.mypy] | ||
files = "src/**/*.py" | ||
strict = true | ||
disallow_any_generics = false | ||
disallow_subclassing_any = false | ||
show_error_codes = true | ||
pretty = true | ||
|
||
[[tool.mypy.overrides]] | ||
module = ["tests.*"] | ||
disallow_untyped_defs = false |
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,5 +1,11 @@ | ||
from .compile_module import compile_module | ||
from importlib.metadata import PackageNotFoundError, version | ||
|
||
try: | ||
__version__ = version("witty") | ||
except PackageNotFoundError: | ||
# package is not installed | ||
__version__ = "unknown" | ||
|
||
__version__ = "0.1" | ||
from .compile_module import compile_module | ||
|
||
__all__ = ["compile_module"] |
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
Empty file.