Skip to content

Commit

Permalink
Release 0.3.1 (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
lycantropos committed Nov 21, 2020
1 parent dc8a9a4 commit c0c62eb
Show file tree
Hide file tree
Showing 7 changed files with 157 additions and 165 deletions.
226 changes: 139 additions & 87 deletions .azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -1,90 +1,142 @@
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'
trigger:
branches:
include:
- '*'
tags:
include:
- 'v*'

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)
strategy:
matrix:
MacOs CPython3.5:
image: 'macos-latest'
python.version: '3.5'
python.architecture: 'x64'
MacOs CPython3.6:
image: 'macos-latest'
python.version: '3.6'
python.architecture: 'x64'
MacOs CPython3.7:
image: 'macos-latest'
python.version: '3.7'
python.architecture: 'x64'
MacOs CPython3.8:
image: 'macos-latest'
python.version: '3.8'
python.architecture: 'x64'
MacOs CPython3.9:
image: 'macos-latest'
python.version: '3.9'
python.architecture: 'x64'
MacOs PyPy3:
image: 'macos-latest'
python.version: 'pypy3'
python.architecture: 'x64'
Ubuntu CPython3.5:
image: 'ubuntu-latest'
python.version: '3.5'
python.architecture: 'x64'
Ubuntu CPython3.6:
image: 'ubuntu-latest'
python.version: '3.6'
python.architecture: 'x64'
Ubuntu CPython3.7:
image: 'ubuntu-latest'
python.version: '3.7'
python.architecture: 'x64'
Ubuntu CPython3.8:
image: 'ubuntu-latest'
python.version: '3.8'
python.architecture: 'x64'
Ubuntu CPython3.9:
image: 'ubuntu-latest'
python.version: '3.9'
python.architecture: 'x64'
Ubuntu PyPy3:
image: 'ubuntu-latest'
python.version: 'pypy3'
python.architecture: 'x64'
Windows CPython3.5 (x86):
image: 'windows-latest'
python.version: '3.5'
python.architecture: 'x86'
Windows CPython3.5 (x64):
image: 'windows-latest'
python.version: '3.5'
python.architecture: 'x64'
Windows CPython3.6 (x86):
image: 'windows-latest'
python.version: '3.6'
python.architecture: 'x86'
Windows CPython3.6 (x64):
image: 'windows-latest'
python.version: '3.6'
python.architecture: 'x64'
Windows CPython3.7 (x86):
image: 'windows-latest'
python.version: '3.7'
python.architecture: 'x86'
Windows CPython3.7 (x64):
image: 'windows-latest'
python.version: '3.7'
python.architecture: 'x64'
Windows CPython3.8 (x86):
image: 'windows-latest'
python.version: '3.8'
python.architecture: 'x86'
Windows CPython3.8 (x64):
image: 'windows-latest'
python.version: '3.8'
python.architecture: 'x64'
Windows CPython3.9 (x86):
image: 'windows-latest'
python.version: '3.9'
python.architecture: 'x86'
Windows CPython3.9 (x64):
image: 'windows-latest'
python.version: '3.9'
python.architecture: 'x64'
Windows PyPy3:
image: 'windows-latest'
python.version: 'pypy3'
python.architecture: 'x86'

- job: 'MacOS'
pool:
vmImage: 'macOS-latest'
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'
pool:
vmImage: $(image)

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)
steps:
- task: UsePythonVersion@0
inputs:
versionSpec: '$(python.version)'
architecture: '$(python.architecture)'
- script: python -m doctest README.md
displayName: 'Run doctests'
- script: python -m pip install --upgrade pip setuptools
displayName: 'Install packaging tools'
- script: python -m pip install -r requirements-tests.txt
displayName: 'Install tests dependencies'
- script: pytest
displayName: 'Run tests'
- script: python -m pip install --upgrade codecov
condition: succeeded()
displayName: 'Install coverage dependencies'
- script: python -m codecov -f coverage.xml -X gcov
condition: succeeded()
displayName: 'Upload coverage'
env:
CODECOV_TOKEN: $(CODECOV_TOKEN)
- script: python -m pip install --upgrade wheel
condition: and(succeeded(), eq(variables['python.version'], '3.5'), startsWith(variables['Build.SourceBranch'], 'refs/tags/'))
displayName: 'Install build dependencies'
- script: python setup.py sdist bdist_wheel
condition: and(succeeded(), eq(variables['python.version'], '3.5'), startsWith(variables['Build.SourceBranch'], 'refs/tags/'))
displayName: 'Build'
- script: python -m pip install --upgrade twine
condition: and(succeeded(), eq(variables['python.version'], '3.5'), startsWith(variables['Build.SourceBranch'], 'refs/tags/'))
displayName: 'Install deploy dependencies'
- script: twine upload --skip-existing dist/*
condition: and(succeeded(), eq(variables['python.version'], '3.5'), startsWith(variables['Build.SourceBranch'], 'refs/tags/'))
displayName: 'Deploy'
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: $(TWINE_PASSWORD)
2 changes: 1 addition & 1 deletion .bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[bumpversion]
current_version = 0.3.0
current_version = 0.3.1
commit = True
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)(-(?P<release>.*))?
serialize =
Expand Down
36 changes: 0 additions & 36 deletions .travis.yml

This file was deleted.

52 changes: 14 additions & 38 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,43 +1,29 @@
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?definitionId=13&branchName=master "Azure Pipelines")
[![](https://readthedocs.org/projects/reprit/badge/?version=latest)](https://reprit.readthedocs.io/en/latest "Documentation")
[![](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")

In what follows
- `python` is an alias for `python3.5` or any later
version (`python3.6` and so on),
- `pypy` is an alias for `pypy3.5` or any later
version (`pypy3.6` and so on).
In what follows `python` is an alias for `python3.5` or `pypy3.5` or any later
version (`python3.6` and `pypy3.6` and so on).

Installation
------------

Install the latest `pip` & `setuptools` packages versions:
- with `CPython`
```bash
python -m pip install --upgrade pip setuptools
```
- with `PyPy`
```bash
pypy -m pip install --upgrade pip setuptools
```
```bash
python -m pip install --upgrade pip setuptools
```

### User

Download and install the latest stable version from `PyPI` repository:
- with `CPython`
```bash
python -m pip install --upgrade reprit
```
- with `PyPy`
```bash
pypy -m pip install --upgrade reprit
```
```bash
python -m pip install --upgrade reprit
```

### Developer

Expand All @@ -48,14 +34,9 @@ cd reprit
```

Install:
- with `CPython`
```bash
python setup.py install
```
- with `PyPy`
```bash
pypy setup.py install
```
```bash
python setup.py install
```

Usage
-----
Expand Down Expand Up @@ -164,14 +145,9 @@ This will set version to `major.minor.patch`.
### Running tests

Install dependencies:
- with `CPython`
```bash
python -m pip install --force-reinstall -r requirements-tests.txt
```
- with `PyPy`
```bash
pypy -m pip install --force-reinstall -r requirements-tests.txt
```
```bash
python -m pip install --force-reinstall -r requirements-tests.txt
```

Plain:
```bash
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.3.0
image: lycantropos/reprit-cpython:0.3.1
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.3.0
image: lycantropos/reprit-pypy:0.3.1
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.3.0'
__version__ = '0.3.1'

0 comments on commit c0c62eb

Please sign in to comment.