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 python 2.x support #8

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
4 changes: 2 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ The ``eseries`` package is available on the Python Package Index (PyPI):
.. image:: https://badge.fury.io/py/eseries.svg
:target: https://badge.fury.io/py/eseries

The package supports Python 3 and is compatible to Python 2.7. To install::
The package supports Python 3. To install::

$ pip install eseries

Expand Down Expand Up @@ -151,7 +151,7 @@ Testing
Testing is performed for all supported versions using ``tox``. You'll need to ensure that the required
Python versions are available in your environment. For example, if you're using ``pyenv``, do::

$ pyenv local 2.7 3.6 3.7 3.8 3.9 3.10 3.11 3.12
$ pyenv local 3.6 3.7 3.8 3.9 3.10 3.11 3.12

before running ``tox``::

Expand Down
9 changes: 0 additions & 9 deletions eseries/__init__.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,3 @@
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
try:
from future import standard_library
standard_library.install_aliases()
except ImportError:
pass
from .eseries import (ESeries, E3, E6, E12, E24, E48, E96, E192, series, series_keys, series_key_from_name, tolerance,
find_greater_than_or_equal, find_greater_than, find_less_than_or_equal, find_less_than,
find_nearest, find_nearest_few, erange, open_erange)
Expand Down
11 changes: 0 additions & 11 deletions eseries/cli.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,4 @@
"""The command-line for eseries"""
from __future__ import print_function
from __future__ import absolute_import
from __future__ import division
from __future__ import unicode_literals

from builtins import int
try:
from future import standard_library
standard_library.install_aliases()
except ImportError:
pass
import os
import sys

Expand Down
11 changes: 0 additions & 11 deletions eseries/eng.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,3 @@
from __future__ import division
from __future__ import absolute_import
from __future__ import print_function
from __future__ import unicode_literals
from builtins import str
from builtins import int
try:
from future import standard_library
standard_library.install_aliases()
except ImportError:
pass
from math import floor, log10

from eseries.eseries import _round_sig
Expand Down
15 changes: 0 additions & 15 deletions eseries/eseries.py
Original file line number Diff line number Diff line change
@@ -1,18 +1,3 @@
from __future__ import division
from __future__ import absolute_import
from __future__ import print_function
from __future__ import unicode_literals
from builtins import int
# from builtins import round
from builtins import range
from builtins import map
from builtins import zip
from builtins import str
try:
from future import standard_library
standard_library.install_aliases()
except ImportError:
pass
from bisect import bisect_right, bisect_left
from collections import OrderedDict
from enum import IntEnum
Expand Down
3 changes: 1 addition & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ def find_version(*file_paths):

# Specify the Python versions you support here. In particular, ensure
# that you indicate whether you support Python 2, Python 3 or both.
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
Expand All @@ -93,7 +92,7 @@ def find_version(*file_paths):
# project is installed. For an analysis of "install_requires" vs pip's
# requirements files see:
# https://packaging.python.org/en/latest/requirements.html
install_requires=['docopt_subcommands>=4.0', 'future'],
install_requires=['docopt_subcommands>=4.0'],

# List additional groups of dependencies here (e.g. development dependencies).
# You can install these using the following syntax, for example:
Expand Down
4 changes: 2 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = py{2.7,3.6,3.7,3.8,3.9,3.10,3.11,3.12}
envlist = py{3.6,3.7,3.8,3.9,3.10,3.11,3.12}

[testenv]
passenv = *
Expand All @@ -8,5 +8,5 @@ deps =
hypothesis
changedir = test
commands =
py{2.7,3.6,3.7,3.8,3.9,3.10,3.11,3.12}: pip install -e {toxinidir}
py{3.6,3.7,3.8,3.9,3.10,3.11,3.12}: pip install -e {toxinidir}
pytest