Skip to content

Commit

Permalink
Release 0.2.0 (#8)
Browse files Browse the repository at this point in the history
* Add support for custom constructors

* Complete imports

* Complete 'Travis CI' configurations

* Complete 'Azure Pipelines' configurations

* Complete badges

* Complete tests configurations

* Complete tests configurations file

* Update tests dependencies

* Complete tests utilities

* Complete strategies

* Bump version: 0.1.1 → 0.2.0-alpha

* Complete strategies

* Complete strategies

* Complete 'generate_repr' function

* Complete strategies

* Bump version: 0.2.0-alpha → 0.2.0

* Complete '.gitignore'

* Complete line endings

* Complete file mode

* Add docs

* Complete docstring for 'generate_repr' function
  • Loading branch information
lycantropos committed Feb 4, 2020
1 parent f64ca47 commit 5adbf3f
Show file tree
Hide file tree
Showing 28 changed files with 788 additions and 365 deletions.
167 changes: 90 additions & 77 deletions .azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -1,77 +1,90 @@
jobs:
- job: 'Windows'
pool:
vmImage: 'vs2017-win2016'
strategy:
matrix:
Python35_x86:
python.version: '3.5'
python.architecture: 'x86'
Python35_x64:
python.version: '3.5'
python.architecture: 'x64'
Python36_x86:
python.version: '3.6'
python.architecture: 'x86'
Python36_x64:
python.version: '3.6'
python.architecture: 'x64'
Python37_x86:
python.version: '3.7'
python.architecture: 'x86'
Python37_x64:
python.version: '3.7'
python.architecture: 'x64'
maxParallel: 6

steps:
- task: UsePythonVersion@0
inputs:
versionSpec: '$(python.version)'
architecture: '$(python.architecture)'
- script: python -m pip install --upgrade pip setuptools
displayName: 'Install packaging tools'
- script: python -m pip install --upgrade codecov
displayName: 'Install codecov'
- script: python -m pip install --force-reinstall -r requirements-tests.txt
displayName: 'Install tests requirements'
- script: pytest
displayName: 'Run tests'
- script: python -m codecov -f coverage.xml -X gcov
condition: succeeded()
displayName: 'Upload coverage'
env:
CODECOV_TOKEN: $(CODECOV_TOKEN)

- job: 'MacOS'
pool:
vmImage: 'macOS-10.13'
strategy:
matrix:
Python35:
python.version: '3.5'
Python36:
python.version: '3.6'
Python37:
python.version: '3.7'
PyPy3:
python.version: 'pypy3'
maxParallel: 4

steps:
- task: UsePythonVersion@0
inputs:
versionSpec: '$(python.version)'
- script: python -m pip install --upgrade pip setuptools
displayName: 'Install packaging tools'
- script: python -m pip install --upgrade codecov
displayName: 'Install codecov'
- script: python -m pip install --force-reinstall -r requirements-tests.txt
displayName: 'Install tests requirements'
- script: pytest
displayName: 'Run tests'
- script: python -m codecov -f coverage.xml -X gcov
condition: succeeded()
displayName: 'Upload coverage'
env:
CODECOV_TOKEN: $(CODECOV_TOKEN)
jobs:
- job: 'Windows'
pool:
vmImage: 'windows-latest'
strategy:
matrix:
Python35_x86:
python.version: '3.5'
python.architecture: 'x86'
Python35_x64:
python.version: '3.5'
python.architecture: 'x64'
Python36_x86:
python.version: '3.6'
python.architecture: 'x86'
Python36_x64:
python.version: '3.6'
python.architecture: 'x64'
Python37_x86:
python.version: '3.7'
python.architecture: 'x86'
Python37_x64:
python.version: '3.7'
python.architecture: 'x64'
Python38_x86:
python.version: '3.8'
python.architecture: 'x86'
Python38_x64:
python.version: '3.8'
python.architecture: 'x64'
PyPy3:
python.version: 'pypy3'
python.architecture: 'x86'

steps:
- task: UsePythonVersion@0
inputs:
versionSpec: '$(python.version)'
architecture: '$(python.architecture)'
- script: python -m pip install --upgrade pip setuptools
displayName: 'Install packaging tools'
- script: python -m pip install --upgrade codecov
displayName: 'Install codecov'
- script: python -m pip install --force-reinstall -r requirements-tests.txt
displayName: 'Install tests requirements'
- script: pytest
displayName: 'Run tests'
- script: python -m doctest README.md
displayName: 'Run doctests'
- script: python -m codecov -f coverage.xml -X gcov
condition: succeeded()
displayName: 'Upload coverage'
env:
CODECOV_TOKEN: $(CODECOV_TOKEN)

- job: 'MacOS'
pool:
vmImage: 'macOS-10.13'
strategy:
matrix:
Python35:
python.version: '3.5'
Python36:
python.version: '3.6'
Python37:
python.version: '3.7'
Python38:
python.version: '3.8'
PyPy3:
python.version: 'pypy3'

steps:
- task: UsePythonVersion@0
inputs:
versionSpec: '$(python.version)'
- script: python -m pip install --upgrade pip setuptools
displayName: 'Install packaging tools'
- script: python -m pip install --upgrade codecov
displayName: 'Install codecov'
- script: python -m pip install --force-reinstall -r requirements-tests.txt
displayName: 'Install tests requirements'
- script: pytest
displayName: 'Run tests'
- script: python -m doctest README.md
displayName: 'Run doctests'
- script: python -m codecov -f coverage.xml -X gcov
condition: succeeded()
displayName: 'Upload coverage'
env:
CODECOV_TOKEN: $(CODECOV_TOKEN)
40 changes: 20 additions & 20 deletions .bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
[bumpversion]
current_version = 0.1.1
commit = True
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)(-(?P<release>.*))?
serialize =
{major}.{minor}.{patch}-{release}
{major}.{minor}.{patch}

