Skip to content

Commit

Permalink
Merge pull request #4 from pyexcel/dev
Browse files Browse the repository at this point in the history
release 0.6.0
  • Loading branch information
chfw authored Oct 11, 2020
2 parents c6e6b97 + f352fa1 commit 1d7810f
Show file tree
Hide file tree
Showing 18 changed files with 213 additions and 188 deletions.
10 changes: 10 additions & 0 deletions .isort.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[settings]
line_length=79
known_first_party=camelot, pyexcel_io
known_third_party=mock,nose,pyexcel
indent=' '
multi_line_output=3
length_sort=1
default_section=FIRSTPARTY
no_lines_before=LOCALFOLDER
sections=FUTURE,STDLIB,FIRSTPARTY,THIRDPARTY,LOCALFOLDER
8 changes: 7 additions & 1 deletion .moban.d/custom_readme.rst.jj2
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,11 @@
{%endblock%}

{%block features %}
**{{name}}** does {{description}}. Please note it works on python 2.7 only.
**{{name}}** does Read tables in pdf files using `camelot <https://github.com/atlanhq/camelot>`_
for pyexcel community. Please note it works on python 3.6+ only.

It reads only phyical files and does not read io streams, not a URL.
{%endblock%}

{%block documentation_link%}
{%endblock%}
8 changes: 8 additions & 0 deletions .moban.d/custom_travis.yml.jj2
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{% extends "travis.yml.jj2" %}
{%block custom_python_versions%}
python:
- 3.8
- 3.7
- 3.6
{%endblock%}

46 changes: 35 additions & 11 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,31 +1,55 @@
sudo: false
sudo: true
dist: xenial
language: python
notifications:
email: false
addons:
apt:
update: true
python:
- &pypy2 pypy2.7-6.0
- 2.7
- 3.8
- 3.7
- 3.6

stages:
- test
- lint
- moban
- test


.lint: &lint
git:
submodules: false
python: 3.6
env:
- MINREQ=0
stage: lint
script: make lint

.moban: &moban
python: 3.6
env:
- MINREQ=0
stage: moban
install: pip install moban gitfs2 pypifs moban-jinja2-github moban-ansible
script:
- moban
- git diff --exit-code

jobs:
include:
- stage: lint
python: 3.6
script: make lint
- *moban
- *lint

stage: test

script: make test

before_install:
- if [[ $TRAVIS_PYTHON_VERSION == "2.6" ]]; then pip install flake8==2.6.2; fi
- sudo apt install python-tk python3-tk ghostscript
- if [[ -f min_requirements.txt && "$MINREQ" -eq 1 ]]; then
mv min_requirements.txt requirements.txt ;
fi
- test ! -f rnd_requirements.txt || pip install --no-deps -r rnd_requirements.txt
- test ! -f rnd_requirements.txt ||
pip install --no-deps -r rnd_requirements.txt
- test ! -f rnd_requirements.txt || pip install -r rnd_requirements.txt ;
- pip install -r tests/requirements.txt
script:
Expand Down
7 changes: 7 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
Change log
================================================================================

0.6.0 - 11.10.2020
--------------------------------------------------------------------------------

**updated**

#. read tabular data out from pdf format in python 3.6+ with camelot-py

0.5.0-rc1 - 14.03.2019
--------------------------------------------------------------------------------

Expand Down
4 changes: 2 additions & 2 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (c) 2015-2019 by Onni Software Ltd. and its contributors
Copyright (c) 2015-2020 by Onni Software Ltd. and its contributors
All rights reserved.

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

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

THIS SOFTWARE AND DOCUMENTATION IS PROVIDED BY THE COPYRIGHT HOLDERS AND
Expand Down
12 changes: 9 additions & 3 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,11 @@ pyexcel-pdfr - Let you focus on data, instead of file formats
.. image:: https://img.shields.io/gitter/room/gitterHQ/gitter.svg
:target: https://gitter.im/pyexcel/Lobby

.. image:: https://readthedocs.org/projects/pyexcel-pdfr/badge/?version=latest
:target: http://pyexcel-pdfr.readthedocs.org/en/latest/
.. 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
:target: https://moban.readthedocs.io/en/latest/#at-scale-continous-templating-for-open-source-projects

.. image:: https://img.shields.io/static/v1?label=coding%20style&message=black&color=black&style=flat-square
:target: https://github.com/psf/black

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

Introduction
================================================================================
**pyexcel-pdfr** does Read tables in pdf files as tabular data. Please note it works on python 2.7 only.
**pyexcel-pdfr** does Read tables in pdf files using `camelot <https://github.com/atlanhq/camelot>`_
for pyexcel community. Please note it works on python 3.6+ only.

It reads only phyical files and does not read io streams, not a URL.



Expand Down
6 changes: 6 additions & 0 deletions changelog.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
name: pyexcel-pdfr
organisation: pyexcel
releases:
- changes:
- action: updated
details:
- read tabular data out from pdf format in python 3.6+ with camelot-py
date: 11.10.2020
version: 0.6.0
- changes:
- action: first release
details:
Expand Down
8 changes: 4 additions & 4 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
DESCRIPTION = (
'Read tables in pdf files as tabular data' +
'Read tables in pdf files using camelot for pyexcel community' +
''
)
# Configuration file for the Sphinx documentation builder.
Expand All @@ -22,12 +22,12 @@
# -- Project information -----------------------------------------------------

project = 'pyexcel-pdfr'
copyright = '2015-2019 Onni Software Ltd.'
copyright = '2015-2020 Onni Software Ltd.'
author = 'chfw'
# The short X.Y version
version = '0.5.0-rc1'
version = '0.6.0'
# The full version, including alpha/beta/rc tags
release = '0.5.0-rc1'
release = '0.6.0'

# -- General configuration ---------------------------------------------------

Expand Down
13 changes: 6 additions & 7 deletions pyexcel-pdfr.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
overrides: "pyexcel.yaml"
name: "pyexcel-pdfr"
nick_name: "pdf"
version: "0.5.0-rc1"
current_version: "0.5.0-rc1"
release: "0.5.0-rc1"
version: "0.6.0"
current_version: "0.6.0"
release: "0.6.0"
file_type: "pdf"
dependencies:
- pdftables
- pyexcel-io==0.5.20
- camelot-py[cv]
- pyexcel-io>=0.6.0
test_dependencies:
- pyexcel
- pyexcel-io==0.5.20
description: "Read tables in pdf files as tabular data"
description: "Read tables in pdf files using camelot for pyexcel community"
5 changes: 3 additions & 2 deletions pyexcel_pdfr/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,14 @@
# flake8: noqa
from pyexcel_io.io import get_data as read_data
from pyexcel_io.io import isstream
from pyexcel_io.plugins import IOPluginInfoChain
from pyexcel_io.plugins import IOPluginInfoChainV2

from ._version import __author__, __version__

__FILE_TYPE__ = "pdf"
IOPluginInfoChain(__name__).add_a_reader(
IOPluginInfoChainV2(__name__).add_a_reader(
relative_plugin_class_path="pdfr.PdfFile",
locations=["file"],
file_types=[__FILE_TYPE__],
stream_type="binary",
)
Expand Down
2 changes: 1 addition & 1 deletion pyexcel_pdfr/_version.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
__version__ = '0.5.0-rc1'
__version__ = '0.6.0'
__author__ = 'chfw'
Loading

0 comments on commit 1d7810f

Please sign in to comment.