Skip to content

Commit 01df535

Browse files
committed
(deps): add testing dependencies: django, pytest, etc
- had to pin to python^3.5 as it's the common denominator between deps - add .python-version file to use python3.7 w/ pyenv for this project - will have to include python^2.7 again in order to publish a universal wheel compatible with 2.7 as the poetry python dep is used for both deps and publishing - will also have to add dep versions against python 2.7 in order to test against it and lower Django versions - either in Poetry itself or with something like Tox? - gitignore poetry.lock bc multiple pythons and dep versions
1 parent 3431f75 commit 01df535

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# we use multiple versions of Python and deps, so lockfile doesn't quite fit
2+
# may add it back in later once Poetry usage stabilizes
3+
poetry.lock
14

25
# Created by https://www.gitignore.io/api/python
36

.python-version

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.7.4

pyproject.toml

+5-1
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,13 @@ keywords=[
6464
"Tracker" = "https://github.com/agilgur5/django-serializable-model/issues"
6565

6666
[tool.poetry.dependencies]
67-
python = "^2.7 || ^3"
67+
python = "^3.5"
6868

6969
[tool.poetry.dev-dependencies]
70+
django = "^2.2"
71+
pytest = "^5.1"
72+
pytest-django = "^3.5"
73+
pytest-cov = "^2.7"
7074

7175
[build-system]
7276
requires = ["poetry>=0.12"]

0 commit comments

Comments
 (0)