Skip to content

Commit 0eea600

Browse files
committed
remove duplicated information scattered around pyexcel and its components
1 parent 254b006 commit 0eea600

15 files changed

+122
-44
lines changed

.moban.d/README.rst

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

.moban.d/requirements.txt

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{% for dependency in dependencies: %}
2+
{{dependency}}
3+
{% endfor %}

.moban.d/setup.py

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{% extends 'setup.py.jj2' %}
2+
3+
{%block additional_keywords%}
4+
"plain",
5+
"simple",
6+
"grid",
7+
"pipe",
8+
"orgtbl",
9+
"rst",
10+
"mediawiki",
11+
"latex",
12+
"latex_booktabs",
13+
"json"
14+
{%endblock%}
15+
16+
{%block additional_classifiers%}
17+
'Development Status :: 3 - Alpha',
18+
'Programming Language :: Python :: 2.7',
19+
'Programming Language :: Python :: 3.3',
20+
'Programming Language :: Python :: 3.4',
21+
'Programming Language :: Python :: Implementation :: PyPy'
22+
{%endblock%}}
23+

.moban.d/tests/requirements.txt

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{% extends 'tests/requirements.txt.jj2' %}
2+
{%block extras %}
3+
pyexcel
4+
{%endblock%}

.moban.d/travis.yml

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{% extends "travis.yml.jj2" %}
2+
3+
{%block test_other_python_versions%} - 2.6
4+
{%endblock%}
5+

.travis.yml

+3-6
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,13 @@ notifications:
55
env:
66
global:
77
python:
8-
- 2.6
98
- 2.7
10-
- 3.3
11-
- 3.4
12-
- 3.5
13-
- pypy
9+
- 2.6
1410
install:
11+
- rm applymoban.py
1512
- pip install -r requirements.txt
1613
- pip install -r tests/requirements.txt
1714
script:
1815
make test
1916
after_success:
20-
codecov
17+
codecov

LICENSE

+9-10
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,20 @@
1-
Copyright (c) 2015-2016 by Onni Software Ltd.
1+
Copyright (c) 2015-2016 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
55
as documentation, with or without modification, are permitted provided
66
that the following conditions are met:
77

8-
* Redistributions of source code must retain the above copyright
9-
notice, this list of conditions and the following disclaimer.
8+
* Redistributions of source code must retain the above copyright notice, this
9+
list of conditions and the following disclaimer.
1010

11-
* Redistributions in binary form must reproduce the above
12-
copyright notice, this list of conditions and the following
13-
disclaimer in the documentation and/or other materials provided
14-
with the distribution.
11+
* Redistributions in binary form must reproduce the above copyright notice,
12+
this list of conditions and the following disclaimer in the documentation
13+
and/or other materials provided with the distribution.
1514

16-
* The names of the contributors may not be used to endorse or
17-
promote products derived from this software without specific
18-
prior written permission.
15+
* Neither the name of 'pyexcel-text' nor the names of the contributors
16+
may not be used to endorse or promote products derived from this software
17+
without specific prior written permission.
1918

2019
THIS SOFTWARE AND DOCUMENTATION IS PROVIDED BY THE COPYRIGHT HOLDERS AND
2120
CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT

MANIFEST.in

-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
11
include README.rst
2-
include VERSION

README.rst

+4
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ It is a plugin to `pyexcel <https://github.com/pyexcel/pyexcel>`__ and extends i
2525
Usage
2626
======
2727

