Skip to content

Commit 1d7810f

Browse files
authored
Merge pull request #4 from pyexcel/dev
release 0.6.0
2 parents c6e6b97 + f352fa1 commit 1d7810f

18 files changed

+213
-188
lines changed

.isort.cfg

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
[settings]
2+
line_length=79
3+
known_first_party=camelot, pyexcel_io
4+
known_third_party=mock,nose,pyexcel
5+
indent=' '
6+
multi_line_output=3
7+
length_sort=1
8+
default_section=FIRSTPARTY
9+
no_lines_before=LOCALFOLDER
10+
sections=FUTURE,STDLIB,FIRSTPARTY,THIRDPARTY,LOCALFOLDER

.moban.d/custom_readme.rst.jj2

+7-1
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,11 @@
44
{%endblock%}
55

66
{%block features %}
7-
**{{name}}** does {{description}}. Please note it works on python 2.7 only.
7+
**{{name}}** does Read tables in pdf files using `camelot <https://github.com/atlanhq/camelot>`_
8+
for pyexcel community. Please note it works on python 3.6+ only.
9+
10+
It reads only phyical files and does not read io streams, not a URL.
811
{%endblock%}
12+
13+
{%block documentation_link%}
14+
{%endblock%}

.moban.d/custom_travis.yml.jj2

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{% extends "travis.yml.jj2" %}
2+
{%block custom_python_versions%}
3+
python:
4+
- 3.8
5+
- 3.7
6+
- 3.6
7+
{%endblock%}
8+

.travis.yml

+35-11
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,55 @@
1-
sudo: false
1+
sudo: true
22
dist: xenial
33
language: python
44
notifications:
55
email: false
6+
addons:
7+
apt:
8+
update: true
69
python:
7-
- &pypy2 pypy2.7-6.0
8-
- 2.7
10+
- 3.8
11+
- 3.7
12+
- 3.6
913

1014
stages:
11-
- test
1215
- lint
16+
- moban
17+
- test
18+
19+
20+
.lint: &lint
21+
git:
22+
submodules: false
23+
python: 3.6
24+
env:
25+
- MINREQ=0
26+
stage: lint
27+
script: make lint
28+
29+
.moban: &moban
30+
python: 3.6
31+
env:
32+
- MINREQ=0
33+
stage: moban
34+
install: pip install moban gitfs2 pypifs moban-jinja2-github moban-ansible
35+
script:
36+
- moban
37+
- git diff --exit-code
38+
1339
jobs:
1440
include:
15-
- stage: lint
16-
python: 3.6
17-
script: make lint
41+
- *moban
42+
- *lint
1843

1944
stage: test
2045

21-
script: make test
22-
2346
before_install:
24-
- if [[ $TRAVIS_PYTHON_VERSION == "2.6" ]]; then pip install flake8==2.6.2; fi
47+
- sudo apt install python-tk python3-tk ghostscript
2548
- if [[ -f min_requirements.txt && "$MINREQ" -eq 1 ]]; then
2649
mv min_requirements.txt requirements.txt ;
2750
fi
28-
- test ! -f rnd_requirements.txt || pip install --no-deps -r rnd_requirements.txt
51+
- test ! -f rnd_requirements.txt ||
52+
pip install --no-deps -r rnd_requirements.txt
2953
- test ! -f rnd_requirements.txt || pip install -r rnd_requirements.txt ;
3054
- pip install -r tests/requirements.txt
3155
script:

CHANGELOG.rst

+7
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
Change log
22
================================================================================
33

4+
0.6.0 - 11.10.2020
5+
--------------------------------------------------------------------------------
6+
7+
**updated**
8+
9+
#. read tabular data out from pdf format in python 3.6+ with camelot-py
10+
411
0.5.0-rc1 - 14.03.2019
512
--------------------------------------------------------------------------------
613

LICENSE

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2015-2019 by Onni Software Ltd. and its contributors
1+
Copyright (c) 2015-2020 by Onni Software Ltd. and its contributors
22
All rights reserved.
33

44
Redistribution and use in source and binary forms of the software as well
@@ -13,7 +13,7 @@ that the following conditions are met:
1313
and/or other materials provided with the distribution.
1414

1515
* Neither the name of 'pyexcel-pdfr' nor the names of the contributors
16-
may be used to endorse or promote products derived from this software
16+
may not be used to endorse or promote products derived from this software
1717
without specific prior written permission.
1818

1919
THIS SOFTWARE AND DOCUMENTATION IS PROVIDED BY THE COPYRIGHT HOLDERS AND

README.rst

