Skip to content

Commit

Permalink
python_requires>3.5 (#106)
Browse files Browse the repository at this point in the history
  • Loading branch information
srz-zumix authored Jul 30, 2022
1 parent 4da1f49 commit 68221b1
Show file tree
Hide file tree
Showing 9 changed files with 37 additions and 6 deletions.
2 changes: 2 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -120,3 +120,5 @@ Zig:
- 'samples/command/src/zig/**/*'
CI:
- '.github/**/*'
documents:
- 'README.md'
7 changes: 7 additions & 0 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ categories:
labels:
- 'feature'
- 'enhancement'
- title: 'Dependency'
labels:
- 'dependency'
- title: 'Fixes'
labels:
- 'fix'
Expand Down Expand Up @@ -127,6 +130,9 @@ categories:
- title: 'Vim script'
labels:
- 'Vim script'
- title: 'Zig'
labels:
- 'Zig'
- title: 'Documentation'
labels:
- 'document'
Expand All @@ -147,6 +153,7 @@ version-resolver:
labels:
- 'feature'
- 'enhancement'
- 'dependency'
patch:
labels:
- 'fix'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/dispatch-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: Set up Python 3.7
uses: actions/setup-python@v3
with:
python-version: 3.7
python-version: "3.7"
- name: Init .pypirc
env:
PYPI_USERNAME: __token__
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,12 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.5, 3.6, 3.7, 3.8, 3.9]
python-version:
- "3.6"
- "3.7"
- "3.8"
- "3.9"
- "3.10"
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- name: Set up Python 3.7
uses: actions/setup-python@v3
with:
python-version: 3.7
python-version: "3.7"
- name: Init .pypirc
env:
PYPI_USERNAME: __token__
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: Compile each language tests
on:
pull_request:
# wandbox 側のエラー解消するまでコメントアウト
# pull_request:
push:
branches:
- master
Expand Down
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
, "Programming Language :: Python :: 3.7"
, "Programming Language :: Python :: 3.8"
, "Programming Language :: Python :: 3.9"
, "Programming Language :: Python :: 3.10"
]
, entry_points={
'console_scripts': [
Expand Down Expand Up @@ -113,5 +114,5 @@
, extras_require={
'test': test_deps
}
, python_requires=">3.4"
, python_requires=">3.5"
)
15 changes: 15 additions & 0 deletions tests/test_wandbox_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
from wandbox import __cxx__ as cxx
from wandbox import __go__ as go
from wandbox.__all__ import get_all_cli
from wandbox.utils import split_statements

try:
import unittest2 as unittest
Expand Down Expand Up @@ -192,6 +193,20 @@ def test_options_config(self):
self.assertEqual(cli.has_option, len(head['switches']) != 0, cli.language)


class test_wandbox_uitilities(wandbox_test_base):
def setUp(self):
pass

def tearDown(self):
pass

def test_split_statements(self):
statements = split_statements(". test.sh; source \"test data.sh\"")
self.assertEqual(2, len(statements))
self.assertEqual(". test.sh", statements[0])
self.assertEqual("source \'test data.sh\'", statements[1])


if __name__ == '__main__':
test_loader = unittest.defaultTestLoader
test_runner = unittest.TextTestRunner()
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
[tox]
envlist =
py35
py36
py37
py38
py39
py310
flake8
skipsdist=True
skip_missing_interpreters=True
Expand Down

0 comments on commit 68221b1

Please sign in to comment.