Skip to content

Commit

Permalink
Merge 735e809 into 84c7b7f
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk committed Aug 28, 2021
2 parents 84c7b7f + 735e809 commit 0e2e222
Show file tree
Hide file tree
Showing 172 changed files with 818 additions and 1,743 deletions.
1 change: 0 additions & 1 deletion .coveragerc
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
[report]
exclude_lines =
pragma: no cover
pragma: ${PY_MAJOR_VERSION} no cover
2 changes: 1 addition & 1 deletion .github/workflows/test-changes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
fail-fast: false
matrix:
os: [ "ubuntu-latest", "windows-latest", "macos-latest" ]
python: [2.7, 3.6, 3.7, 3.8, 3.9]
python: [3.6, 3.7, 3.8, 3.9]

runs-on: "${{ matrix.os }}"

Expand Down
1 change: 0 additions & 1 deletion .settings/org.eclipse.core.resources.prefs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#Fri Jun 22 10:55:09 BST 2012
eclipse.preferences.version=1
encoding//docs/conf.py=utf-8
encoding//src/petl/compat.py=utf-8
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ jobs:
- python: 3.7
- python: 3.8
- python: 3.9
- python: 2.7
# - python: pypy3
before_install:
- sudo apt-get -qq update
Expand Down
4 changes: 0 additions & 4 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,6 @@ environment:

matrix:

- PYTHON: "C:\\Python27-x64"
PYTHON_VERSION: "2.7"
DISTUTILS_USE_SDK: "1"

- PYTHON: "C:\\Python36-x64"
PYTHON_VERSION: "3.6"

Expand Down
6 changes: 6 additions & 0 deletions docs/changes.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
Changes
=======

Unreleaesed
-------------

* Drop support for EOL Python 2.7.
By :user:`hugovk`, :issue:`478`.

Version 1.7.4
-------------

Expand Down
13 changes: 6 additions & 7 deletions docs/conf.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
#
# petl documentation build configuration file, created by
# sphinx-quickstart on Fri Aug 19 11:16:43 2011.
Expand Down Expand Up @@ -47,8 +46,8 @@
master_doc = 'index'

# General information about the project.
project = u'petl'
copyright = u'2014, Alistair Miles'
project = 'petl'
copyright = '2014, Alistair Miles'

# The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the
Expand Down Expand Up @@ -185,8 +184,8 @@
# Grouping the document tree into LaTeX files. List of tuples
# (source start file, target name, title, author, documentclass [howto/manual]).
latex_documents = [
('index', 'petl.tex', u'petl Documentation',
u'Alistair Miles', 'manual'),
('index', 'petl.tex', 'petl Documentation',
'Alistair Miles', 'manual'),
]

# The name of an image file (relative to this directory) to place at the top of
Expand Down Expand Up @@ -218,8 +217,8 @@
# One entry per manual page. List of tuples
# (source start file, name, description, authors, manual section).
man_pages = [
('index', 'petl', u'petl Documentation',
[u'Alistair Miles'], 1)
('index', 'petl', 'petl Documentation',
['Alistair Miles'], 1)
]


Expand Down
6 changes: 3 additions & 3 deletions docs/contributing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ suite with::
$ pip install nose
$ nosetests -v

Currently :mod:`petl` supports Python 2.7, 3.4, 3.5 and 3.6
Currently :mod:`petl` supports Python 3.6+
so the tests should pass under all these Python versions.

Dependencies
Expand Down Expand Up @@ -85,12 +85,12 @@ Automatically running all tests

All of the above tests can be run automatically using `tox
<https://tox.readthedocs.org/>`_. You will need binaries for Python
2.7 and 3.6 available on your system.
3.6 available on your system.

To run all tests **without** installing any of the optional
dependencies, do::

$ tox -e py27,py36,docs
$ tox -e py36,docs

