-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* v2.6.1 (#62) * bump version 2.6.1 * Added tests and example for custom typing for compression (#59) * Added pipelining to methods pop,setdefault (#61) * Added pipelining to methods pop,setdefault * Changed use SET redis command to set and get within one command * Changed housecleaning * Added mypy strict to ci * Changed mypy and python3.12 don't seem to mix well * Added python versions 13 and 14 * Changed seems python 3.14 is not yet available through ubuntu os * Changed seems python3.14 alpha is available * Changed seems python3.14 alpha is available but it's not useable * Changed mypy and python3.13 also don't mix well * Deleted python3.13 from CI, cryptography package fails on ubuntu base * Changed removed and updated comments * Changed changed name of variable * Changed pop method from two operations to single * Added tests, and handling of edge cases * Removed redundant test file * Changed moved import to top of the file * add possibility to pass connection (#63) * added possibility to pass existing redis instance * fix redis is not a generic class * extends test of testing connection * move test to correct place and make test code more verbose --------- Co-authored-by: Jan Vollmer <[email protected]> * Added RedisDict encoding/decoding to JSON * Changed to convention dir layout * Changed moved test to dev-requirements * Changed updated packages for dev/test * Changed path for pylama and mypy * Added PYTHONPATH as env for the unittest * Changed, setup the project for versioning * Changed, handling of version missing pragmatic * Added failed test for json encoding/decoding * Removed EnumType, not available for python3.9 * Added the _default_decoder to the tests * Changed readme, updated links and small changes * Changed removed python2 methods, changed the methods keys,values,items to Iterators * Changed enabled all types are tested test again * Changed mypy import issue * Changed mypy importing issue * Changed mypy imports fun * Changed mypy, imports * Changed add verbose to mypy for debuggin * Changed missed adding the new file to git * Changed revert github action changes * Changed small housekeeping * Changed updated docstrings * Changed initial start for Sphinx docs * Add doctype test to ci * Changed working version of build docs, but still needs work * Changed passes different linters * Added missing methods from dict to RedisDict * Changed skip new method tests for older than python3.9 * Changed handling for new method case other does not adhere to mapping * Added example of nested types * Changed updated path for readme link --------- Co-authored-by: Jan Vollmer <[email protected]>
- Loading branch information
Showing
30 changed files
with
2,203 additions
and
470 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 |
---|---|---|
|
@@ -7,9 +7,13 @@ build | |
dist | ||
venv | ||
.venv | ||
.venv_* | ||
dev_venv | ||
|
||
.hypothesis/ | ||
|
||
|
||
.coverage | ||
.coverage* | ||
htmlcov | ||
|
||
|
||
.idea/ |
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,23 +1,32 @@ | ||
astroid==3.2.4 | ||
attrs==22.2.0 | ||
cffi==1.15.1 | ||
coverage==5.5 | ||
cryptography==43.0.1 | ||
darglint==1.8.1 | ||
dill==0.3.9 | ||
exceptiongroup==1.1.1 | ||
future==0.18.3 | ||
hypothesis==6.70.1 | ||
isort==5.13.2 | ||
mccabe==0.7.0 | ||
mypy==1.1.1 | ||
mypy==1.13.0 | ||
mypy-extensions==1.0.0 | ||
platformdirs==4.3.6 | ||
pycodestyle==2.10.0 | ||
pycparser==2.21 | ||
pydocstyle==6.3.0 | ||
pyflakes==3.0.1 | ||
pylama==8.4.1 | ||
pylint==3.2.7 | ||
redis==4.5.4 | ||
redis==5.2.0 | ||
setuptools==75.3.0 | ||
snowballstemmer==2.2.0 | ||
sortedcontainers==2.4.0 | ||
tomli==2.0.1 | ||
types-pyOpenSSL==23.1.0.0 | ||
types-redis==4.5.3.0 | ||
typing_extensions==4.5.0 | ||
tomlkit==0.13.2 | ||
types-cffi==1.16.0.20240331 | ||
types-pyOpenSSL==24.1.0.20240722 | ||
types-redis==4.6.0.20241004 | ||
types-setuptools==75.2.0.20241025 | ||
typing_extensions==4.12.2 |
File renamed without changes.
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,133 @@ | ||
[build-system] | ||
requires = ["setuptools>=68.0", "wheel"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[project] | ||
name = "redis-dict" | ||
version = "3.0.0" | ||
description = "Dictionary with Redis as storage backend" | ||
authors = [ | ||
{name = "Melvin Bijman", email = "[email protected]"}, | ||
] | ||
readme = "README.md" | ||
|
||
requires-python = ">=3.8" | ||
license = {text = "MIT"} | ||
dependencies = [ | ||
"redis>=4.0.0", | ||
] | ||
classifiers = [ | ||
"Development Status :: 5 - Production/Stable", | ||
"Intended Audience :: Developers", | ||
"Intended Audience :: Information Technology", | ||
"Intended Audience :: Science/Research", | ||
"Topic :: Internet", | ||
"Topic :: Scientific/Engineering", | ||
"Topic :: Database", | ||
"Topic :: System :: Distributed Computing", | ||
"Topic :: Software Development :: Libraries :: Python Modules", | ||
"Topic :: Software Development :: Object Brokering", | ||
"Topic :: Database :: Database Engines/Servers", | ||
"License :: OSI Approved :: MIT License", | ||
"Programming Language :: Python :: 3", | ||
"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", | ||
"Typing :: Typed", | ||
] | ||
|
||
keywords = [ | ||
"redis", "python", "dictionary", "dict", "key-value", | ||
"database", "caching", "distributed-computing", | ||
"dictionary-interface", "large-datasets", | ||
"scientific-computing", "data-persistence", | ||
"high-performance", "scalable", "pipelining", | ||
"batching", "big-data", "data-types", | ||
"distributed-algorithms", "encryption", | ||
"data-management", | ||
] | ||
|
||
[project.optional-dependencies] | ||
dev = [ | ||
"coverage==5.5", | ||
"hypothesis==6.70.1", | ||
|
||
"mypy>=1.8.0", | ||
"mypy-extensions>=1.0.0", | ||
"types-pyOpenSSL>=24.0.0.0", | ||
"types-redis>=4.6.0", | ||
"typing_extensions>=4.5.0", | ||
|
||
"pylama>=8.4.1", | ||
"pycodestyle==2.10.0", | ||
"pydocstyle==6.3.0", | ||
"pyflakes==3.0.1", | ||
"pylint==3.2.7", | ||
"mccabe==0.7.0", | ||
|
||
"attrs==22.2.0", | ||
"cffi==1.15.1", | ||
"cryptography==43.0.1", | ||
"exceptiongroup==1.1.1", | ||
"future==0.18.3", | ||
"pycparser==2.21", | ||
"snowballstemmer==2.2.0", | ||
"sortedcontainers==2.4.0", | ||
"tomli==2.0.1", | ||
"setuptools>=68.0.0", | ||
"darglint", | ||
"pydocstyle", | ||
] | ||
|
||
docs = [ | ||
"sphinx", | ||
"sphinx-rtd-theme", | ||
"sphinx-autodoc-typehints", | ||
"tomli", | ||
"myst-parser", | ||
] | ||
|
||
|
||
[tool.setuptools] | ||
package-dir = {"" = "src"} | ||
packages = ["redis_dict"] | ||
|
||
[tool.setuptools.package-data] | ||
redis_dict = ["py.typed"] | ||
|
||
[tool.coverage.run] | ||
source = ["redis_dict"] | ||
branch = true | ||
|
||
[tool.coverage.report] | ||
exclude_lines = [ | ||
"pragma: no cover", | ||
"def __repr__", | ||
"if __name__ == .__main__.:", | ||
"raise NotImplementedError", | ||
"if TYPE_CHECKING:", | ||
] | ||
show_missing = true | ||
|
||
[tool.mypy] | ||
python_version = "3.8" | ||
strict = true | ||
mypy_path = "src" | ||
files = ["src"] | ||
namespace_packages = true | ||
explicit_package_bases = true | ||
|
||
[tool.pylama] | ||
ignore = "E501,E231" | ||
skip = "*/.tox/*,*/.env/*,build/*" | ||
linters = "pycodestyle,pyflakes,mccabe" | ||
max_line_length = 120 | ||
paths = ["src/redis_dict"] | ||
|
||
[project.urls] | ||
Homepage = "https://github.com/Attumm/redisdict" | ||
Documentation = "https://github.com/Attumm/redisdict#readme" | ||
Repository = "https://github.com/Attumm/redisdict.git" | ||
Changelog = "https://github.com/Attumm/redisdict/releases" |
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,28 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
rm -rf dev_venv | ||
python3 -m venv .venv_dev | ||
source .venv_dev/bin/activate | ||
|
||
pip install --upgrade pip | ||
pip install -e ".[dev]" | ||
|
||
pip freeze > dev-requirements.txt | ||
|
||
# Type Check | ||
python -m mypy | ||
|
||
# Doctype Check | ||
darglint src/redis_dict/ | ||
|
||
# Multiple linters | ||
python -m pylama -i E501,E231 src | ||
|
||
# Unit tests | ||
python -m unittest discover -s tests | ||
|
||
# Docstring Check | ||
# pydocstyle src/redis_dict/ | ||
|
||
deactivate |
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,21 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
rm -rf docs/Makefile docs/build/* docs/source/* | ||
|
||
#python3 -m venv .venv_docs | ||
|
||
source .venv_docs/bin/activate | ||
pip install --upgrade pip | ||
pip install -e ".[docs]" | ||
|
||
pip freeze | ||
|
||
python3 scripts/generate_sphinx_config.py | ||
|
||
sphinx-apidoc -o docs/source src/redis_dict | ||
|
||
cd docs | ||
make html | ||
|
||
echo "Documentation built successfully in docs/build/html/" |
Oops, something went wrong.