diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 8005e494c..c53c58e34 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -7,6 +7,8 @@ - Add wheels for Python 3.9 `#1038 `_ +- Drop support for PyPy3 7.2 + - Documentation `#752 `_ `#1037 `_ diff --git a/README.rst b/README.rst index b4a78606b..6a3ce9ac3 100644 --- a/README.rst +++ b/README.rst @@ -3,7 +3,7 @@ pygit2 - libgit2 bindings in Python ###################################################################### Bindings to the libgit2 shared library, implements Git plumbing. -Supports Python 3.6+ and PyPy3 7.2+ +Supports Python 3.6+ and PyPy3 7.3+ .. image:: https://travis-ci.org/libgit2/pygit2.svg?branch=master :target: http://travis-ci.org/libgit2/pygit2 diff --git a/docs/index.rst b/docs/index.rst index 5bcb25cbf..953dffd97 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -3,7 +3,7 @@ pygit2 - libgit2 bindings in Python ###################################################################### Bindings to the libgit2 shared library, implements Git plumbing. -Supports Python 3.6+ and PyPy3 7.2+ +Supports Python 3.6+ and PyPy3 7.3+ .. image:: https://travis-ci.org/libgit2/pygit2.svg?branch=master :target: http://travis-ci.org/libgit2/pygit2 diff --git a/docs/install.rst b/docs/install.rst index 209ba398c..12afd6346 100644 --- a/docs/install.rst +++ b/docs/install.rst @@ -41,7 +41,7 @@ Requirements Supported versions of Python: - Python 3.6+ -- PyPy3 7.2+ +- PyPy3 7.3+ Python requirements (these are specified in ``setup.py``): diff --git a/src/utils.c b/src/utils.c index c09a5500f..76d5ac5a7 100644 --- a/src/utils.c +++ b/src/utils.c @@ -75,16 +75,11 @@ pgit_borrow_encoding(PyObject *value, const char *encoding, PyObject **tvalue) PyObject *py_value = NULL; PyObject *py_str = NULL; -#if defined(PYPY_VERSION) && PYPY_VERSION_NUM < 0x07030000 - py_value = value; - Py_INCREF(value); -#else py_value = PyOS_FSPath(value); if (py_value == NULL) { Error_type_error("unexpected %.200s", value); return NULL; } -#endif // Get new PyBytes reference from value if (PyUnicode_Check(py_value)) { // Text string diff --git a/test/test_blob.py b/test/test_blob.py index 1d4daa58b..6d6fb5428 100644 --- a/test/test_blob.py +++ b/test/test_blob.py @@ -111,7 +111,6 @@ def set_content(): with pytest.raises(TypeError): set_content() def test_create_blob_fromworkdir(testrepo): - blob_oid = testrepo.create_blob_fromworkdir("bye.txt") blob = testrepo[blob_oid] @@ -127,7 +126,6 @@ def test_create_blob_fromworkdir(testrepo): @utils.fspath def test_create_blob_fromworkdir_aspath(testrepo): - blob_oid = testrepo.create_blob_fromworkdir(Path("bye.txt")) blob = testrepo[blob_oid]