Skip to content

Commit f2b464c

Browse files
committed
🤝 sync with pyexcel-commons
1 parent 5802860 commit f2b464c

File tree

6 files changed

+48
-39
lines changed

6 files changed

+48
-39
lines changed

Diff for: .moban.yml

+4-5
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,15 @@ configuration:
22
configuration_dir: "commons/config"
33
template_dir:
44
- "commons/templates"
5+
- "setupmobans/templates"
56
- ".moban.d"
67
configuration: pyexcel-sortable.yml
78
targets:
89
- README.rst: README.rst
910
- setup.py: setup.py
1011
- requirements.txt: requirements.txt
11-
- LICENSE: LICENSE.jj2
1212
- MANIFEST.in: MANIFEST.in.jj2
1313
- "tests/requirements.txt": "tests/requirements.txt"
14-
- test.sh: test.sh.jj2
15-
- test.bat: test.sh.jj2
16-
- .travis.yml: travis.yml
17-
- .gitignore: .gitignore.jj2
14+
- test.sh: test.script.jj2
15+
- test.bat: test.script.jj2
16+
- .travis.yml: travis.yml.jj2

Diff for: .travis.yml

+2-4
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,14 @@ language: python
33
notifications:
44
email: false
55
python:
6-
- pypy
6+
- pypy-5.3.1
77
- 3.6
88
- 3.5
99
- 3.4
1010
- 3.3
1111
- 2.7
12+
- 2.6
1213
before_install:
13-
- cd $HOME
14-
- "if [[ $TRAVIS_PYTHON_VERSION == 'pypy' ]]; then deactivate && wget https://bitbucket.org/squeaky/portable-pypy/downloads/pypy-5.7.1-linux_x86_64-portable.tar.bz2 -O - | tar -jxf - && echo 'Setting up aliases...' && ln -s pypy-5.7.1-linux_x86_64-portable pypy2-latest && export PATH=$HOME/pypy2-latest/bin/:$PATH && virtualenv --no-site-packages --python ~/pypy2-latest/bin/pypy pypy2-env && echo 'Creating custom env...' && source pypy2-env/bin/activate && python -V; fi"
15-
- cd -
1614
- if [[ $TRAVIS_PYTHON_VERSION == "2.6" ]]; then pip install flake8==2.6.2; fi
1715
- if [[ -f min_requirements.txt && "$MINREQ" -eq 1 ]]; then
1816
mv min_requirements.txt requirements.txt ;

Diff for: README.rst

+25-20
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,31 @@ pyexcel-sortable - Let you focus on data, instead of file formats
88
.. image:: https://api.travis-ci.org/pyexcel/pyexcel-sortable.svg?branch=master
99
:target: http://travis-ci.org/pyexcel/pyexcel-sortable
1010

11-
.. image:: https://codecov.io/github/pyexcel/pyexcel-sortable/coverage.png
12-
:target: https://codecov.io/github/pyexcel/pyexcel-sortable
11+
.. image:: https://codecov.io/gh/pyexcel/pyexcel-sortable/branch/master/graph/badge.svg
12+
:target: https://codecov.io/gh/pyexcel/pyexcel-sortable
1313

1414
.. image:: https://img.shields.io/gitter/room/gitterHQ/gitter.svg
1515
:target: https://gitter.im/pyexcel/Lobby
1616

1717

18+
Support the project
19+
================================================================================
20+
21+
If your company has embedded pyexcel and its components into a revenue generating
22+
product, please `support me on patreon <https://www.patreon.com/bePatron?u=5537627>`_ to
23+
maintain the project and develop it further.
24+
25+
If you are an individual, you are welcome to support me too on patreon and for however long
26+
you feel like to. As a patreon, you will receive
27+
`early access to pyexcel related contents <https://www.patreon.com/pyexcel/posts>`_.
28+
29+
With your financial support, I will be able to invest
30+
a little bit more time in coding, documentation and writing interesting posts.
31+
1832

33+
34+
Introduction
35+
================================================================================
1936
**pyexcel-sortable** is inspired by `csvtotable <https://github.com/vividvilla/csvtotable>`_ and
2037
provides csvtotable functionality to pyexcel family.
2138

@@ -49,21 +66,6 @@ or clone it and install it:
4966
5067
5168
52-
Support the project
53-
================================================================================
54-
55-
If your company has embedded pyexcel and its components into a revenue generating
56-
product, please `support me on patreon <https://www.patreon.com/bePatron?u=5537627>`_ to
57-
maintain the project and develop it further.
58-
59-
If you are an individual, you are welcome to support me too on patreon and for however long
60-
you feel like to. As a patreon, you will receive
61-
`early access to pyexcel related contents <https://www.patreon.com/pyexcel/posts>`_.
62-
63-
With your financial support, I will be able to invest
64-
a little bit more time in coding, documentation and writing interesting posts.
65-
66-
6769
Development guide
6870
================================================================================
6971