+9-3
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,11 @@ pyexcel-pdfr - Let you focus on data, instead of file formats
2525
.. image:: https://img.shields.io/gitter/room/gitterHQ/gitter.svg
2626
:target: https://gitter.im/pyexcel/Lobby
2727

28-
.. image:: https://readthedocs.org/projects/pyexcel-pdfr/badge/?version=latest
29-
:target: http://pyexcel-pdfr.readthedocs.org/en/latest/
28+
.. image:: https://img.shields.io/static/v1?label=continuous%20templating&message=%E6%A8%A1%E7%89%88%E6%9B%B4%E6%96%B0&color=blue&style=flat-square
29+
:target: https://moban.readthedocs.io/en/latest/#at-scale-continous-templating-for-open-source-projects
30+
31+
.. image:: https://img.shields.io/static/v1?label=coding%20style&message=black&color=black&style=flat-square
32+
:target: https://github.com/psf/black
3033

3134
Support the project
3235
================================================================================
@@ -49,7 +52,10 @@ a little bit more time in coding, documentation and writing interesting posts.
4952

5053
Introduction
5154
================================================================================
52-
**pyexcel-pdfr** does Read tables in pdf files as tabular data. Please note it works on python 2.7 only.
55+
**pyexcel-pdfr** does Read tables in pdf files using `camelot <https://github.com/atlanhq/camelot>`_
56+
for pyexcel community. Please note it works on python 3.6+ only.
57+
58+
It reads only phyical files and does not read io streams, not a URL.
5359

5460

5561

changelog.yml

+6
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
name: pyexcel-pdfr
22
organisation: pyexcel
33
releases:
4+
- changes:
5+
- action: updated
6+
details:
7+
- read tabular data out from pdf format in python 3.6+ with camelot-py
8+
date: 11.10.2020
9+
version: 0.6.0
410
- changes:
511
- action: first release
612
details:

docs/source/conf.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# -*- coding: utf-8 -*-
22
DESCRIPTION = (
3-
'Read tables in pdf files as tabular data' +
3+
'Read tables in pdf files using camelot for pyexcel community' +
44
''
55
)
66
# Configuration file for the Sphinx documentation builder.
@@ -22,12 +22,12 @@
2222
# -- Project information -----------------------------------------------------
2323

2424
project = 'pyexcel-pdfr'
25-
copyright = '2015-2019 Onni Software Ltd.'
25+
copyright = '2015-2020 Onni Software Ltd.'
2626
author = 'chfw'
2727
# The short X.Y version
28-
version = '0.5.0-rc1'
28+
version = '0.6.0'
2929
# The full version, including alpha/beta/rc tags
30-
release = '0.5.0-rc1'
30+
release = '0.6.0'
3131

3232
# -- General configuration ---------------------------------------------------
3333

pyexcel-pdfr.yml

+6-7
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
overrides: "pyexcel.yaml"
22
name: "pyexcel-pdfr"
33
nick_name: "pdf"
4-
version: "0.5.0-rc1"
5-
current_version: "0.5.0-rc1"
6-
release: "0.5.0-rc1"
4+
version: "0.6.0"
5+
current_version: "0.6.0"
6+
release: "0.6.0"
77
file_type: "pdf"
88
dependencies:
9-
- pdftables
10-
- pyexcel-io==0.5.20
9+
- camelot-py[cv]
10+
- pyexcel-io>=0.6.0
1111
test_dependencies:
1212
- pyexcel
13-
- pyexcel-io==0.5.20
14-
description: "Read tables in pdf files as tabular data"
13+
description: "Read tables in pdf files using camelot for pyexcel community"

pyexcel_pdfr/__init__.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,14 @@
88
# flake8: noqa
99
from pyexcel_io.io import get_data as read_data
1010
from pyexcel_io.io import isstream
11-
from pyexcel_io.plugins import IOPluginInfoChain
11+
from pyexcel_io.plugins import IOPluginInfoChainV2
1212

1313
from ._version import __author__, __version__
1414

1515
__FILE_TYPE__ = "pdf"
16-
IOPluginInfoChain(__name__).add_a_reader(
16+
IOPluginInfoChainV2(__name__).add_a_reader(
1717
relative_plugin_class_path="pdfr.PdfFile",
18+
locations=["file"],
1819
file_types=[__FILE_TYPE__],
1920
stream_type="binary",
2021
)

pyexcel_pdfr/_version.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
__version__ = '0.5.0-rc1'
1+
__version__ = '0.6.0'
22
__author__ = 'chfw'

0 commit comments

Comments
 (0)