remove duplicated information scattered acros pyexcel components

This commit is contained in:
chfw 2016-01-26 22:48:20 +00:00
parent 71e15a5011
commit 5d810ad39a
16 changed files with 143 additions and 144 deletions

16
.moban.d/README.rst Normal file
View File

@ -0,0 +1,16 @@
{%extends 'README.rst.jj2' %}
{%block description%}
**pyexcel-ods** is a tiny wrapper library to read, manipulate and write data in
ods fromat using python 2.6 and python 2.7. You are likely to use it with
`pyexcel <https://github.com/pyexcel/pyexcel>`_.
`pyexcel-ods3 <https://github.com/pyexcel/pyexcel-ods3>`_ is a sister library that
does the same thing but supports Python 3.3 and 3.4 and depends on lxml.
{%endblock%}
{%block extras %}
Credits
================================================================================
ODSReader is originally written by `Marco Conti <https://github.com/marcoconti83/read-ods-with-odfpy>`_
{%endblock%}

View File

@ -0,0 +1,2 @@
{% extends 'docs\source\conf.py.jj2'%}

View File

@ -0,0 +1,8 @@
{% extends 'docs/source/conf.py.jj2'%}
{%block custom_doc_theme%}
html_theme = 'default'
def setup(app):
app.add_stylesheet('theme_overrides.css')
{%endblock%}

View File

@ -0,0 +1,3 @@
{% for dependency in dependencies: %}
{{dependency}}
{% endfor %}

19
.moban.d/setup.py Normal file
View File

@ -0,0 +1,19 @@
{% extends 'setup.py.jj2' %}
{%block additional_keywords%}
'API',
'tsv',
'tsvz'
'csv',
'csvz'
{%endblock %}
{%block additional_classifiers%}
'Development Status :: 3 - Alpha',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: Implementation :: PyPy'
{%endblock%}}

View File

@ -0,0 +1,6 @@
{% extends 'tests/requirements.txt.jj2' %}
{%block extras %}
SQLAlchemy
pyexcel>=0.2.0
pyexcel-xls>=0.1.0
{%endblock%}

11
.moban.d/travis.yml Normal file
View File

@ -0,0 +1,11 @@
{% extends "travis.yml.jj2" %}
{%block test_other_python_versions%} - 2.6
- 3.3
- 3.4
- 3.5
- pypy
{%endblock%}
{%block custom_install%} - if [[ $TRAVIS_PYTHON_VERSION == "2.6" ]]; then pip install ordereddict; fi
{%endblock%}

View File

@ -5,17 +5,18 @@ notifications:
env:
global:
python:
- 2.6
- 2.7
- 2.6
- 3.3
- 3.4
- 3.5
- pypy
install:
- rm applymoban.py
- if [[ $TRAVIS_PYTHON_VERSION == "2.6" ]]; then pip install ordereddict; fi
- python setup.py install
- pip install -r requirements.txt
- pip install -r tests/requirements.txt
script:
make test
after_success:
codecov
codecov

19
LICENSE
View File

@ -1,21 +1,20 @@
Copyright (c) 2014-2016 by Onni Software Ltd. and its contributors
Copyright (c) 2015-2016 by Onni Software Ltd. and its contributors
All rights reserved.
Redistribution and use in source and binary forms of the software as well
as documentation, with or without modification, are permitted provided
that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
* Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above
copyright notice, this list of conditions and the following
disclaimer in the documentation and/or other materials provided
with the distribution.
* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
* The names of the contributors may not be used to endorse or
promote products derived from this software without specific
prior written permission.
* Neither the name of 'pyexcel-io' nor the names of the contributors
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
CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT

View File

@ -1 +1 @@
include VERSION
include README.rst

View File

@ -1 +0,0 @@
0.1.0

13
applymoban.py Normal file
View File

@ -0,0 +1,13 @@
from os import path, system
config_dir = 'commons/config'
template_dir = 'commons/templates'
if not path.exists("commons"):
system("git clone https://github.com/pyexcel/pyexcel-commons.git commons")
system("moban -cd {0} -td {1} .moban.d -t docs/source/conf.py -o doc/source/conf.py -c moban.yaml".format(config_dir, template_dir))
system("moban -cd {0} -td {1} .moban.d -t setup.py -o setup.py -c moban.yaml".format(config_dir, template_dir))
system("moban -cd {0} -td {1} .moban.d -t travis.yml -o .travis.yml -c moban.yaml".format(config_dir, template_dir))
system("moban -cd {0} -td {1} -t LICENSE.jj2 -o LICENSE -c moban.yaml".format(config_dir, template_dir))
system("moban -cd {0} -td {1} .moban.d -t tests/requirements.txt -o tests/requirements.txt -c moban.yaml".format(config_dir, template_dir))
system("moban -cd {0} -td {1} .moban.d -t MANIFEST.in.jj2 -o MANIFEST.in -c moban.yaml".format(config_dir, template_dir))

