Skip to content

Commit 66be663

Browse files
committed
🤝 take latest code from setupmobans and release 0.5.2 🥚 🎡, which carries LICENSE file, pyexcel/pyexcel#103
1 parent 56fa0ac commit 66be663

File tree

7 files changed

+64
-16
lines changed

7 files changed

+64
-16
lines changed

CHANGELOG.rst

+9
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
11
Change log
22
================================================================================
33

4+
0.5.2 - 20.10.2017
5+
--------------------------------------------------------------------------------
6+
7+
added
8+
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
9+
10+
#. `#103 <https://github.com/pyexcel/pyexcel/issues/103>`_, include LICENSE file
11+
in MANIFEST.in, meaning LICENSE file will appear in the released tar ball.
12+
413
0.5.1 - 02.09.2017
514
--------------------------------------------------------------------------------
615

MANIFEST.in

+1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
include README.rst
2+
include LICENSE
23
include CHANGELOG.rst

docs/source/conf.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222

2323
project = u'pyexcel-io'
2424
copyright = u'2015-2017 Onni Software Ltd.'
25-
version = '0.5.1'
26-
release = '0.5.1'
25+
version = '0.5.2'
26+
release = '0.5.2'
2727
exclude_patterns = []
2828
pygments_style = 'sphinx'
2929
html_theme = 'default'

pyexcel_io.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
overrides: "pyexcel.yaml"
22
name: "pyexcel-io"
33
nick_name: io
4-
version: 0.5.1
5-
current_version: 0.5.1
6-
release: 0.5.1
4+
version: 0.5.2
5+
current_version: 0.5.2
6+
release: 0.5.2
77
dependencies:
88
- ordereddict;python_version<"2.7"
99
- lml==0.0.1

setup.py

+47-9
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,15 @@
1+
# Template by setupmobans
2+
import os
13
import codecs
2-
try:
3-
from setuptools import setup, find_packages
4-
except ImportError:
5-
from ez_setup import use_setuptools
6-
use_setuptools()
7-
from setuptools import setup, find_packages
4+
from shutil import rmtree
5+
from setuptools import setup, find_packages, Command
86
import sys
97
PY2 = sys.version_info[0] == 2
108
PY26 = PY2 and sys.version_info[1] < 7
119

1210
NAME = 'pyexcel-io'
1311
AUTHOR = 'C.W.'
14-
VERSION = '0.5.1'
12+
VERSION = '0.5.2'
1513
1614
LICENSE = 'New BSD'
1715
DESCRIPTION = (
@@ -20,7 +18,7 @@
2018
''
2119
)
2220
URL = 'https://github.com/pyexcel/pyexcel-io'
23-
DOWNLOAD_URL = '%s/archive/0.5.1.tar.gz' % URL
21+
DOWNLOAD_URL = '%s/archive/0.5.2.tar.gz' % URL
2422
FILES = ['README.rst', 'CHANGELOG.rst']
2523
KEYWORDS = [
2624
'API',
@@ -62,6 +60,42 @@
6260
'xlsx': ['pyexcel-xlsx>=0.5.0'],
6361
'ods': ['pyexcel-ods3>=0.5.0'],
6462
}
63+
PUBLISH_COMMAND = '{0} setup.py sdist bdist_wheel upload -r pypi'.format(
64+
sys.executable)
65+
GS_COMMAND = ('gs pyexcel-io v0.5.2 ' +
66+
"Find 0.5.2 in changelog for more details")
67+
here = os.path.abspath(os.path.dirname(__file__))
68+
69+
70+
class PublishCommand(Command):
71+
"""Support setup.py upload."""
72+
73+
description = 'Build and publish the package on github and pypi'
74+
user_options = []
75+
76+
@staticmethod
77+
def status(s):
78+
"""Prints things in bold."""
79+
print('\033[1m{0}\033[0m'.format(s))
80+
81+
def initialize_options(self):
82+
pass
83+
84+
def finalize_options(self):
85+
pass
86+
87+
def run(self):
88+
try:
89+
self.status('Removing previous builds…')
90+
rmtree(os.path.join(here, 'dist'))
91+
except OSError:
92+
pass
93+
94+
self.status('Building Source and Wheel (universal) distribution…')
95+
if os.system(GS_COMMAND) == 0:
96+
os.system(PUBLISH_COMMAND)
97+
98+
sys.exit()
6599

66100

67101
def read_files(*files):
@@ -123,5 +157,9 @@ def filter_out_test_code(file_handle):
123157
packages=PACKAGES,
124158
include_package_data=True,
125159
zip_safe=False,
126-
classifiers=CLASSIFIERS
160+
classifiers=CLASSIFIERS,
161+
setup_requires=['gease'],
162+
cmdclass={
163+
'publish': PublishCommand,
164+
}
127165
)

test.bat

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
pip freeze
2-
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
2+
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

test.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
pip freeze
2-
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
2+
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

0 commit comments

Comments
 (0)