aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2022-05-21Pin mypy to the latest working versionYury Selivanov
This is a workaround
2022-03-25immutables v0.17v0.17Elvis Pranskevichus
Fixes ===== * Add missing name in table [project] in 'pyproject.toml'. (#78) (by @mvaled in 80b537f7 for #78)
2022-03-25Test on Python 3.10 final (#80)Elvis Pranskevichus
2022-03-25Update pythoncapi_compat.h (#79)Elvis Pranskevichus
2022-03-25Add missing name in table [project] in 'pyproject.toml'. (#78)Manuel Vázquez Acosta
Fixes issue #77.
2021-08-07Consolidate mypy and pytest config into pyproject.tomlElvis Pranskevichus
2021-08-07Bump version to 0.17.dev0Elvis Pranskevichus
2021-08-07immutables v0.16v0.16Elvis Pranskevichus
Updates ======= * Refactor typings (by @bryanforbes in 39f9f0de and @msullivan in 4a175499) * Update Python 3.10 support, drop Python 3.5 (by @elprans in fa355239 and 189b959d) Fixes ===== * Fix test_none_collisions on 32-bit systems (#69) (by @elprans in fa355239 for #69) Misc ==== * Clarify the license of the included pythoncapi_compat.h header (by @elprans in 67c5edfb for #64) * Use cibuildwheel to build wheels (#70) (by @elprans in f671cb4d for #70)
2021-08-07Use cibuildwheel to build wheels (#70)Elvis Pranskevichus
The cibuildwheel infra seems to be mature enough, so use it for the wheel-building step instead of the homegrown setup. This gives us 32-bit and ARM wheels for free. Fixes: #44 Fixes: #63
2021-08-06Drop Python 3.5 support declaration, add Python 3.10 (#71)Elvis Pranskevichus
2021-08-04Fix test_none_collisions on 32-bit systems (#69)Elvis Pranskevichus
There are two issues at play here: 1. Python version of `map_hash` unnecessarily performs hash truncation even if the hash is already 32-bit wide, which potentially converts it from signed int to unsigned long. 2. The `test_none_collisions` test generates a collision node with hash greater than 2^32. Both of these are problematic on 32-bit systems, where `sizeof(Py_hash_t)` is 4, and so anything that doesn't fit into `Py_hash_t` gets bit-mangled, breaking the `hash(x) != x` invariance that the test relies upon. Fixes: #53 Fixes: #50
2021-08-03tests: Test on Python 3.10Elvis Pranskevichus
2021-08-03Sync pythoncapi_compat.hElvis Pranskevichus
2021-08-03Add in mypy testsMichael J. Sullivan
2021-08-03Refactor typingsBryan Forbes
* Improve typing of `__init__()` * Update typing of `Map`-producing functions to produce the correct type * Update typing of other methods to more closely align with `Mapping` * Add protocol classes for unexposed data structures * Export protocol classes for ease of use in typed code * Update stub file to pass in mypy strict mode
2021-04-22Clarify the license of the included pythoncapi_compat.h headerElvis Pranskevichus
The `pythoncapi_compat.h` header is distributed under the MIT license, so include the full text of the license in the header and mention it in the top level LICENSE file. Fixes: #64
2021-02-09v0.15v0.15Fantix King
New Features * Add support for Python 3.10 and more tests (by @vstinner in 45105ecd for #46, @hukkinj1 in d7f3eebb, f0b4fd40) * Make __repr__ more similar to other mapping types (by @ofek in 8af15021 for #17) Misc * Minor docs and CI fixes (by @MisterKeefe in 76e491cf for #32, @fantix in 1282379d for #39)
2021-02-09Workaround Github Action issueFantix King
Refs actions/runner#781, add LD_LIBRARY_PATH manually here for now before an upstream fix is added.
2021-02-09Fix flake8 errors and add it to CI (#45)Taneli Hukkinen
* Fix flake8 errors and add it to CI * Use extras for test dependencies Co-authored-by: Fantix King <fantix.king@gmail.com>
2021-02-09Remove deprecated setup.py testFantix King
2021-02-09Make __repr__ more similar to other mapping types (#58)Ofek Lev
2021-02-09Test Python 3.9 (#51)Taneli Hukkinen
2021-02-09Make PEP references hyperlinks (#32)Tom Keefe
2020-12-06Add Python 3.10 support: use Py_SET_SIZE() (#52)Victor Stinner
2020-05-17v0.14v0.14Yury Selivanov
* Allow `None` to be used as key in pure-Python implementation. By @TIGirardi.
2020-05-17Unbreak CIYury Selivanov
2020-05-17Accept None as a key in pure python module (#42)TIGirardi
2020-05-13v0.13v0.13Yury Selivanov
Bugfixes * Various improvements w.r.t. type annotations & typing support (by @hukkinj1) * Fix pure-Python implementation to accept keyword argument "col" correctly (by @hukkinj1)
2020-05-13Import Literal type from typing_extensions if python version<3.8 (#33)Taneli Hukkinen
2020-05-13Improve type annotation of Map.__init__Taneli Hukkinen
2020-05-13Fix errors when a kwarg is named "col" (#35)Taneli Hukkinen
2020-05-13Make MapMutation.update consistently return an implicit NoneTaneli Hukkinen
2020-05-13Improve type annotations of Map.update and MapMutation.updateTaneli Hukkinen
2020-05-13Improve CI badge linkTaneli Hukkinen
2020-05-13Update README CI badgesTaneli Hukkinen
2020-05-13Fix return type annotation of Map.__reduce__Taneli Hukkinen
2020-05-13Add python version requirement metadataTaneli Hukkinen
2020-04-22Drop Travis and Appveyor CIElvis Pranskevichus
Switch to Github Actions exclusively
2020-04-22Update the test workflowElvis Pranskevichus
2020-04-22Add Github release workflowv0.12Elvis Pranskevichus
2020-04-22Define NDEBUG activelyElvis Pranskevichus
`NDEBUG` is not defined by the standard library or the compiler by default, so make sure it's defined when building non-debug builds.
2020-04-22A bunch of fixesYury Selivanov
* Fix #26: `ifdef NDEBUG` should be `ifndef NDEBUG` * More tests for #24 * Add a `DEBUG_IMMUTABLES` env var to build debug builds
2020-04-22Fix the mutation API to maintain elements count correctly (#25, #24)TIGirardi
2019-11-04Bump the version to 0.12Yury Selivanov
2019-11-04Fix manylinux for 3.8Yury Selivanov
2019-11-02Add Python 3.8 support (#16)Bruno Oliveira
Fix #15
2019-10-11Bump the version to 0.11v0.11Yury Selivanov
2019-10-11Include py.typed/*.pyi in MANIFEST.inYury Selivanov
2019-10-11fix: add package_data to setup.py (#14)Anton Agestam
2019-10-07Bump the version to 0.10v0.10Yury Selivanov