-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Modernize pyproject.toml and remove versioneer (#45)
Modernize pyproject.toml and remove versioneer
- Loading branch information
Showing
13 changed files
with
220 additions
and
2,997 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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
[flake8] | ||
max-line-length = 100 | ||
inline-quotes = " | ||
exclude = | ||
graphblas_algorithms/*/tests/, | ||
graphblas_algorithms/*/*/tests/, | ||
build/ | ||
extend-ignore = | ||
E203, | ||
SIM105, | ||
SIM401, | ||
# E203 whitespace before ':' (to be compatible with black) | ||
per-file-ignores = | ||
__init__.py:F401,F403, # allow unused and star imports | ||
test_*.py:F401,F403, | ||
graphblas_algorithms/nxapi/exception.py:F401, | ||
graphblas_algorithms/**/__init__.py:F401,F403 |
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 |
---|---|---|
@@ -1,9 +1,5 @@ | ||
recursive-include graphblas_algorithms *.py | ||
include setup.py | ||
include setup.cfg | ||
include README.md | ||
include LICENSE | ||
include MANIFEST.in | ||
include versioneer.py | ||
include requirements.txt | ||
include graphblas_algorithms/_version.py |
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 |
---|---|---|
|
@@ -50,6 +50,7 @@ dependencies: | |
- requests | ||
# For debugging | ||
- icecream | ||
- ipykernel | ||
- ipython | ||
# For type annotations | ||
- mypy |
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,6 +1,16 @@ | ||
from . import _version | ||
import importlib.metadata | ||
|
||
from .classes import * | ||
|
||
from .algorithms import * # isort:skip | ||
|
||
__version__ = _version.get_versions()["version"] | ||
try: | ||
__version__ = importlib.metadata.version("graphblas-algorithms") | ||
except Exception as exc: # pragma: no cover (safety) | ||
raise AttributeError( | ||
"`graphblas_algorithms.__version__` not available. This may mean " | ||
"graphblas-algorithms was incorrectly installed or not installed at all. " | ||
"For local development, you may want to do an editable install via " | ||
"`python -m pip install -e path/to/graphblas-algorithms`" | ||
) from exc | ||
del importlib |
Oops, something went wrong.