28+
Here is the example usage::
29+
30+
.. code-block: python
31+
2832
>>> import pyexcel as pe
2933
>>> import pyexcel.ext.text as text
3034
>>> content = [

VERSION

-1
This file was deleted.

applymoban.py

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
from os import path, system
2+
3+
config_dir = 'commons/config'
4+
template_dir = 'commons/templates'
5+
6+
if not path.exists("commons"):
7+
system("git clone https://github.com/pyexcel/pyexcel-commons.git commons")
8+
system("moban -cd {0} -td {1} .moban.d -t setup.py -o setup.py -c moban.yaml".format(config_dir, template_dir))
9+
system("moban -cd {0} -td {1} .moban.d -t travis.yml -o .travis.yml -c moban.yaml".format(config_dir, template_dir))
10+
system("moban -cd {0} -td .moban.d -t requirements.txt -o requirements.txt -c moban.yaml".format(config_dir))
11+
system("moban -cd {0} -td {1} -t LICENSE.jj2 -o LICENSE -c moban.yaml".format(config_dir, template_dir))
12+
system("moban -cd {0} -td {1} .moban.d -t tests/requirements.txt -o tests/requirements.txt -c moban.yaml".format(config_dir, template_dir))
13+
system("moban -cd {0} -td {1} .moban.d -t MANIFEST.in.jj2 -o MANIFEST.in -c moban.yaml".format(config_dir, template_dir))

moban.yaml

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
overrides: "pyexcel.yaml"
2+
name: "pyexcel-text"
3+
nick_name: text
4+
version: 0.1.1
5+
file_type: text
6+
dependencies:
7+
- pyexcel>=0.2.0
8+
- tabulate
9+
description: |
10+
A plugin to pyexcel and provides the capbility to present and write data in text fromats

requirements.txt

-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
1-
pyexcel-io>=0.1.0
21
pyexcel>=0.2.0
32
tabulate

setup.py

+31-23
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,3 @@
1-
"""
2-
pyexcel-text
3-
~~~~~~~~~~~~~~
4-
5-
textual plugin for pyexcel
6-
"""
7-
81
try:
92
from setuptools import setup, find_packages
103
except ImportError:
@@ -15,39 +8,54 @@
158
with open("README.rst", 'r') as readme:
169
README_txt = readme.read()
1710

18-
with open("VERSION", "r") as version:
19-
version_txt = version.read().rstrip()
11+
dependencies = [
12+
'pyexcel>=0.2.0',
13+
'tabulate',
14+
]
15+
16+
extras = {}
17+
2018

2119
setup(
2220
name='pyexcel-text',
23-
author="C. W.",
24-
version=version_txt,
25-
author_email="[email protected]",
26-
url="https://github.com/chfw/pyexcel-text",
21+
author='C. W.',
22+
version='0.1.1',
23+
author_email='wangc_2011 (at) hotmail.com',
24+
url='https://github.com/pyexcel/pyexcel-text',
25+
description='A plugin to pyexcel and provides the capbility to present and write data in text fromats',
26+
install_requires=dependencies,
27+
extras_require=extras,
2728
packages=find_packages(exclude=['ez_setup', 'examples', 'tests']),
2829
include_package_data=True,
29-
install_requires=[
30-
'pyexcel>=0.2.0',
31-
'pyexcel-io>=0.1.0',
32-
'tabulate'
33-
],
34-
description="It is a plugin to pyexcel and provides the capbility to present and write data in text fromats",
3530
long_description=README_txt,
36-
tests_require=['nose'],
3731
zip_safe=False,
32+
tests_require=['nose'],
33+
keywords=[
34+
'excel',
35+
'python',
36+
'pyexcel',
37+
"plain",
38+
"simple",
39+
"grid",
40+
"pipe",
41+
"orgtbl",
42+
"rst",
43+
"mediawiki",
44+
"latex",
45+
"latex_booktabs",
46+
"json"
47+
],
3848
license='New BSD',
3949
classifiers=[
40-
'Development Status :: 3 - Alpha',
4150
'Topic :: Office/Business',
4251
'Topic :: Utilities',
4352
'Topic :: Software Development :: Libraries',
4453
'Programming Language :: Python',
4554
'License :: OSI Approved :: BSD License',
4655
'Intended Audience :: Developers',
47-
'Programming Language :: Python :: 2.6',
4856
'Programming Language :: Python :: 2.7',
4957
'Programming Language :: Python :: 3.3',
5058
'Programming Language :: Python :: 3.4',
5159
'Programming Language :: Python :: Implementation :: PyPy'
5260
]
53-
)
61+
)

tests/requirements.txt

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
https://github.com/chfw/pyexcel/archive/master.zip
21
nose
32
rednose
43
nose-cov
54
codecov
65
coverage
7-
6+
pyexcel

0 commit comments

Comments
 (0)