Skip to content

Commit

Permalink
Add deprecation notice to all documents and setup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Sekenre committed Aug 24, 2020
1 parent 9d4a6c8 commit d4976a4
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
About
=====

.. warning:: This project will be ending it's support of Python 3.5 and lower with release 6.0.0.

This library provides encoding and decoding for the Concise Binary Object Representation (CBOR)
(`RFC 7049`_) serialization format. `Read the docs <https://cbor2.readthedocs.io/>`_ to learn more.

Expand Down Expand Up @@ -48,7 +50,7 @@ Installation
Requirements
------------

* cPython==2.7 or cPython>=3.5 or `PyPy`_ (Python 2.7 support will be removed soon)
* cPython==2.7 or cPython>=3.5 or `PyPy`_ (Python 2.7 and 3.5 support will be removed with release 6.0.0)
* C-extension: Any C compiler that can build Python extensions.
Any modern libc with the exception of Glibc<2.9

Expand Down
7 changes: 7 additions & 0 deletions docs/versionhistory.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@ Version history

This library adheres to `Semantic Versioning <http://semver.org/>`_.

**5.2.0-rc1** (Unreleased)

- README: Announce deprecation of Python 2.7, 3.5
- README: More detail and examples
- Bugfix: Fix segfault on loading huge arrays with C-backend (Sekenre)
- Build system: Allow packagers to force C-backend building or disable using env var (jameshilliard)
- Feature: :module:`cbor2.tool` Command line diagnostic tool

**5.1.2** (2020-07-21)

Expand Down
4 changes: 4 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
import sys
import os
import platform
import warnings
from pkg_resources import parse_version
from setuptools import setup, Extension

min_glibc = parse_version('2.9')

if sys.version_info < (3, 6):
warnings.warn("Support for Python<3.6 will be dropped with cbor2 version 6.0.0")


def check_libc():
"check that if we have glibc < 2.9 we should not build c ext"
Expand Down

0 comments on commit d4976a4

Please sign in to comment.