Skip to content

Commit

Permalink
Drop support for PyPy 7.2
Browse files Browse the repository at this point in the history
  • Loading branch information
jdavid committed Oct 15, 2020
1 parent da8e114 commit 69d8fa3
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 10 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
- Add wheels for Python 3.9
`#1038 <https://github.com/libgit2/pygit2/issues/1038>`_

- Drop support for PyPy3 7.2

- Documentation
`#752 <https://github.com/libgit2/pygit2/issues/752>`_
`#1037 <https://github.com/libgit2/pygit2/issues/1037>`_
Expand Down
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion docs/install.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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``):

Expand Down
5 changes: 0 additions & 5 deletions src/utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 0 additions & 2 deletions test/test_blob.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]

Expand All @@ -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]

Expand Down

0 comments on commit 69d8fa3

Please sign in to comment.