@@ -88,9 +90,9 @@ and update CHANGELOG.rst.
8890
.. note::
8991

9092
As to rnd_requirements.txt, usually, it is created when a dependent
91-
library is not released. Once the dependecy is installed
92-
(will be released), the future
93-
version of the dependency in the requirements.txt will be valid.
93+
library is not released. Once the dependecy is installed
94+
(will be released), the future
95+
version of the dependency in the requirements.txt will be valid.
9496

9597

9698
How to test your contribution
@@ -112,6 +114,7 @@ How to update test environment and update documentation
112114
Additional steps are required:
113115

114116
#. pip install moban
117+
#. git clone https://github.com/moremoban/setupmobans.git # generic setup
115118
#. git clone https://github.com/pyexcel/pyexcel-commons.git commons
116119
#. make your changes in `.moban.d` directory, then issue command `moban`
117120

@@ -132,6 +135,8 @@ Acceptance criteria
132135
#. Has all code lines tested
133136
#. Passes all Travis CI builds
134137
#. Has fair amount of documentation if your change is complex
138+
#. Please update CHANGELOG.rst
139+
#. Please add yourself to CONTRIBUTORS.rst
135140
#. Agree on NEW BSD License for your contribution
136141

137142

Diff for: pyexcel-sortable.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ version: "0.0.1"
55
current_version: "0.0.1"
66
release: "0.0.1"
77
dependencies:
8-
- csvtotable >= 1.1.1
8+
- excel2table >= 2.2.0
99
description: "Transform your csv file or a sheet of your xls, xlsx and ods into a sortable HTML file using csvtotable"

Diff for: requirements.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
csvtotable >= 1.1.1
1+
excel2table >= 2.2.0

Diff for: setup.py

+15-8
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import codecs
12
try:
23
from setuptools import setup, find_packages
34
except ImportError:
@@ -18,18 +19,18 @@
1819
'rtable HTML file using csvtotable' +
1920
''
2021
)
22+
URL = 'https://github.com/pyexcel/pyexcel-sortable'
23+
DOWNLOAD_URL = '%s/archive/0.0.1.tar.gz' % URL
24+
FILES = ['README.rst', 'CHANGELOG.rst']
2125
KEYWORDS = [
22-
'excel',
23-
'python',
24-
'pyexcel',
26+
'python'
2527
]
2628

2729
CLASSIFIERS = [
2830
'Topic :: Office/Business',
2931
'Topic :: Utilities',
3032
'Topic :: Software Development :: Libraries',
3133
'Programming Language :: Python',
32-
'License :: OSI Approved :: BSD License',
3334
'Intended Audience :: Developers',
3435
'Programming Language :: Python :: 2.6',
3536
'Programming Language :: Python :: 2.7',
@@ -40,7 +41,7 @@
4041
]
4142

4243
INSTALL_REQUIRES = [
43-
'csvtotable >= 1.1.1',
44+
'excel2table >= 2.2.0',
4445
]
4546

4647

@@ -60,7 +61,7 @@ def read_files(*files):
6061

6162
def read(afile):
6263
"""Read a file into setup"""
63-
with open(afile, 'r') as opened_file:
64+
with codecs.open(afile, 'r', 'utf-8') as opened_file:
6465
content = filter_out_test_code(opened_file)
6566
content = "".join(list(content))
6667
return content
@@ -83,7 +84,11 @@ def filter_out_test_code(file_handle):
8384
found_test_code = False
8485
yield line
8586
else:
86-
yield line
87+
for keyword in ['|version|', '|today|']:
88+
if keyword in line:
89+
break
90+
else:
91+
yield line
8792

8893

8994
if __name__ == '__main__':
@@ -93,7 +98,9 @@ def filter_out_test_code(file_handle):
9398
version=VERSION,
9499
author_email=EMAIL,
95100
description=DESCRIPTION,
96-
long_description=read_files('README.rst', 'CHANGELOG.rst'),
101+
url=URL,
102+
download_url=DOWNLOAD_URL,
103+
long_description=read_files(*FILES),
97104
license=LICENSE,
98105
keywords=KEYWORDS,
99106
extras_require=EXTRAS_REQUIRE,

0 commit comments

Comments
 (0)