To run the entire test suite, including installation of **all**
optional dependencies, do::
Expand Down
2 changes: 1 addition & 1 deletion docs/intro.rst
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ To verify the installation, the test suite can be run with `nose
$ pip install nose
$ nosetests -v petl

:mod:`petl` has been tested with Python versions 2.7 and 3.4-3.6
:mod:`petl` has been tested with Python versions 3.6+
under Linux and Windows operating systems.

.. _intro_dependencies:
Expand Down
3 changes: 0 additions & 3 deletions examples/comparison.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
from __future__ import absolute_import, print_function, division


import petl as etl
table = [['foo', 'bar'],
['a', 1],
Expand Down
2 changes: 0 additions & 2 deletions examples/intro.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import division, print_function, absolute_import

example_data = """foo,bar,baz
a,1,3.4
b,2,7.4
Expand Down
3 changes: 0 additions & 3 deletions examples/io/csv.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
from __future__ import division, print_function, absolute_import


# fromcsv()
###########

Expand Down
3 changes: 0 additions & 3 deletions examples/io/html.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
from __future__ import division, print_function, absolute_import


# tohtml()
##########

Expand Down
3 changes: 0 additions & 3 deletions examples/io/json.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
from __future__ import division, print_function, absolute_import


# fromjson()
############

Expand Down
3 changes: 0 additions & 3 deletions examples/io/numpy.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
from __future__ import division, print_function, absolute_import


# toarray()
###########

Expand Down
3 changes: 0 additions & 3 deletions examples/io/pandas.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
from __future__ import division, print_function, absolute_import


# todataframe()
###############

Expand Down
3 changes: 0 additions & 3 deletions examples/io/pickle.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
from __future__ import division, print_function, absolute_import


# frompickle()
##############

Expand Down
4 changes: 0 additions & 4 deletions examples/io/pytables.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
# -*- coding: utf-8 -*-
from __future__ import absolute_import, print_function, division


# fromhdf5()
############

Expand Down
1 change: 0 additions & 1 deletion examples/io/sqlite3.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import division, print_function, absolute_import
import os


Expand Down
3 changes: 0 additions & 3 deletions examples/io/text.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
from __future__ import division, print_function, absolute_import


# fromtext()
############

Expand Down
22 changes: 9 additions & 13 deletions examples/io/whoosh.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
# -*- coding: utf-8 -*-
from __future__ import absolute_import, print_function, division


# fromtextindex()
#################

Expand All @@ -17,10 +13,10 @@

index = create_in(dirname, schema)
writer = index.writer()
writer.add_document(title=u"First document", path=u"/a",
content=u"This is the first document we've added!")
writer.add_document(title=u"Second document", path=u"/b",
content=u"The second one is even more interesting!")
writer.add_document(title="First document", path="/a",
content="This is the first document we've added!")
writer.add_document(title="Second document", path="/b",
content="The second one is even more interesting!")
writer.commit()
# extract documents as a table
table = etl.fromtextindex(dirname)
Expand Down Expand Up @@ -68,11 +64,11 @@

index = create_in('example.whoosh', schema)
writer = index.writer()
writer.add_document(title=u"Oranges", path=u"/a",
content=u"This is the first document we've added!")
writer.add_document(title=u"Apples", path=u"/b",
content=u"The second document is even more "
u"interesting!")
writer.add_document(title="Oranges", path="/a",
content="This is the first document we've added!")
writer.add_document(title="Apples", path="/b",
content="The second document is even more "
"interesting!")
writer.commit()
# demonstrate the use of searchtextindex()
table1 = etl.searchtextindex('example.whoosh', 'oranges')
Expand Down
3 changes: 0 additions & 3 deletions examples/io/xml.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
from __future__ import division, print_function, absolute_import


import petl as etl
# setup a file to demonstrate with
d = '''<table>
Expand Down
5 changes: 1 addition & 4 deletions examples/transform/basics.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
from __future__ import division, print_function, absolute_import


# cut()
#######

Expand Down Expand Up @@ -54,7 +51,7 @@
table4 = [['foo', 'bar', 'baz'],
['A', 1, 2],
['B', '2', '3.4'],
[u'B', u'3', u'7.8', True],
['B', '3', '7.8', True],
['D', 'xyz', 9.0],
['E', None]]
table5 = etl.cat(table4)
Expand Down
3 changes: 0 additions & 3 deletions examples/transform/conversions.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
from __future__ import division, print_function, absolute_import


# convert()
###########

Expand Down
5 changes: 1 addition & 4 deletions examples/transform/dedup.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
from __future__ import division, print_function, absolute_import


# duplicates()
##############

Expand Down Expand Up @@ -28,7 +25,7 @@
['A', 1, 2],
['B', '2', '3.4'],
['D', 'xyz', 9.0],
['B', u'3', u'7.8'],
['B', '3', '7.8'],
['B', '2', 42],
['E', None, None],
['D', 4, 12.3],
Expand Down
3 changes: 0 additions & 3 deletions examples/transform/fills.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
from __future__ import division, print_function, absolute_import


# filldown()
############

Expand Down
3 changes: 0 additions & 3 deletions examples/transform/headers.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
from __future__ import division, print_function, absolute_import


# rename()
##########

Expand Down
3 changes: 0 additions & 3 deletions examples/transform/intervals.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
from __future__ import division, print_function, absolute_import


# intervallookup()
##################

Expand Down
3 changes: 0 additions & 3 deletions examples/transform/joins.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
from __future__ import absolute_import, print_function, division


# join()
########

Expand Down
3 changes: 0 additions & 3 deletions examples/transform/maps.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
from __future__ import absolute_import, print_function, division


# fieldmap()
############

Expand Down
3 changes: 0 additions & 3 deletions examples/transform/reductions.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
from __future__ import absolute_import, print_function, division


# rowreduce()
#############

Expand Down
3 changes: 0 additions & 3 deletions examples/transform/regex.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
from __future__ import absolute_import, print_function, division


# capture()
############

Expand Down
3 changes: 0 additions & 3 deletions examples/transform/reshape.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
from __future__ import absolute_import, print_function, division


# melt()
########

Expand Down
3 changes: 0 additions & 3 deletions examples/transform/selects.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
from __future__ import absolute_import, print_function, division


# select()
##########

Expand Down
3 changes: 0 additions & 3 deletions examples/transform/setops.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
from __future__ import absolute_import, print_function, division


# complement()
##############

Expand Down
3 changes: 0 additions & 3 deletions examples/transform/sorts.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
from __future__ import absolute_import, print_function, division


# sort()
########

Expand Down
3 changes: 0 additions & 3 deletions examples/transform/unpacks.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
from __future__ import absolute_import, print_function, division


# unpack()
##########

Expand Down
4 changes: 0 additions & 4 deletions examples/transform/validation.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
# -*- coding: utf-8 -*-
from __future__ import absolute_import, print_function, division


# validate()
############

Expand Down
4 changes: 0 additions & 4 deletions examples/util/base.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
from __future__ import division, print_function, absolute_import, \
unicode_literals


# values()
##########

Expand Down
Loading

0 comments on commit 0e2e222

Please sign in to comment.