Skip to content

Commit

Permalink
Bump to 1.3.8 (#78)
Browse files Browse the repository at this point in the history
* Bump to 1.3.8

* Python 2.7 only
* No cythonize code
* CI optimizations
* fix IntEnum subclass
  • Loading branch information
penguinolog committed Sep 5, 2018
1 parent 93fd63a commit b6b4743
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 14 deletions.
64 changes: 52 additions & 12 deletions .travis.yml
@@ -1,50 +1,90 @@
sudo: false
language: python
os: linux
python:
- &main_python 2.7
- &pypy pypy
install:
- &upgrade_python_toolset pip install --upgrade pip setuptools wheel
- pip install tox-travis
- pip install tox
- pip install coveralls
script: tox
script: []
after_success:
- coveralls

jobs:
fast_finish: true
include:
- stage: test
name: "Python 2.7"
python: 2.7
script:
- tox -e py27
- stage: test
name: "PyPy"
python: pypy
script:
- tox -e pypy

- stage: Static analisys
name: "PyLint"
python: 2.7
services: []
install:
- *upgrade_python_toolset
- pip install tox
script:
- tox -e pylint
after_success: skip
- stage: Static analisys
name: "Bandit"
python: 2.7
services: []
install:
- *upgrade_python_toolset
- pip install tox
script:
- tox -e bandit
after_success: skip
- stage: Static analisys
python: 3.6
name: "MyPy"
python: 3.7
dist: xenial
sudo: true
services: []
install:
- *upgrade_python_toolset
- pip install tox
script:
- tox -e pylint,bandit,mypy
- tox -e mypy
after_success: skip

- stage: Code style check
python: *main_python
name: "PEP8"
python: 2.7
install:
- *upgrade_python_toolset
- pip install tox
script:
- tox -e pep8
after_success: skip
- stage: Code style check
name: "PEP257"
python: 2.7
install:
- *upgrade_python_toolset
- pip install tox
script:
- tox -e pep8,pep257
- tox -e pep257
after_success: skip

- stage: deploy
# This prevents job from appearing in test plan unless commit is tagged:
if: tag IS present
# Run on pypy to build not cythonized wheel
python: *pypy
python: pypy
services: []
install:
- *upgrade_python_toolset
script: []
before_deploy:
- pip install -r build_requirements.txt
script:
- python setup.py bdist_wheel
deploy:
- provider: pypi
Expand Down
2 changes: 1 addition & 1 deletion exec_helpers/__init__.py
Expand Up @@ -48,7 +48,7 @@
'ExecResult',
)

__version__ = '1.3.7'
__version__ = '1.3.8'
__author__ = "Alexey Stepanov"
__author_email__ = 'penguinolog@gmail.com'
__maintainers__ = {
Expand Down
2 changes: 1 addition & 1 deletion exec_helpers/proc_enums.py
Expand Up @@ -37,7 +37,7 @@


@enum.unique
class SigNum(enum.IntEnum):
class SigNum(int, enum.Enum):
"""Signal enumerators."""

SIGHUP = 1 # Hangup (POSIX).
Expand Down

0 comments on commit b6b4743

Please sign in to comment.