Skip to content

Commit

Permalink
feat: support pypy interpreter #42
Browse files Browse the repository at this point in the history
  • Loading branch information
proofit404 committed Nov 20, 2020
1 parent 03ea123 commit bb454e7
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 2 deletions.
1 change: 1 addition & 0 deletions .python-version
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
3.7.9
3.8.6
3.9.0
pypy3.6-7.3.1
4 changes: 4 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ jobs:
inputs:
versionSpec: "3.9"
displayName: Install Python 3.9.
- task: UsePythonVersion@0
inputs:
versionSpec: pypy3
displayName: Install PyPy.
- task: NodeTool@0
inputs:
versionSpec: "12.x"
Expand Down
8 changes: 6 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ requires = ["poetry"]

[tool.poetry]
authors = ["Artem Malyshev <proofit404@gmail.com>"]
classifiers = [
"Python :: Implementation :: CPython",
"Python :: Implementation :: PyPy",
]
description = "Dependency Injection for Humans"
documentation = "https://proofit404.github.io/dependencies/"
homepage = "https://pypi.org/project/dependencies/"
Expand All @@ -18,8 +22,8 @@ repository = "https://github.com/proofit404/dependencies/"
version = "5.0.0"

[tool.poetry.dependencies]
python = "~3.7 || ~3.8 || ~3.9"
python = "~3.6 || ~3.7 || ~3.8 || ~3.9"

[tool.poetry.urls]
Changelog = "https://proofit404.github.io/dependencies/"
Changelog = "https://proofit404.github.io/dependencies/changelog/"
Issues = "https://github.com/proofit404/dependencies/issues"
13 changes: 13 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
[tox]
envlist =
py{37,38,39},
pypy3,
doctest,
configuration,
coverage,
Expand Down Expand Up @@ -36,6 +37,17 @@ deps =
commands =
coverage run -m pytest {env:CI_PYTEST_FLAGS:} {posargs}

[testenv:pypy3]
setenv =
PYTHONPATH = {toxinidir}/tests/helpers
deps =
coverage
pytest
pytest-randomly
pytest-timeout
commands =
coverage run -m pytest {env:CI_PYTEST_FLAGS:} {posargs}

[testenv:doctest]
basepython = python3.9
setenv =
Expand Down Expand Up @@ -69,6 +81,7 @@ commands =
coverage report --fail-under 99
depends =
py{37,38,39},
pypy3,
doctest,
configuration

Expand Down

0 comments on commit bb454e7

Please sign in to comment.