-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* 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
1 parent
f64ca47
commit 5adbf3f
Showing
28 changed files
with
788 additions
and
365 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
Oops, something went wrong.