Skip to content

Commit

Permalink
Release 0.3.0 (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
lycantropos committed Oct 20, 2020
1 parent c34dc42 commit b64c2da
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 11 deletions.
3 changes: 1 addition & 2 deletions .bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[bumpversion]
current_version = 0.2.2
current_version = 0.3.0
commit = True
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)(-(?P<release>.*))?
serialize =
Expand All @@ -17,4 +17,3 @@ values =
[bumpversion:file:docker-compose.pypy.yml]

[bumpversion:file:reprit/__init__.py]

5 changes: 3 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ language: python

matrix:
include:
- python: pypy3.5-6.0.0
- python: pypy3.6-7.0.0
- python: pypy3.5-7.0.0
- python: pypy3.6-7.1.1
- python: 3.5
- python: 3.6
- python: 3.7
Expand All @@ -27,6 +27,7 @@ deploy:
provider: pypi
on:
branch: master
tags: true
python: 3.5
user: __token__
password:
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.cpython.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ services:
args:
- PYTHON_IMAGE=${CPYTHON_IMAGE_NAME}
- PYTHON_IMAGE_VERSION=${CPYTHON_IMAGE_VERSION}
image: lycantropos/reprit-cpython:0.2.2
image: lycantropos/reprit-cpython:0.3.0
volumes:
- ./reprit/:/opt/reprit/reprit/
- ./tests/:/opt/reprit/tests/
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.pypy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ services:
args:
- PYTHON_IMAGE=${PYPY_IMAGE_NAME}
- PYTHON_IMAGE_VERSION=${PYPY_IMAGE_VERSION}
image: lycantropos/reprit-pypy:0.2.2
image: lycantropos/reprit-pypy:0.3.0
volumes:
- ./reprit/:/opt/reprit/reprit/
- ./tests/:/opt/reprit/tests/
Expand Down
2 changes: 1 addition & 1 deletion reprit/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
"""Auto __repr__ method generation."""

__version__ = '0.2.2'
__version__ = '0.3.0'
3 changes: 2 additions & 1 deletion reprit/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,8 @@ def to_arguments_strings(object_: Domain) -> Iterable[str]:
# we don't want to exhaust iterator
yield '...'
else:
yield from map(to_positional_argument_string, field)
yield from map(to_positional_argument_string,
field() if callable(field) else field)
elif parameter.kind is _ParameterKind.KEYWORD_ONLY:
yield to_keyword_argument_string(parameter_name, field)
else:
Expand Down
6 changes: 3 additions & 3 deletions requirements-tests.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
hypothesis>=4.55.0
pytest>=5.2.0
pytest-cov>=2.8.1
hypothesis>=5.33.0
pytest>=6.1.1
pytest-cov>=2.10.1
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: Implementation :: CPython',
'Programming Language :: Python :: Implementation :: PyPy',
'Operating System :: POSIX',
Expand Down

0 comments on commit b64c2da

Please sign in to comment.