View File

@ -1,26 +1,7 @@
# -*- coding: utf-8 -*-
#
# pyexcel_io documentation build configuration file, created by
# sphinx-quickstart on Fri May 08 09:33:05 2015.
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
#
# All configuration values have a default; values that are commented out
# serve to show the default.
import sys
import os
try:
with open(os.path.join("..", "..", "VERSION"), "r") as version:
version_txt = version.read().rstrip()
except:
version_txt = "not_in_sphinx"
# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.
@ -36,14 +17,13 @@ except:
# ones.
extensions = [
'sphinx.ext.autodoc',
'sphinx.ext.autosummary',
'sphinx.ext.doctest',
'sphinx.ext.intersphinx',
'sphinx.ext.todo',
'sphinx.ext.coverage',
'sphinx.ext.viewcode',
]
intersphinx_mapping = {'pyexcel': ('http://pyexcel.readthedocs.org/en/latest/', None)}
# Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates']
@ -57,17 +37,17 @@ source_suffix = '.rst'
master_doc = 'index'
# General information about the project.
project = u'pyexcel_io'
copyright = u'2015, C. W.'
project = u'pyexcel-io'
copyright = u'2015-2016 Onni Software Ltd.'
# The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the
# built documents.
#
# The short X.Y version.
version = version_txt
version = '0.1.0'
# The full version, including alpha/beta/rc tags.
release = version_txt
release = '0.1.0'
# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
@ -113,12 +93,13 @@ pygments_style = 'sphinx'
# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
html_theme = 'default'
def setup(app):
app.add_stylesheet('theme_overrides.css')
# Theme options are theme-specific and customize the look and feel of a theme
# further. For a list of options available for each theme, see the
# documentation.
#html_theme_options = {}
# Add any paths that contain custom themes here, relative to this directory.
#html_theme_path = []
@ -142,8 +123,6 @@ html_theme = 'default'
# relative to this directory. They are copied after the builtin static files,
# so a file named "default.css" will overwrite the builtin "default.css".
html_static_path = ['_static']
def setup(app):
app.add_stylesheet('theme_overrides.css')
# Add any extra paths that contain custom files (such as robots.txt or
# .htaccess) here, relative to this directory. These files are copied
@ -192,7 +171,7 @@ def setup(app):
#html_file_suffix = None
# Output file base name for HTML help builder.
htmlhelp_basename = 'pyexcel_iodoc'
htmlhelp_basename = 'pyexcel-iodoc'
# -- Options for LaTeX output ---------------------------------------------
@ -212,8 +191,8 @@ latex_elements = {
# (source start file, target name, title,
# author, documentclass [howto, manual, or own class]).
latex_documents = [
('index', 'pyexcel_io.tex', u'pyexcel\\_io Documentation',
u'C. W.', 'manual'),
('index', 'pyexcel-io.tex', u'pyexcel-io Documentation',
u'Onni Software Ltd.', 'manual'),
]
# The name of an image file (relative to this directory) to place at the top of
@ -242,8 +221,8 @@ latex_documents = [
# One entry per manual page. List of tuples
# (source start file, name, description, authors, manual section).
man_pages = [
('index', 'pyexcel_io', u'pyexcel_io Documentation',
[u'C. W.'], 1)
('index', 'pyexcel-io', u'pyexcel-io Documentation',
[u'Onni Software Ltd.'], 1)
]
# If true, show URL addresses after external links.
@ -256,8 +235,8 @@ man_pages = [
# (source start file, target name, title, author,
# dir menu entry, description, category)
texinfo_documents = [
('index', 'pyexcel_io', u'pyexcel_io Documentation',
u'C. W.', 'pyexcel_io', 'One line description of project.',
('index', 'pyexcel-io', u'pyexcel-io Documentation',
u'Onni Software Ltd.', 'pyexcel-io', 'One line description of project.',
'Miscellaneous'),
]
@ -271,78 +250,4 @@ texinfo_documents = [
#texinfo_show_urls = 'footnote'
# If true, do not generate a @detailmenu in the "Top" node's menu.
#texinfo_no_detailmenu = False
# -- Options for Epub output ----------------------------------------------
# Bibliographic Dublin Core info.
epub_title = u'pyexcel_io'
epub_author = u'C. W.'
epub_publisher = u'C. W.'
epub_copyright = u'2015, C. W.'
# The basename for the epub file. It defaults to the project name.
#epub_basename = u'pyexcel_io'
# The HTML theme for the epub output. Since the default themes are not optimized
# for small screen space, using the same theme for HTML and epub output is
# usually not wise. This defaults to 'epub', a theme designed to save visual
# space.
#epub_theme = 'epub'
# The language of the text. It defaults to the language option
# or en if the language is not set.
#epub_language = ''
# The scheme of the identifier. Typical schemes are ISBN or URL.
#epub_scheme = ''
# The unique identifier of the text. This can be a ISBN number
# or the project homepage.
#epub_identifier = ''
# A unique identification for the text.
#epub_uid = ''
# A tuple containing the cover image and cover page html template filenames.
#epub_cover = ()
# A sequence of (type, uri, title) tuples for the guide element of content.opf.
#epub_guide = ()
# HTML files that should be inserted before the pages created by sphinx.
# The format is a list of tuples containing the path and title.
#epub_pre_files = []
# HTML files shat should be inserted after the pages created by sphinx.
# The format is a list of tuples containing the path and title.
#epub_post_files = []
# A list of files that should not be packed into the epub file.
epub_exclude_files = ['search.html']
# The depth of the table of contents in toc.ncx.
#epub_tocdepth = 3
# Allow duplicate toc entries.
#epub_tocdup = True
# Choose between 'default' and 'includehidden'.
#epub_tocscope = 'default'
# Fix unsupported image types using the PIL.
#epub_fix_images = False
# Scale large images.
#epub_max_image_width = 0
# How to display URL addresses: 'footnote', 'no', or 'inline'.
#epub_show_urls = 'inline'
# If false, no index is generated.
#epub_use_index = True
# Example configuration for intersphinx: refer to the Python standard library.
intersphinx_mapping = {'http://docs.python.org/': None}
#texinfo_no_detailmenu = False

13
moban.yaml Normal file
View File

@ -0,0 +1,13 @@
overrides: "pyexcel.yaml"
name: "pyexcel-io"
nick_name: io
version: 0.1.0
extra_dependencies:
- xls:
- pyexcel-xls>=0.1.0
- xlsx:
- pyexcel-xlsx>=0.1.0
- ods:
- pyexcel-ods3>=0.1.0
description: |
A python library to read and write structured data in csv, zipped csv format and to/from databases

View File

@ -4,31 +4,26 @@ except ImportError:
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
import sys
with open("README.rst", 'r') as readme:
README_txt = readme.read()
with open("VERSION", "r") as version:
version_txt = version.read().rstrip()
dependencies = []
if sys.version_info[0] == 2 and sys.version_info[1] < 7:
dependencies.append('ordereddict')
dependencies = [
]
extras = {
'xls': ['pyexcel-xls>=0.1.0'],
'xlsx': ['pyexcel-xlsx>=0.1.0'],
'ods': ['pyexcel-ods3>=0.1.0']
'ods': ['pyexcel-ods3>=0.1.0'],
}
setup(
name='pyexcel-io',
author="C. W.",
version=version_txt,
author_email="wangc_2011@hotmail.com",
url="https://github.com/chfw/pyexcel-io",
author='C. W.',
version='0.1.0',
author_email='wangc_2011 (at) hotmail.com',
url='https://github.com/pyexcel/pyexcel-io',
description='A python library to read and write structured data in csv, zipped csv format and to/from databases',
install_requires=dependencies,
extras_require=extras,
@ -37,20 +32,29 @@ setup(
long_description=README_txt,
zip_safe=False,
tests_require=['nose'],
keywords=[
'excel',
'python',
'pyexcel',
'API',
'tsv',
'tsvz'
'csv',
'csvz'
],
license='New BSD',
classifiers=[
'Development Status :: 3 - Alpha',
'Topic :: Office/Business',
'Topic :: Utilities',
'Topic :: Software Development :: Libraries',
'Programming Language :: Python',
'License :: OSI Approved :: BSD License',
'Intended Audience :: Developers',
'Development Status :: 3 - Alpha',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: Implementation :: PyPy'
]
)
)

View File

@ -4,5 +4,5 @@ nose-cov
codecov
coverage
SQLAlchemy
pyexcel-xls>=0.0.7
pyexcel>=0.1.7
pyexcel>=0.2.0
pyexcel-xls>=0.1.0