[bumpversion:part:release]
optional_value = beta
values =
alpha
beta

[bumpversion:file:docker-compose.cpython.yml]

[bumpversion:file:docker-compose.pypy.yml]

[bumpversion:file:reprit/__init__.py]

[bumpversion]
current_version = 0.2.0
commit = True
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)(-(?P<release>.*))?
serialize =
{major}.{minor}.{patch}-{release}
{major}.{minor}.{patch}

[bumpversion:part:release]
optional_value = beta
values =
alpha
beta

[bumpversion:file:docker-compose.cpython.yml]

[bumpversion:file:docker-compose.pypy.yml]

[bumpversion:file:reprit/__init__.py]

10 changes: 4 additions & 6 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,18 +1,13 @@
### IntelliJ
.idea/

### Python
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class

# C extensions
*.so

# Distribution / packaging
.Python
build/
_build/
develop-eggs/
dist/
downloads/
Expand Down Expand Up @@ -46,3 +41,6 @@ venv*/

# mypy
.mypy_cache/

### JetBrains
.idea/
17 changes: 13 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
sudo: false
distro: trusty
dist: xenial

language: python

Expand All @@ -10,8 +9,7 @@ matrix:
- python: 3.5
- python: 3.6
- python: 3.7
dist: xenial
sudo: true
- python: 3.8

install:
- python -m pip install --upgrade pip setuptools
Expand All @@ -24,3 +22,14 @@ script:

after_success:
- python -m codecov -f coverage.xml -X gcov

deploy:
provider: pypi
on:
branch: master
python: 3.5
user: __token__
password:
secure: Z5rpoRQzlKu+2XPpsI5td9ZHCkAFLKeYgmp2BiOTJLaY8yq9luF41HEcON8xxnEFZdEgPybR17eGWhF+reyPRVnWpY7V2i8qNeTEk991L0GH6zEQQMyQllfYqTam2sVe9hviV+kkr4RK9PwjAWAWiLjfwT9TQGoPVz63R74v3aDYeyJLF0/azfPwfCAaiOBioYc5HLvIO81c+wGrzdxCECWVQWs/OAhTPLlVdjEWLrZUkL7PWDQQbyxo4N05+eC7Obj3b+SXkGFrMnk1jw9uRTnNZglNqJ372drNSH4b/d10pqkkfECWClS0BI6/BzeUVirXB3prKhTDtSnEF7RKiyRMyDcw+TWSJLFU7a2VOsP4lkHDPWpCed80SyUAeIwF0V3dzwADk2KWvjgGTCGUOfWweVh6q1pxGxwbXWdsS91Gp+jPDF2BxdxlDyH0stZnrloCOJQCJmaBCNE5qgoU/sDik0+W2EgcBE7Qo7/6OMEr5Ruus+hTWudlIlzv3UrBsNMM1tTRGvfMz/9lwoPCK6DkvHLiY91kLql8CGGFeS9g/2QJudGKG8DKNqUJzv//ORPdYFwnfRrIQBdOhfgTBs4un7CLeiIq87BMlprHHGGkYOWe5uoTiuQk4rAK0lVCsjU8EoMMasMwL0YN6DCoG43rl5q16tvwhbIzMOfJaLM=
distributions: sdist bdist_wheel
skip_existing: true
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ COPY tests/ tests/
COPY README.md .
COPY requirements-tests.txt .
COPY setup.py .
COPY setup.cfg .
COPY pytest.ini .

