Skip to content

Commit

Permalink
remove duplicated information scattered around pyexcel and its compon…
Browse files Browse the repository at this point in the history
…ents
  • Loading branch information
chfw committed Jan 30, 2016
1 parent 254b006 commit 0eea600
Show file tree
Hide file tree
Showing 15 changed files with 122 additions and 44 deletions.
16 changes: 16 additions & 0 deletions .moban.d/README.rst
Original file line number Diff line number Diff line change
@@ -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%}
3 changes: 3 additions & 0 deletions .moban.d/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{% for dependency in dependencies: %}
{{dependency}}
{% endfor %}
23 changes: 23 additions & 0 deletions .moban.d/setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{% extends 'setup.py.jj2' %}

{%block additional_keywords%}
"plain",
"simple",
"grid",
"pipe",
"orgtbl",
"rst",
"mediawiki",
"latex",
"latex_booktabs",
"json"
{%endblock%}

{%block additional_classifiers%}
'Development Status :: 3 - Alpha',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: Implementation :: PyPy'
{%endblock%}}

4 changes: 4 additions & 0 deletions .moban.d/tests/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{% extends 'tests/requirements.txt.jj2' %}
{%block extras %}
pyexcel
{%endblock%}
5 changes: 5 additions & 0 deletions .moban.d/travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{% extends "travis.yml.jj2" %}

{%block test_other_python_versions%} - 2.6
{%endblock%}

9 changes: 3 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,13 @@ notifications:
env:
global:
python:
- 2.6
- 2.7
- 3.3
- 3.4
- 3.5
- pypy
- 2.6
install:
- rm applymoban.py
- pip install -r requirements.txt
- pip install -r tests/requirements.txt
script:
make test
after_success:
codecov
codecov
19 changes: 9 additions & 10 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,21 +1,20 @@
Copyright (c) 2015-2016 by Onni Software Ltd.
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-text' 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
Expand Down
1 change: 0 additions & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
include README.rst
include VERSION
4 changes: 4 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ It is a plugin to `pyexcel <https://github.com/pyexcel/pyexcel>`__ and extends i
Usage
======

Here is the example usage::

.. code-block: python
>>> import pyexcel as pe
>>> import pyexcel.ext.text as text
>>> content = [
Expand Down
1 change: 0 additions & 1 deletion VERSION

This file was deleted.

13 changes: 13 additions & 0 deletions applymoban.py
Original file line number Diff line number Diff line change
@@ -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 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 .moban.d -t requirements.txt -o requirements.txt -c moban.yaml".format(config_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))
10 changes: 10 additions & 0 deletions moban.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
overrides: "pyexcel.yaml"
name: "pyexcel-text"
nick_name: text
version: 0.1.1
file_type: text
dependencies:
- pyexcel>=0.2.0
- tabulate
description: |
A plugin to pyexcel and provides the capbility to present and write data in text fromats
1 change: 0 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
pyexcel-io>=0.1.0
pyexcel>=0.2.0
tabulate
54 changes: 31 additions & 23 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
"""
pyexcel-text
~~~~~~~~~~~~~~
textual plugin for pyexcel
"""

try:
from setuptools import setup, find_packages
except ImportError:
Expand All @@ -15,39 +8,54 @@
with open("README.rst", 'r') as readme:
README_txt = readme.read()

with open("VERSION", "r") as version:
version_txt = version.read().rstrip()
dependencies = [
'pyexcel>=0.2.0',
'tabulate',
]

extras = {}


setup(
name='pyexcel-text',
author="C. W.",
version=version_txt,
author_email="[email protected]",
url="https://github.com/chfw/pyexcel-text",
author='C. W.',
version='0.1.1',
author_email='wangc_2011 (at) hotmail.com',
url='https://github.com/pyexcel/pyexcel-text',
description='A plugin to pyexcel and provides the capbility to present and write data in text fromats',
install_requires=dependencies,
extras_require=extras,
packages=find_packages(exclude=['ez_setup', 'examples', 'tests']),
include_package_data=True,
install_requires=[
'pyexcel>=0.2.0',
'pyexcel-io>=0.1.0',
'tabulate'
],
description="It is a plugin to pyexcel and provides the capbility to present and write data in text fromats",
long_description=README_txt,
tests_require=['nose'],
zip_safe=False,
tests_require=['nose'],
keywords=[
'excel',
'python',
'pyexcel',
"plain",
"simple",
"grid",
"pipe",
"orgtbl",
"rst",
"mediawiki",
"latex",
"latex_booktabs",
"json"
],
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',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: Implementation :: PyPy'
]
)
)
3 changes: 1 addition & 2 deletions tests/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
https://github.com/chfw/pyexcel/archive/master.zip
nose
rednose
nose-cov
codecov
coverage

pyexcel

0 comments on commit 0eea600

Please sign in to comment.