-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
130 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 --use-deprecated=legacy-resolver install flake8 | ||
pip --use-deprecated=legacy-resolver install -r tests/requirements.txt | ||
flake8 --exclude=.moban.d,docs,setup.py --builtins=unicode,xrange,long . | ||
python setup.py checkdocs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: Run unit tests on Windows, Ubuntu and Mac | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
|
||
test: | ||
name: ${{ matrix.os }} / ${{ matrix.python_version }} | ||
runs-on: ${{ matrix.os }}-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [Ubuntu] | ||
python_version: ["3.9.16"] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ matrix.python_version }} | ||
architecture: x64 | ||
|
||
- name: install | ||
run: | | ||
pip --use-deprecated=legacy-resolver install -r requirements.txt | ||
pip --use-deprecated=legacy-resolver install -r tests/requirements.txt | ||
- name: test | ||
run: | | ||
pip freeze | ||
nosetests --verbosity=3 --with-coverage --cover-package pyramid_excel --cover-package tests tests --with-doctest --doctest-extension=.rst README.rst docs/source pyramid_excel | ||
- name: Upload coverage | ||
uses: codecov/codecov-action@v1 | ||
with: | ||
name: ${{ matrix.os }} Python ${{ matrix.python-version }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# .readthedocs.yml | ||
# Read the Docs configuration file | ||
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details | ||
|
||
# Required | ||
version: 2 | ||
|
||
build: | ||
os: ubuntu-22.04 | ||
tools: | ||
python: "3.12" | ||
|
||
# Build documentation in the docs/ directory with Sphinx | ||
sphinx: | ||
configuration: docs/source/conf.py | ||
|
||
# Optionally build your docs in additional formats such as PDF | ||
formats: | ||
|
||
python: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,7 +31,7 @@ | |
locale.setlocale(locale.LC_ALL, "en_US.UTF-8") | ||
|
||
NAME = "pyramid-excel" | ||
AUTHOR = "chfw" | ||
AUTHOR = "C.W." | ||
VERSION = "0.0.5" | ||
EMAIL = "[email protected]" | ||
LICENSE = "New BSD" | ||
|
@@ -41,7 +41,7 @@ | |
) | ||
URL = "https://github.com/pyexcel-webwares/pyramid-excel" | ||
DOWNLOAD_URL = "%s/archive/0.0.5.tar.gz" % URL | ||
FILES = ["README.rst", "CHANGELOG.rst"] | ||
FILES = ["README.rst", "CONTRIBUTORS.rst", "CHANGELOG.rst"] | ||
KEYWORDS = [ | ||
"python", | ||
"API", | ||
|
@@ -76,6 +76,7 @@ | |
'Programming Language :: Python :: 3.3', | ||
'Programming Language :: Python :: 3.4', | ||
'Programming Language :: Python :: 3.5' | ||
|
||
] | ||
|
||
|
||
|
@@ -96,7 +97,7 @@ | |
PUBLISH_COMMAND = "{0} setup.py sdist bdist_wheel upload -r pypi".format(sys.executable) | ||
HERE = os.path.abspath(os.path.dirname(__file__)) | ||
|
||
GS_COMMAND = ("gs pyramid-excel v0.0.5 " + | ||
GS_COMMAND = ("gease pyramid-excel v0.0.5 " + | ||
"Find 0.0.5 in changelog for more details") | ||
NO_GS_MESSAGE = ("Automatic github release is disabled. " + | ||
"Please install gease to enable it.") | ||
|