🔨 kick start 0.6.0

This commit is contained in:
chfw 2018-11-10 22:26:43 +00:00
parent 8443709d84
commit aa7222de61
9 changed files with 33 additions and 21 deletions

View File

@ -2,4 +2,7 @@
{%block extras %}
pyexcel
xlrd==1.1.0
moban
black;python_version>="3.6"
isort;python_version>="3.6"
{%endblock%}

View File

@ -1,8 +1,13 @@
requires:
- type: git
url: https://github.com/moremoban/pypi-mobans
submodule: true
- https://github.com/pyexcel/pyexcel-mobans
configuration:
configuration_dir: "commons/config"
configuration_dir: "pyexcel-mobans:config"
template_dir:
- "commons/templates"
- "setupmobans/templates"
- "pyexcel-mobans:templates"
- "pypi-mobans:templates"
- ".moban.d"
configuration: pyexcel-xls.yml
targets:

View File

@ -3,3 +3,7 @@ all: test
test:
bash test.sh
format:
isort -y $(find pyexcel_xls -name "*.py"|xargs echo) $(find tests -name "*.py"|xargs echo)
black -l 79 pyexcel_xls
black -l 79 tests

View File

@ -31,7 +31,7 @@ author = u'C.W.'
# The short X.Y version
version = u'0.5.8'
# The full version, including alpha/beta/rc tags
release = u'0.5.8'
release = u'0.6.0'
# -- General configuration ---------------------------------------------------
@ -43,12 +43,7 @@ release = u'0.5.8'
# Add any Sphinx extension module names here, as strings. They can be
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
# ones.
extensions = [
'sphinx.ext.autodoc',
'sphinx.ext.doctest',
'sphinx.ext.intersphinx',
'sphinx.ext.viewcode',
]
extensions = [ 'sphinx.ext.autodoc', 'sphinx.ext.doctest', 'sphinx.ext.intersphinx', 'sphinx.ext.viewcode',]
# Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates']
@ -75,7 +70,7 @@ language = 'en'
exclude_patterns = []
# The name of the Pygments (syntax highlighting) style to use.
pygments_style = 'sphinx'
pygments_style = None
# -- Options for HTML output -------------------------------------------------

View File

@ -1,8 +1,8 @@
overrides: "pyexcel.yaml"
name: "pyexcel-xls"
nick_name: xls
version: 0.5.8
current_version: 0.5.8
version: 0.6.0
current_version: 0.6.0
release: 0.5.8
file_type: xls
dependencies:

View File

@ -11,7 +11,7 @@
# this line has to be place above all else
# because of dynamic import
from pyexcel_io.plugins import IOPluginInfoChain
from pyexcel_io.io import get_data as read_data, isstream, store_data as write_data
from pyexcel_io.io import get_data as read_data, isstream, save_data as write_data
__FILE_TYPE__ = 'xls'
IOPluginInfoChain(__name__).add_a_reader(

View File

@ -5,13 +5,15 @@ import os
import sys
import codecs
from shutil import rmtree
from setuptools import setup, find_packages, Command
from setuptools import Command, setup, find_packages
PY2 = sys.version_info[0] == 2
PY26 = PY2 and sys.version_info[1] < 7
NAME = 'pyexcel-xls'
AUTHOR = 'C.W.'
VERSION = '0.5.8'
VERSION = '0.6.0'
EMAIL = 'wangc_2011@hotmail.com'
LICENSE = 'New BSD'
DESCRIPTION = (
@ -22,10 +24,10 @@ URL = 'https://github.com/pyexcel/pyexcel-xls'
DOWNLOAD_URL = '%s/archive/0.5.8.tar.gz' % URL
FILES = ['README.rst', 'CHANGELOG.rst']
KEYWORDS = [
'python',
'xls',
'xlsx',
'xlsm',
'python',
'xlsm'
]
CLASSIFIERS = [

View File

@ -5,3 +5,6 @@ coverage
flake8
pyexcel
xlrd==1.1.0
moban
black;python_version>="3.6"
isort;python_version>="3.6"

View File

@ -89,7 +89,7 @@ def test_issue_18_encoding_override_isnt_passed(fake_open):
def test_issue_20():
if not IN_TRAVIS:
raise SkipTest()
pe.get_book(url="https://github.com/pyexcel/pyexcel-xls/raw/master/tests/fixtures/file_with_an_empty_sheet.xls"); # flake8: noqa
pe.get_book(url="https://github.com/pyexcel/pyexcel-xls/raw/master/tests/fixtures/file_with_an_empty_sheet.xls") # noqa: E501
def test_issue_151():
@ -97,7 +97,7 @@ def test_issue_151():
file_name=get_fixture('pyexcel_issue_151.xlsx'),
skip_hidden_row_and_column=False,
library='pyexcel-xls')
eq_('#N/A', s[0,0])
eq_('#N/A', s[0, 0])
@raises(NotImplementedError)
@ -113,7 +113,7 @@ def test_pyexcel_issue_54():
xlvalue = 41071.0
date = xldate_to_python_date(xlvalue, 1)
eq_(date, datetime.date(2016, 6, 12))
def get_fixture(file_name):
return os.path.join("tests", "fixtures", file_name)