RUN pip install --force-reinstall -r requirements-tests.txt
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ reprit
======

[![](https://travis-ci.com/lycantropos/reprit.svg?branch=master)](https://travis-ci.com/lycantropos/reprit "Travis CI")
[![](https://dev.azure.com/lycantropos/reprit/_apis/build/status/lycantropos.reprit?branchName=master)](https://dev.azure.com/lycantropos/reprit/_build/latest?branchName=master "Azure Pipelines")
[![](https://dev.azure.com/lycantropos/reprit/_apis/build/status/lycantropos.reprit?branchName=master)](https://dev.azure.com/lycantropos/reprit/_build/latest?definitionId=13&branchName=master "Azure Pipelines")
[![](https://codecov.io/gh/lycantropos/reprit/branch/master/graph/badge.svg)](https://codecov.io/gh/lycantropos/reprit "Codecov")
[![](https://img.shields.io/github/license/lycantropos/reprit.svg)](https://github.com/lycantropos/reprit/blob/master/LICENSE "License")
[![](https://badge.fury.io/py/reprit.svg)](https://badge.fury.io/py/reprit "PyPI")
Expand Down
36 changes: 18 additions & 18 deletions docker-compose.cpython.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
version: '3'

services:
reprit-cpython:
build:
context: .
args:
- PYTHON_IMAGE=${CPYTHON_IMAGE_NAME}
- PYTHON_IMAGE_VERSION=${CPYTHON_IMAGE_VERSION}
image: lycantropos/reprit-cpython:0.1.1
volumes:
- ./reprit/:/opt/reprit/reprit/
- ./tests/:/opt/reprit/tests/
- ./README.md:/opt/reprit/README.md
- ./requirements-tests.txt:/opt/reprit/requirements-tests.txt
- ./setup.py:/opt/reprit/setup.py
- ./setup.cfg:/opt/reprit/setup.cfg
entrypoint: pytest
version: '3'

services:
reprit-cpython:
build:
context: .
args:
- PYTHON_IMAGE=${CPYTHON_IMAGE_NAME}
- PYTHON_IMAGE_VERSION=${CPYTHON_IMAGE_VERSION}
image: lycantropos/reprit-cpython:0.2.0
volumes:
- ./reprit/:/opt/reprit/reprit/
- ./tests/:/opt/reprit/tests/
- ./README.md:/opt/reprit/README.md
- ./requirements-tests.txt:/opt/reprit/requirements-tests.txt
- ./setup.py:/opt/reprit/setup.py
- ./pytest.ini:/opt/reprit/pytest.ini
entrypoint: pytest
36 changes: 18 additions & 18 deletions docker-compose.pypy.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
version: '3'

services:
reprit-pypy:
build:
context: .
args:
- PYTHON_IMAGE=${PYPY_IMAGE_NAME}
- PYTHON_IMAGE_VERSION=${PYPY_IMAGE_VERSION}
image: lycantropos/reprit-pypy:0.1.1
volumes:
- ./reprit/:/opt/reprit/reprit/
- ./tests/:/opt/reprit/tests/
- ./README.md:/opt/reprit/README.md
- ./requirements-tests.txt:/opt/reprit/requirements-tests.txt
- ./setup.py:/opt/reprit/setup.py
- ./setup.cfg:/opt/reprit/setup.cfg
entrypoint: pytest
version: '3'

services:
reprit-pypy:
build:
context: .
args:
- PYTHON_IMAGE=${PYPY_IMAGE_NAME}
- PYTHON_IMAGE_VERSION=${PYPY_IMAGE_VERSION}
image: lycantropos/reprit-pypy:0.2.0
volumes:
- ./reprit/:/opt/reprit/reprit/
- ./tests/:/opt/reprit/tests/
- ./README.md:/opt/reprit/README.md
- ./requirements-tests.txt:/opt/reprit/requirements-tests.txt
- ./setup.py:/opt/reprit/setup.py
- ./pytest.ini:/opt/reprit/pytest.ini
entrypoint: pytest
19 changes: 19 additions & 0 deletions docs/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Minimal makefile for Sphinx documentation
#

# You can set these variables from the command line.
SPHINXOPTS =
SPHINXBUILD = sphinx-build
SOURCEDIR = .
BUILDDIR = _build

# Put it first so that "make" without argument is like "make help".
help:
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)

.PHONY: help Makefile

# Catch-all target: route all unknown targets to Sphinx using the new
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
%: Makefile
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)

0 comments on commit 5adbf3f

Please sign in to comment.