Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drop official support for Python versions before 3.8 #200

Merged
merged 3 commits into from
Mar 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,17 @@ gives access to many of the documentation strings included in the code.
Installation and download
=========================

Supported Python versions
-------------------------

The :mod:`uncertainties` package supports Python versions 3.8 and higher.
Earlier versions of Python are not tested. :mod:`uncertainties` may still
be compatible with them. Patches to restore compatibility with earlier versions
of Python may be considered if they do not compromise performance or
maintainability for the supported versions of Python. Versions of the
:mod:`uncertainties` package up through 3.1.7 supported Python 2.7 through
Python 3.12.

Important note
--------------

Expand Down
26 changes: 3 additions & 23 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,22 +1,9 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-

# !! This program must run with all version of Python since 2.3 included.

import os
import sys

# setuptools has python_requires, but distutils doesn't, so we test the
# Python version manually:
min_version = (2, 7)
error_msg = ("Sorry, this package is for Python %d.%d and higher only." %
min_version)
try:
if sys.version_info < min_version:
sys.exit(error_msg)
except AttributeError: # sys.version_info was introduced in Python 2.0
sys.exit(error_msg)

# Common options for distutils/setuptools's setup():
setup_options = dict(
name='uncertainties',
Expand Down Expand Up @@ -280,19 +267,12 @@
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
# Python 3.1 failed because of a problem with NumPy 1.6.1 (whereas
# everything was fine with Python 3.2 and Python 2.7).
'Programming Language :: Python :: 3.1',
'Programming Language :: Python :: 3.2',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
'Programming Language :: Python :: Implementation :: Jython',
'Programming Language :: Python :: Implementation :: PyPy',
'Topic :: Education',
Expand Down
Loading