-
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.
- Loading branch information
1 parent
c0c62eb
commit ec27b43
Showing
26 changed files
with
280 additions
and
205 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
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
[run] | ||
source = reprit |
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 |
---|---|---|
|
@@ -44,3 +44,6 @@ venv*/ | |
|
||
### JetBrains | ||
.idea/ | ||
|
||
### MacOS | ||
.DS_Store |
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,17 +1,20 @@ | ||
ARG PYTHON_IMAGE | ||
ARG PYTHON_IMAGE_VERSION | ||
ARG IMAGE_NAME | ||
ARG IMAGE_VERSION | ||
|
||
FROM ${PYTHON_IMAGE}:${PYTHON_IMAGE_VERSION} | ||
FROM ${IMAGE_NAME}:${IMAGE_VERSION} | ||
|
||
RUN pip install --upgrade pip setuptools | ||
|
||
WORKDIR /opt/reprit | ||
|
||
COPY reprit/ reprit/ | ||
COPY tests/ tests/ | ||
COPY README.md . | ||
COPY requirements.txt . | ||
RUN pip install -r requirements.txt | ||
|
||
COPY requirements-tests.txt . | ||
COPY setup.py . | ||
COPY pytest.ini . | ||
RUN pip install -r requirements-tests.txt | ||
|
||
RUN pip install --force-reinstall -r requirements-tests.txt | ||
COPY README.md . | ||
COPY pytest.ini . | ||
COPY setup.py . | ||
COPY reprit reprit | ||
COPY tests tests |
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,19 @@ | ||
version: '3' | ||
|
||
services: | ||
reprit-cpython: | ||
build: | ||
context: . | ||
args: | ||
- PYTHON_IMAGE=${CPYTHON_IMAGE_NAME} | ||
- PYTHON_IMAGE_VERSION=${CPYTHON_IMAGE_VERSION} | ||
image: lycantropos/reprit-cpython:0.3.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 | ||
- ./pytest.ini:/opt/reprit/pytest.ini | ||
entrypoint: pytest | ||
version: '3' | ||
|
||
services: | ||
reprit-cpython: | ||
build: | ||
context: . | ||
args: | ||
- IMAGE_NAME=${CPYTHON_IMAGE_NAME} | ||
- IMAGE_VERSION=${CPYTHON_IMAGE_VERSION} | ||
image: lycantropos/reprit-cpython:0.4.0 | ||
volumes: | ||
- ./pytest.ini:/opt/reprit/pytest.ini | ||
- ./README.md:/opt/reprit/README.md | ||
- ./reprit:/opt/reprit/reprit | ||
- ./requirements-tests.txt:/opt/reprit/requirements-tests.txt | ||
- ./requirements.txt:/opt/reprit/requirements.txt | ||
- ./setup.py:/opt/reprit/setup.py | ||
- ./tests:/opt/reprit/tests | ||
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,19 @@ | ||
version: '3' | ||
|
||
services: | ||
reprit-pypy: | ||
build: | ||
context: . | ||
args: | ||
- PYTHON_IMAGE=${PYPY_IMAGE_NAME} | ||
- PYTHON_IMAGE_VERSION=${PYPY_IMAGE_VERSION} | ||
image: lycantropos/reprit-pypy:0.3.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 | ||
- ./pytest.ini:/opt/reprit/pytest.ini | ||
entrypoint: pytest | ||
version: '3' | ||
|
||
services: | ||
reprit-pypy: | ||
build: | ||
context: . | ||
args: | ||
- IMAGE_NAME=${PYPY_IMAGE_NAME} | ||
- IMAGE_VERSION=${PYPY_IMAGE_VERSION} | ||
image: lycantropos/reprit-pypy:0.4.0 | ||
volumes: | ||
- ./pytest.ini:/opt/reprit/pytest.ini | ||
- ./README.md:/opt/reprit/README.md | ||
- ./reprit:/opt/reprit/reprit | ||
- ./requirements-tests.txt:/opt/reprit/requirements-tests.txt | ||
- ./requirements.txt:/opt/reprit/requirements.txt | ||
- ./setup.py:/opt/reprit/setup.py | ||
- ./tests:/opt/reprit/tests | ||
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,9 +1,4 @@ | ||
[pytest] | ||
addopts = --verbose | ||
-vv | ||
-s | ||
--doctest-modules | ||
--hypothesis-profile=default | ||
--cov-report term | ||
--cov-report xml | ||
--cov=reprit |
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,3 +1,3 @@ | ||
"""Auto __repr__ method generation.""" | ||
|
||
__version__ = '0.3.1' | ||
__version__ = '0.4.0' |
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
Empty file.
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,8 @@ | ||
from typing import (Callable, | ||
TypeVar) | ||
|
||
Domain = TypeVar('Domain') | ||
Range = TypeVar('Range') | ||
Map = Callable[[Domain], Range] | ||
Constructor = Callable[..., Domain] | ||
Initializer = Callable[..., None] |
File renamed without changes.
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,11 +1,6 @@ | ||
from typing import (Any, | ||
Callable, | ||
TypeVar) | ||
Callable) | ||
|
||
Domain = TypeVar('Domain') | ||
Range = TypeVar('Range') | ||
Map = Callable[[Domain], Range] | ||
Operator = Map[Domain, Domain] | ||
Constructor = Callable[..., Domain] | ||
Initializer = Callable[..., None] | ||
FieldSeeker = Callable[[Domain, str], Any] | ||
from .core.hints import Domain as _Domain | ||
|
||
FieldSeeker = Callable[[_Domain, str], Any] |
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,3 +1,2 @@ | ||
hypothesis>=5.33.0 | ||
pytest>=6.1.1 | ||
pytest-cov>=2.10.1 | ||
pytest>=6.1.2 | ||
hypothesis>=5.33.2 |
Oops, something went wrong.