🤝 take latest code from setupmobans and release 0.5.2 🥚 🎡, which carries LICENSE file, https://github.com/pyexcel/pyexcel/pull/103
This commit is contained in:
parent
56fa0ace8c
commit
66be66309d
|
@ -1,6 +1,15 @@
|
||||||
Change log
|
Change log
|
||||||
================================================================================
|
================================================================================
|
||||||
|
|
||||||
|
0.5.2 - 20.10.2017
|
||||||
|
--------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
added
|
||||||
|
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||||
|
|
||||||
|
#. `#103 <https://github.com/pyexcel/pyexcel/issues/103>`_, include LICENSE file
|
||||||
|
in MANIFEST.in, meaning LICENSE file will appear in the released tar ball.
|
||||||
|
|
||||||
0.5.1 - 02.09.2017
|
0.5.1 - 02.09.2017
|
||||||
--------------------------------------------------------------------------------
|
--------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
|
@ -1,2 +1,3 @@
|
||||||
include README.rst
|
include README.rst
|
||||||
|
include LICENSE
|
||||||
include CHANGELOG.rst
|
include CHANGELOG.rst
|
||||||
|
|
|
@ -22,8 +22,8 @@ master_doc = 'index'
|
||||||
|
|
||||||
project = u'pyexcel-io'
|
project = u'pyexcel-io'
|
||||||
copyright = u'2015-2017 Onni Software Ltd.'
|
copyright = u'2015-2017 Onni Software Ltd.'
|
||||||
version = '0.5.1'
|
version = '0.5.2'
|
||||||
release = '0.5.1'
|
release = '0.5.2'
|
||||||
exclude_patterns = []
|
exclude_patterns = []
|
||||||
pygments_style = 'sphinx'
|
pygments_style = 'sphinx'
|
||||||
html_theme = 'default'
|
html_theme = 'default'
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
overrides: "pyexcel.yaml"
|
overrides: "pyexcel.yaml"
|
||||||
name: "pyexcel-io"
|
name: "pyexcel-io"
|
||||||
nick_name: io
|
nick_name: io
|
||||||
version: 0.5.1
|
version: 0.5.2
|
||||||
current_version: 0.5.1
|
current_version: 0.5.2
|
||||||
release: 0.5.1
|
release: 0.5.2
|
||||||
dependencies:
|
dependencies:
|
||||||
- ordereddict;python_version<"2.7"
|
- ordereddict;python_version<"2.7"
|
||||||
- lml==0.0.1
|
- lml==0.0.1
|
||||||
|
|
56
setup.py
56
setup.py
|
@ -1,17 +1,15 @@
|
||||||
|
# Template by setupmobans
|
||||||
|
import os
|
||||||
import codecs
|
import codecs
|
||||||
try:
|
from shutil import rmtree
|
||||||
from setuptools import setup, find_packages
|
from setuptools import setup, find_packages, Command
|
||||||
except ImportError:
|
|
||||||
from ez_setup import use_setuptools
|
|
||||||
use_setuptools()
|
|
||||||
from setuptools import setup, find_packages
|
|
||||||
import sys
|
import sys
|
||||||
PY2 = sys.version_info[0] == 2
|
PY2 = sys.version_info[0] == 2
|
||||||
PY26 = PY2 and sys.version_info[1] < 7
|
PY26 = PY2 and sys.version_info[1] < 7
|
||||||
|
|
||||||
NAME = 'pyexcel-io'
|
NAME = 'pyexcel-io'
|
||||||
AUTHOR = 'C.W.'
|
AUTHOR = 'C.W.'
|
||||||
VERSION = '0.5.1'
|
VERSION = '0.5.2'
|
||||||
EMAIL = 'wangc_2011@hotmail.com'
|
EMAIL = 'wangc_2011@hotmail.com'
|
||||||
LICENSE = 'New BSD'
|
LICENSE = 'New BSD'
|
||||||
DESCRIPTION = (
|
DESCRIPTION = (
|
||||||
|
@ -20,7 +18,7 @@ DESCRIPTION = (
|
||||||
''
|
''
|
||||||
)
|
)
|
||||||
URL = 'https://github.com/pyexcel/pyexcel-io'
|
URL = 'https://github.com/pyexcel/pyexcel-io'
|
||||||
DOWNLOAD_URL = '%s/archive/0.5.1.tar.gz' % URL
|
DOWNLOAD_URL = '%s/archive/0.5.2.tar.gz' % URL
|
||||||
FILES = ['README.rst', 'CHANGELOG.rst']
|
FILES = ['README.rst', 'CHANGELOG.rst']
|
||||||
KEYWORDS = [
|
KEYWORDS = [
|
||||||
'API',
|
'API',
|
||||||
|
@ -62,6 +60,42 @@ EXTRAS_REQUIRE = {
|
||||||
'xlsx': ['pyexcel-xlsx>=0.5.0'],
|
'xlsx': ['pyexcel-xlsx>=0.5.0'],
|
||||||
'ods': ['pyexcel-ods3>=0.5.0'],
|
'ods': ['pyexcel-ods3>=0.5.0'],
|
||||||
}
|
}
|
||||||
|
PUBLISH_COMMAND = '{0} setup.py sdist bdist_wheel upload -r pypi'.format(
|
||||||
|
sys.executable)
|
||||||
|
GS_COMMAND = ('gs pyexcel-io v0.5.2 ' +
|
||||||
|
"Find 0.5.2 in changelog for more details")
|
||||||
|
here = os.path.abspath(os.path.dirname(__file__))
|
||||||
|
|
||||||
|
|
||||||
|
class PublishCommand(Command):
|
||||||
|
"""Support setup.py upload."""
|
||||||
|
|
||||||
|
description = 'Build and publish the package on github and pypi'
|
||||||
|
user_options = []
|
||||||
|
|
||||||
|
@staticmethod
|
||||||
|
def status(s):
|
||||||
|
"""Prints things in bold."""
|
||||||
|
print('\033[1m{0}\033[0m'.format(s))
|
||||||
|
|
||||||
|
def initialize_options(self):
|
||||||
|
pass
|
||||||
|
|
||||||
|
def finalize_options(self):
|
||||||
|
pass
|
||||||
|
|
||||||
|
def run(self):
|
||||||
|
try:
|
||||||
|
self.status('Removing previous builds…')
|
||||||
|
rmtree(os.path.join(here, 'dist'))
|
||||||
|
except OSError:
|
||||||
|
pass
|
||||||
|
|
||||||
|
self.status('Building Source and Wheel (universal) distribution…')
|
||||||
|
if os.system(GS_COMMAND) == 0:
|
||||||
|
os.system(PUBLISH_COMMAND)
|
||||||
|
|
||||||
|
sys.exit()
|
||||||
|
|
||||||
|
|
||||||
def read_files(*files):
|
def read_files(*files):
|
||||||
|
@ -123,5 +157,9 @@ if __name__ == '__main__':
|
||||||
packages=PACKAGES,
|
packages=PACKAGES,
|
||||||
include_package_data=True,
|
include_package_data=True,
|
||||||
zip_safe=False,
|
zip_safe=False,
|
||||||
classifiers=CLASSIFIERS
|
classifiers=CLASSIFIERS,
|
||||||
|
setup_requires=['gease'],
|
||||||
|
cmdclass={
|
||||||
|
'publish': PublishCommand,
|
||||||
|
}
|
||||||
)
|
)
|
||||||
|
|
2
test.bat
2
test.bat
|
@ -1,2 +1,2 @@
|
||||||
pip freeze
|
pip freeze
|
||||||
nosetests --with-cov --cover-package pyexcel_io --cover-package tests --with-doctest --doctest-extension=.rst README.rst tests docs/source pyexcel_io && flake8 . --exclude=.moban.d --builtins=unicode,xrange,long
|
nosetests --with-coverage --cover-package pyexcel_io --cover-package tests --with-doctest --doctest-extension=.rst README.rst tests docs/source pyexcel_io && flake8 . --exclude=.moban.d --builtins=unicode,xrange,long
|
||||||
|
|
2
test.sh
2
test.sh
|
@ -1,2 +1,2 @@
|
||||||
pip freeze
|
pip freeze
|
||||||
nosetests --with-cov --cover-package pyexcel_io --cover-package tests --with-doctest --doctest-extension=.rst README.rst tests docs/source pyexcel_io && flake8 . --exclude=.moban.d --builtins=unicode,xrange,long
|
nosetests --with-coverage --cover-package pyexcel_io --cover-package tests --with-doctest --doctest-extension=.rst README.rst tests docs/source pyexcel_io && flake8 . --exclude=.moban.d --builtins=unicode,xrange,long
|
||||||
|
|
Loading…
Reference in New Issue