🔥 remove travis build from ci. credit goes to #234
This commit is contained in:
parent
ebb9c2f8f2
commit
661d4f0b48
|
@ -4,6 +4,5 @@ With your PR, here is a check list:
|
||||||
- [ ] Has all code lines tested?
|
- [ ] Has all code lines tested?
|
||||||
- [ ] Has `make format` been run?
|
- [ ] Has `make format` been run?
|
||||||
- [ ] Please update CHANGELOG.yml(not CHANGELOG.rst)
|
- [ ] Please update CHANGELOG.yml(not CHANGELOG.rst)
|
||||||
- [ ] Passes all Travis CI builds
|
|
||||||
- [ ] Has fair amount of documentation if your change is complex
|
- [ ] Has fair amount of documentation if your change is complex
|
||||||
- [ ] Agree on NEW BSD License for your contribution
|
- [ ] Agree on NEW BSD License for your contribution
|
||||||
|
|
|
@ -0,0 +1,20 @@
|
||||||
|
name: lint
|
||||||
|
|
||||||
|
on: [push, pull_request]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
lint:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
name: lint code
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- name: Set up Python
|
||||||
|
uses: actions/setup-python@v1
|
||||||
|
with:
|
||||||
|
python-version: 3.8
|
||||||
|
- name: lint
|
||||||
|
run: |
|
||||||
|
pip install flake8
|
||||||
|
pip install -r tests/requirements.txt
|
||||||
|
flake8 --exclude=.moban.d,docs,setup.py --builtins=unicode,xrange,long .
|
||||||
|
python setup.py checkdocs
|
|
@ -0,0 +1,32 @@
|
||||||
|
name: run_tests
|
||||||
|
|
||||||
|
on: [push, pull_request]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
test:
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
python-version: [3.6, 3.7, 3.8, 3.9]
|
||||||
|
os: [macOs-latest, ubuntu-latest, windows-latest]
|
||||||
|
|
||||||
|
runs-on: ${{ matrix.os }}
|
||||||
|
name: run tests
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- name: Set up Python
|
||||||
|
uses: actions/setup-python@v1
|
||||||
|
with:
|
||||||
|
python-version: ${{ matrix.python-version }}
|
||||||
|
- name: install
|
||||||
|
run: |
|
||||||
|
pip install -r requirements.txt
|
||||||
|
pip install -r tests/requirements.txt
|
||||||
|
- name: test
|
||||||
|
run: |
|
||||||
|
pip freeze
|
||||||
|
nosetests --verbosity=3 --with-coverage --cover-package pyexcel_ods --cover-package tests tests --with-doctest --doctest-extension=.rst README.rst docs/source pyexcel_ods
|
||||||
|
- name: Upload coverage
|
||||||
|
uses: codecov/codecov-action@v1
|
||||||
|
with:
|
||||||
|
name: ${{ matrix.os }} Python ${{ matrix.python-version }}
|
|
@ -1,13 +0,0 @@
|
||||||
{% extends "travis.yml.jj2" %}
|
|
||||||
{%block extra_matrix %}
|
|
||||||
env:
|
|
||||||
- MINREQ=1
|
|
||||||
{%endblock%}
|
|
||||||
{%block custom_python_versions%}
|
|
||||||
python:
|
|
||||||
- 3.8
|
|
||||||
- 3.7
|
|
||||||
- 3.6
|
|
||||||
{%endblock%}
|
|
||||||
{%block pypi_deployment%}
|
|
||||||
{%endblock %}
|
|
|
@ -5,6 +5,5 @@ targets:
|
||||||
- README.rst: custom_README.rst.jj2
|
- README.rst: custom_README.rst.jj2
|
||||||
- setup.py: custom_setup.py.jj2
|
- setup.py: custom_setup.py.jj2
|
||||||
- "docs/source/conf.py": "docs/source/conf.py.jj2"
|
- "docs/source/conf.py": "docs/source/conf.py.jj2"
|
||||||
- .travis.yml: custom_travis.yml.jj2
|
|
||||||
- .gitignore: gitignore.jj2
|
- .gitignore: gitignore.jj2
|
||||||
- MANIFEST.in: MANIFEST.in.jj2
|
- MANIFEST.in: MANIFEST.in.jj2
|
||||||
|
|
56
.travis.yml
56
.travis.yml
|
@ -1,56 +0,0 @@
|
||||||
sudo: false
|
|
||||||
dist: xenial
|
|
||||||
language: python
|
|
||||||
notifications:
|
|
||||||
email: false
|
|
||||||
python:
|
|
||||||
- 3.8
|
|
||||||
- 3.7
|
|
||||||
- 3.6
|
|
||||||
env:
|
|
||||||
- MINREQ=1
|
|
||||||
|
|
||||||
stages:
|
|
||||||
- lint
|
|
||||||
- moban
|
|
||||||
- test
|
|
||||||
|
|
||||||
|
|
||||||
.lint: &lint
|
|
||||||
git:
|
|
||||||
submodules: false
|
|
||||||
python: 3.6
|
|
||||||
env:
|
|
||||||
- MINREQ=0
|
|
||||||
stage: lint
|
|
||||||
script: make lint
|
|
||||||
|
|
||||||
.moban: &moban
|
|
||||||
python: 3.6
|
|
||||||
env:
|
|
||||||
- MINREQ=0
|
|
||||||
stage: moban
|
|
||||||
install: pip install moban gitfs2 pypifs moban-jinja2-github moban-ansible
|
|
||||||
script:
|
|
||||||
- moban
|
|
||||||
- git diff --exit-code
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
include:
|
|
||||||
- *moban
|
|
||||||
- *lint
|
|
||||||
|
|
||||||
stage: test
|
|
||||||
|
|
||||||
before_install:
|
|
||||||
- if [[ -f min_requirements.txt && "$MINREQ" -eq 1 ]]; then
|
|
||||||
mv min_requirements.txt requirements.txt ;
|
|
||||||
fi
|
|
||||||
- test ! -f rnd_requirements.txt ||
|
|
||||||
pip install --no-deps -r rnd_requirements.txt
|
|
||||||
- test ! -f rnd_requirements.txt || pip install -r rnd_requirements.txt ;
|
|
||||||
- pip install -r tests/requirements.txt
|
|
||||||
script:
|
|
||||||
- make test
|
|
||||||
after_success:
|
|
||||||
codecov
|
|
10
README.rst
10
README.rst
|
@ -5,11 +5,11 @@ pyexcel-ods - Let you focus on data, instead of ods format
|
||||||
.. image:: https://raw.githubusercontent.com/pyexcel/pyexcel.github.io/master/images/patreon.png
|
.. image:: https://raw.githubusercontent.com/pyexcel/pyexcel.github.io/master/images/patreon.png
|
||||||
:target: https://www.patreon.com/chfw
|
:target: https://www.patreon.com/chfw
|
||||||
|
|
||||||
.. image:: https://cdn.rawgit.com/sindresorhus/awesome/d7305f38d29fed78fa85652e3a63e154dd8e8829/media/badge.svg
|
.. image:: https://raw.githubusercontent.com/pyexcel/pyexcel-mobans/master/images/awesome-badge.svg
|
||||||
:target: https://awesome-python.com/#specific-formats-processing
|
:target: https://awesome-python.com/#specific-formats-processing
|
||||||
|
|
||||||
.. image:: https://travis-ci.org/pyexcel/pyexcel-ods.svg?branch=master
|
.. image:: https://github.com/pyexcel/pyexcel-ods/workflows/run_tests/badge.svg
|
||||||
:target: http://travis-ci.org/pyexcel/pyexcel-ods
|
:target: http://github.com/pyexcel/pyexcel-ods/actions
|
||||||
|
|
||||||
.. image:: https://codecov.io/gh/pyexcel/pyexcel-ods/branch/master/graph/badge.svg
|
.. image:: https://codecov.io/gh/pyexcel/pyexcel-ods/branch/master/graph/badge.svg
|
||||||
:target: https://codecov.io/gh/pyexcel/pyexcel-ods
|
:target: https://codecov.io/gh/pyexcel/pyexcel-ods
|
||||||
|
@ -19,7 +19,7 @@ pyexcel-ods - Let you focus on data, instead of ods format
|
||||||
|
|
||||||
|
|
||||||
.. image:: https://pepy.tech/badge/pyexcel-ods/month
|
.. image:: https://pepy.tech/badge/pyexcel-ods/month
|
||||||
:target: https://pepy.tech/project/pyexcel-ods/month
|
:target: https://pepy.tech/project/pyexcel-ods
|
||||||
|
|
||||||
|
|
||||||
.. image:: https://img.shields.io/gitter/room/gitterHQ/gitter.svg
|
.. image:: https://img.shields.io/gitter/room/gitterHQ/gitter.svg
|
||||||
|
@ -61,6 +61,8 @@ Known constraints
|
||||||
|
|
||||||
Fonts, colors and charts are not supported.
|
Fonts, colors and charts are not supported.
|
||||||
|
|
||||||
|
Nor to read password protected xls, xlsx and ods files.
|
||||||
|
|
||||||
Installation
|
Installation
|
||||||
================================================================================
|
================================================================================
|
||||||
|
|
||||||
|
|
|
@ -23,7 +23,7 @@ DESCRIPTION = (
|
||||||
|
|
||||||
project = 'pyexcel-ods'
|
project = 'pyexcel-ods'
|
||||||
copyright = '2015-2020 Onni Software Ltd.'
|
copyright = '2015-2020 Onni Software Ltd.'
|
||||||
author = 'chfw'
|
author = 'C.W.'
|
||||||
# The short X.Y version
|
# The short X.Y version
|
||||||
version = '0.6.0'
|
version = '0.6.0'
|
||||||
# The full version, including alpha/beta/rc tags
|
# The full version, including alpha/beta/rc tags
|
||||||
|
|
2
lint.sh
2
lint.sh
|
@ -1,2 +1,2 @@
|
||||||
pip install flake8
|
pip install flake8
|
||||||
flake8 --exclude=.moban.d,docs,setup.py --builtins=unicode,xrange,long . && python setup.py checkdocs
|
flake8 --exclude=.moban.d,docs,setup.py --builtins=unicode,xrange,long . && python setup.py checkdocs
|
8
setup.py
8
setup.py
|
@ -28,7 +28,7 @@ except (ValueError, UnicodeError, locale.Error):
|
||||||
locale.setlocale(locale.LC_ALL, "en_US.UTF-8")
|
locale.setlocale(locale.LC_ALL, "en_US.UTF-8")
|
||||||
|
|
||||||
NAME = "pyexcel-ods"
|
NAME = "pyexcel-ods"
|
||||||
AUTHOR = "chfw"
|
AUTHOR = "C.W."
|
||||||
VERSION = "0.6.0"
|
VERSION = "0.6.0"
|
||||||
EMAIL = "info@pyexcel.org"
|
EMAIL = "info@pyexcel.org"
|
||||||
LICENSE = "New BSD"
|
LICENSE = "New BSD"
|
||||||
|
@ -70,13 +70,14 @@ EXTRAS_REQUIRE = {
|
||||||
}
|
}
|
||||||
# You do not need to read beyond this line
|
# You do not need to read beyond this line
|
||||||
PUBLISH_COMMAND = "{0} setup.py sdist bdist_wheel upload -r pypi".format(sys.executable)
|
PUBLISH_COMMAND = "{0} setup.py sdist bdist_wheel upload -r pypi".format(sys.executable)
|
||||||
GS_COMMAND = ("gs pyexcel-ods v0.6.0 " +
|
HERE = os.path.abspath(os.path.dirname(__file__))
|
||||||
|
|
||||||
|
GS_COMMAND = ("gease pyexcel-ods v0.6.0 " +
|
||||||
"Find 0.6.0 in changelog for more details")
|
"Find 0.6.0 in changelog for more details")
|
||||||
NO_GS_MESSAGE = ("Automatic github release is disabled. " +
|
NO_GS_MESSAGE = ("Automatic github release is disabled. " +
|
||||||
"Please install gease to enable it.")
|
"Please install gease to enable it.")
|
||||||
UPLOAD_FAILED_MSG = (
|
UPLOAD_FAILED_MSG = (
|
||||||
'Upload failed. please run "%s" yourself.' % PUBLISH_COMMAND)
|
'Upload failed. please run "%s" yourself.' % PUBLISH_COMMAND)
|
||||||
HERE = os.path.abspath(os.path.dirname(__file__))
|
|
||||||
|
|
||||||
|
|
||||||
class PublishCommand(Command):
|
class PublishCommand(Command):
|
||||||
|
@ -122,7 +123,6 @@ SETUP_COMMANDS.update({
|
||||||
"publish": PublishCommand
|
"publish": PublishCommand
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
def has_gease():
|
def has_gease():
|
||||||
"""
|
"""
|
||||||
test if github release command is installed
|
test if github release command is installed
|
||||||
|
|
Loading…
Reference in New Issue