Skip to content

Commit ff11e92

Browse files
committed
release 1.16.0rc1
* change most Heptapod links/refs to GH equivalents * remove Mercurial support files * remove (some) obsolete docs
1 parent 0dc7805 commit ff11e92

File tree

16 files changed

+42
-124
lines changed

16 files changed

+42
-124
lines changed

.hgignore

Lines changed: 0 additions & 13 deletions
This file was deleted.

.hgtags

Lines changed: 0 additions & 37 deletions
This file was deleted.

README.md

Lines changed: 6 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,13 @@ in the doc/ subdirectory.
88
Download
99
--------
1010

11-
[Download page](https://foss.heptapod.net/pypy/cffi/-/tags)
11+
[Download page](https://github.com/python-cffi/cffi/releases)
1212

1313
Source Code
1414
-----------
1515

16-
CFFI is developed using [Mercurial SCM](mercurial-scm.org/).
17-
The source code is publicly available on
18-
[heaptapod](https://foss.heptapod.net/pypy/cffi).
19-
20-
You can read more about how to contribute to the project on
21-
[PyPy's documentation](https://doc.pypy.org/en/latest/contributing.html).
16+
Source code is publicly available on
17+
[GitHub](https://github.com/python-cffi/cffi).
2218

2319
Contact
2420
-------
@@ -28,13 +24,8 @@ Contact
2824
Testing/development tips
2925
------------------------
3026

31-
To run tests under CPython, run::
27+
To run tests under CPython, run the following in the source root directory::
3228

33-
pip install pytest # if you don't have pytest already
34-
pip install pycparser
35-
python setup.py build_ext -f -i
29+
pip install pytest
30+
pip install -e . # editable install of CFFI for local development
3631
pytest c/ testing/
37-
38-
If you run in another directory (either the tests or another program),
39-
you should use the environment variable ``PYTHONPATH=/path`` to point
40-
to the location that contains the ``_cffi_backend.so`` just compiled.

c/_cffi_backend.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#include <Python.h>
33
#include "structmember.h"
44

5-
#define CFFI_VERSION "1.15.1"
5+
#define CFFI_VERSION "1.16.0rc1"
66

77
#ifdef MS_WIN32
88
#include <windows.h>

c/test_c.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def _testfunc(num):
2626
# ____________________________________________________________
2727

2828
import sys
29-
assert __version__ == "1.15.1", ("This test_c.py file is for testing a version"
29+
assert __version__ == "1.16.0rc1", ("This test_c.py file is for testing a version"
3030
" of cffi that differs from the one that we"
3131
" get from 'import _cffi_backend'")
3232
if sys.version_info < (3,):

cffi/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
from .error import CDefError, FFIError, VerificationError, VerificationMissing
66
from .error import PkgConfigError
77

8-
__version__ = "1.15.1"
9-
__version_info__ = (1, 15, 1)
8+
__version__ = "1.16.0rc1"
9+
__version_info__ = (1, 16, 0, 'rc1')
1010

1111
# The verifier module file names are based on the CRC32 of a string that
1212
# contains the following version number. It may be older than __version__

cffi/_embedding.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ static int _cffi_initialize_python(void)
225225

226226
if (f != NULL && f != Py_None) {
227227
PyFile_WriteString("\nFrom: " _CFFI_MODULE_NAME
228-
"\ncompiled with cffi version: 1.15.1"
228+
"\ncompiled with cffi version: 1.16.0rc1"
229229
"\n_cffi_backend module: ", f);
230230
modules = PyImport_GetModuleDict();
231231
mod = PyDict_GetItemString(modules, "_cffi_backend");

doc/source/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,9 @@
4545
# built documents.
4646
#
4747
# The short X.Y version.
48-
version = '1.15'
48+
version = '1.16'
4949
# The full version, including alpha/beta/rc tags.
50-
release = '1.15.1'
50+
release = '1.16.0rc1'
5151

5252
# The language for content autogenerated by Sphinx. Refer to documentation
5353
# for a list of supported languages.

doc/source/goals.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,5 +65,5 @@ everything you need to access C code and nothing more.
6565

6666
--- the authors, Armin Rigo and Maciej Fijalkowski
6767

68-
.. _`issue tracker`: https://foss.heptapod.net/pypy/cffi/issues
68+
.. _`issue tracker`: https://github.com/python-cffi/cffi/issues
6969
.. _`mailing list`: https://groups.google.com/forum/#!forum/python-cffi

doc/source/installation.rst

Lines changed: 9 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,7 @@ platform as well as on Windows 32 and 64. (It relies occasionally on
1717
libffi, so it depends on libffi being bug-free; this may not be fully
1818
the case on some of the more exotic platforms.)
1919

20-
CFFI supports CPython 2.7, 3.x (tested with 3.6 to 3.9); and is
21-
distributed with PyPy (CFFI 1.0 is distributed with and requires
22-
PyPy 2.6).
20+
CFFI is tested with CPython 3.8-3.12.
2321

2422
The core speed of CFFI is better than ctypes, with import times being
2523
either lower if you use the post-1.0 features, or much higher if you
@@ -31,7 +29,7 @@ libraries on PyPy.
3129

3230
Requirements:
3331

34-
* CPython 2.7 or 3.x, or PyPy (PyPy 2.0 for the earliest
32+
* CPython 3.8+, or PyPy (PyPy 2.0 for the earliest
3533
versions of CFFI; or PyPy 2.6 for CFFI 1.0).
3634

3735
* in some cases you need to be able to compile C extension modules.
@@ -52,26 +50,14 @@ Download and Installation:
5250

5351
* https://pypi.python.org/pypi/cffi
5452

55-
* Checksums of the "source" package version 1.15.1:
56-
57-
- MD5: f493860a6e98cd0c4178149568a6b4f6
58-
59-
- SHA1: c42a46cd11f6153f299cf10e9c236e8b2a143c21
60-
61-
- SHA256: d400bfb9a37b1351253cb402671cea7e89bdecc294e8016a707f6d1d8ac934f9
62-
63-
* Or grab the most current version from the `Heptapod page`_:
64-
``hg clone https://foss.heptapod.net/pypy/cffi``
65-
66-
* ``python setup.py install`` or ``python setup_base.py install``
67-
(should work out of the box on Linux or Windows; see below for
68-
`MacOS X`_.)
53+
* Or grab the most current version from `GitHub`_:
54+
``git clone https://github.com/python-cffi/cffi``
6955

7056
* running the tests: ``pytest c/ testing/`` (if you didn't
7157
install cffi yet, you need first ``python setup_base.py build_ext -f
7258
-i``)
7359

74-
.. _`Heptapod page`: https://foss.heptapod.net/pypy/cffi
60+
.. _`GitHub project home`: https://github.com/python-cffi/cffi
7561

7662
Demos:
7763

@@ -82,9 +68,9 @@ Demos:
8268
ultimate reference is given by the tests, notably
8369
`testing/cffi1/test_verify1.py`_ and `testing/cffi0/backend_tests.py`_.
8470

85-
.. _`demo`: https://foss.heptapod.net/pypy/cffi/-/tree/branch/default/demo
86-
.. _`testing/cffi1/test_verify1.py`: https://foss.heptapod.net/pypy/cffi/-/blob/branch/default/testing/cffi1/test_verify1.py
87-
.. _`testing/cffi0/backend_tests.py`: https://foss.heptapod.net/pypy/cffi/-/blob/branch/default/testing/cffi0/backend_tests.py
71+
.. _`demo`: https://github.com/python-cffi/cffi/blob/main/demo
72+
.. _`testing/cffi1/test_verify1.py`: https://github.com/python-cffi/cffi/blob/main/testing/cffi1/test_verify1.py
73+
.. _`testing/cffi0/backend_tests.py`: https://github.com/python-cffi/cffi/blob/main/testing/cffi0/backend_tests.py
8874

8975

9076
Platform-specific instructions
@@ -148,28 +134,9 @@ problem applies whenever you want to run compile() to build a dll with
148134
this specific compiler suite download.
149135
``import setuptools`` might help, but YMMV
150136

151-
For Python 3.4 and beyond:
152-
https://www.visualstudio.com/en-us/downloads/visual-studio-2015-ctp-vs
153-
154-
155-
Linux and OS/X: UCS2 versus UCS4
156-
++++++++++++++++++++++++++++++++
157-
158-
This is about getting an ImportError about ``_cffi_backend.so`` with a
159-
message like ``Symbol not found: _PyUnicodeUCS2_AsASCIIString``. This
160-
error occurs in Python 2 as soon as you mix "ucs2" and "ucs4" builds of
161-
Python. It means that you are now running a Python compiled with
162-
"ucs4", but the extension module ``_cffi_backend.so`` was compiled by a
163-
different Python: one that was running "ucs2". (If the opposite problem
164-
occurs, you get an error about ``_PyUnicodeUCS4_AsASCIIString``
165-
instead.)
166-
167-
If you are using ``pyenv``, then see
168-
https://github.com/yyuu/pyenv/issues/257.
169-
170137
More generally, the solution that should always work is to download the
171138
sources of CFFI (instead of a prebuilt binary) and make sure that you
172-
build it with the same version of Python than the one that will use it.
139+
build it with the same version of Python that will use it.
173140
For example, with virtualenv:
174141

175142
* ``virtualenv ~/venv``

0 commit comments

Comments
 (0)