Skip to content

Commit 1af4a20

Browse files
committed
Version 0.5.0
CI/CD pipelines. Class decorator without __slots__ Docs.
1 parent 36300d2 commit 1af4a20

5 files changed

Lines changed: 46 additions & 14 deletions

File tree

.travis.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,24 @@ after_success:
1515
- coveralls
1616
before_deploy:
1717
- pip install -r requirements.txt
18+
deploy:
19+
- provider: pypi
20+
distributions: sdist bdist_wheel
21+
server: https://testpypi.python.org/pypi
22+
user: penguinolog
23+
password:
24+
secure: "KcyV4h89d6DHZWIWR9B+K7hqt/VRiQioLtKmvgpvg/Mdd6qkK7tNVZvh98cPAbs5ZYO6/7OKfi1Y0+bXmJpq02h/0RSR7KlkKGwQaxlM8S+dJ5AqgY8lAQzclWKXxGXctN1PfnpiyjLP+coFFPYtQm+CBF5a1BQkogoWdQjrua/MWJFAKbw2PfaMhjVQUQNMv/h6vjyKE50/whI+cvqOzqFvIjC2Rn8RnGfTkfOyp+rPNFogBjr8BlHgr/2w+8OBRRKJj2vlm8ixI/1LXGrCKNFw2VvxFONRhJkBPbA6guqupmO53SKJg/84qgULZwXsPzXnDGQAmT7+mMM+S7SXXMaLUbVAkcc2jzk4kjB2nhaV4O+pjJyd+NTVHl1zPGW63TrIw9ilYYDH4c0xLmjV+TLLU3HUFwKEqc7FgtcfMHmVyCIHxMtLhkwxD+xRDxdDYAxG/7WcMGzZbl1/CX4TpsO8OQuGziLPMtcRa2gWAlU0gyRxb2AjngDtl9nY2khzMDdtZl0dGOCtOAr9Mz1Z3UXzt6tix/gD0lB7y87NH1Ilr5pxD8JR5ji/TRS9aBpnvNrwCwJcCYGptpaTQqI3Hoqcguqjj3iqzrBrJ9fT34cm5jEA+qbpAcK2fSv+Pyed/YofRtuXXvgRSc2TpvNf5HOxd8srBOgSBkFLHPhglm4="
25+
on:
26+
python: 3.5
27+
tags: false
28+
skip_upload_docs: true
29+
# PyPI
30+
- provider: pypi
31+
distributions: sdist bdist_wheel
32+
user: penguinolog
33+
password:
34+
secure: "h1gXulNJxdjdUtPXDwUf/2MltjjiTy/cSsv+67Bxr9PAXSo9s0ynnhijKavE0QlKPr0NDJcEcl79dEN3gx1rkbAFZ+YRJfx0KHy26ImNAIx+npOFjGko87KhMNkrE3QBn9carWNnjYA4rCuUqbv/Znk9xixleE/sHJbKnkkTrerSI2jkznMa6h0FNVCEPzFesHmll7rBy4CjFkRcWNX8nfKNIV9rHFI7mXm8+jzl0msOnkEcKRqAk+MUwVjcD9XtpF42uA0nQTtqjWFdwSUxxBJKMyrkkI0o8Uk06EewkgJGwjGpvn+EUm1hBpjGrXUQQJyr20SZdC0CqaqXD/axISAtQPzP5I4Ey3VkLDV4mZuQjeNlbRbTH0Q7af+CpnOpFtYobIs1/HjB5wztazegT8uk4ZU/GheYqknXmtg9Ga8NV47sIpLC/hTLXWP+O/k0JKRYP9CgjTml2nLykNjZy4KRnlCUerYH8d4bNz687ElXU2bLtlBxyigUc9oo31DvNG+vB2axOp8wGiRTEpfBVPEF6EYUj+qSbX4ep4o/mWp+ax5YlLVYVoXkXpNecIggICAChIkqEl9MtGzTu31s3sBKpk9WuqoyHG80TDo2Tet6zWYx3itUx9M0SLkrML9Hs5WKsXDZE6jZrVHtx8lWuuZZl5JQkXYtd358lwJmEBM="
35+
on:
36+
python: 3.5
37+
tags: true
38+
skip_upload_docs: true

CHANGELOG.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
CHANGELOG
22
=========
3+
Version 0.5.0
4+
-------------
5+
CI/CD pipelines.
6+
Class decorator without __slots__
7+
Docs.
8+
39
Version 0.4.1
410
-------------
511
Initial documentation.

README.rst

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@ threaded
33

44
.. image:: https://travis-ci.org/penguinolog/threaded.svg?branch=master
55
:target: https://travis-ci.org/penguinolog/threaded
6+
.. image:: https://coveralls.io/repos/github/penguinolog/threaded/badge.svg?branch=master
7+
:target: https://coveralls.io/github/penguinolog/threaded?branch=master
8+
.. image:: https://readthedocs.org/projects/threaded/badge/?version=latest
9+
:target: http://threaded.readthedocs.io/
10+
:alt: Documentation Status
611
.. image:: https://img.shields.io/pypi/v/threaded.svg
712
:target: https://pypi.python.org/pypi/threaded
813
.. image:: https://img.shields.io/pypi/pyversions/threaded.svg
@@ -218,3 +223,15 @@ Test environments available:
218223
pypy
219224
pypy3
220225
pylint
226+
227+
CI systems
228+
==========
229+
For code checking several CI systems is used in parallel:
230+
231+
1. `Travis CI: <https://travis-ci.org/penguinolog/threaded>`_ is used for checking: PEP8, pylint, bandit, installation possibility and unit tests. Also it's publishes coverage on coveralls.
232+
233+
2. `coveralls: <https://coveralls.io/github/penguinolog/threaded>`_ is used for coverage display.
234+
235+
CD system
236+
=========
237+
`Travis CI: <https://travis-ci.org/penguinolog/threaded>`_ is used for package delivery on PyPI.

threaded/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,5 +49,5 @@
4949
'asynciotask'
5050
)
5151

52-
__version__ = '0.4.1'
52+
__version__ = '0.5.0'
5353
__author__ = "Alexey Stepanov <penguinolog@gmail.com>"

threaded/_class_decorator.py

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,7 @@
2525
PY34 = sys.version_info[:2] > (3, 3)
2626

2727

28-
class BaseDecorator(
29-
type.__new__(
30-
abc.ABCMeta,
31-
'BaseDecorator',
32-
(typing.Callable, ),
33-
{}
34-
)
35-
):
28+
class BaseDecorator(typing.Callable):
3629
"""Base class for decorators.
3730
3831
Implements wrapping and __call__, wrapper getter is abstract.
@@ -73,11 +66,6 @@ class BaseDecorator(
7366
False
7467
"""
7568

76-
__slots__ = (
77-
'__func',
78-
'__wrapped__',
79-
)
80-
8169
def __init__(self, func=None):
8270
"""Decorator.
8371

0 commit comments

Comments
 (0)