Skip to content

Commit

Permalink
chore: fixed pyproject.toml #58
Browse files Browse the repository at this point in the history
  • Loading branch information
itisallgood committed Mar 23, 2020
1 parent 5181469 commit 2ee5c55
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 44 deletions.
13 changes: 7 additions & 6 deletions apps/core/tests/test_poetry.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,10 @@ def test_requirements_circleci(remove_tempdir):
checks if we have the same requirements in our project."""

os.system("poetry export -f requirements.txt > temprequirements.txt")
project_requirements = open("requirements.txt", "r")
test_requirements = open("temprequirements.txt", "r")
assert (
hashlib.md5(project_requirements.read().encode("utf-8")).hexdigest()
== hashlib.md5(test_requirements.read().encode("utf-8")).hexdigest()
)
with open("requirements.txt", "r") as project_requirements, open(
"temprequirements.txt", "r"
) as test_requirements:
assert (
hashlib.md5(project_requirements.read().encode("utf-8")).hexdigest()
== hashlib.md5(test_requirements.read().encode("utf-8")).hexdigest()
)
51 changes: 28 additions & 23 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

30 changes: 15 additions & 15 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,17 @@ packages = [
]

[tool.poetry.dependencies]
python = ">=3.7,<3.8"
django = "<3"
python = ">=3.7,<3.8" # Python versions must be set in dependencies for poetry
django = "<3" # Basics and boilerplate stuff (BSD-3)
django-environ = "^0.4.5" # Configuration by environment variables according to 12Factor model (MIT)
sentry-sdk = "^0.14.2" # Error logging to Sentry
django-rest-framework = "^0.1.0"
psycopg2-binary = "^2.8.4"
gunicorn = "^20.0.4"
django-rest-framework = "^0.1.0" # Tools for RESTful API (BSD-2)
psycopg2-binary = "^2.8.4" # Database connector (LGPL)
gunicorn = "^20.0.4" # Python WSGI HTTP Server
django-cors-headers = "^3.2.1"
django-extensions = "^2.2.8"
django-rq = "^2.3.0"
django-redis = "^4.11.0"
django-extensions = "^2.2.8" # Different helpers for Django REST Framework
django-rq = "^2.3.0" # Asynchronous tasks
django-redis = "^4.11.0" # Redis cache backend (BSD-3)
whitenoise = "^5.0.1"
urllib3 = "^1.25.8"
saasy = "^0.0.1"
Expand All @@ -30,21 +30,21 @@ drf-yasg = "^1.17.1"

[tool.poetry.dev-dependencies]
django-werkzeug = "^1.0.0"
ipdb = "^0.13.2"
ipdb = "^0.13.2" # Debugging
django-coverage-plugin = "^1.8.0"
django-pdb = "^0.6.2"
werkzeug = "^1.0.0"
werkzeug = "^1.0.0" # A flexible WSGI implementation and toolkit (BSD-3)
mypy = "^0.770"
factory_boy = "^2.12.0"
factory_boy = "^2.12.0" # Mocked Test data
coverage = "^5.0.4"
ipython = "^7.13.0"
ipython = "^7.13.0" # Better Python shell
pre-commit = "^2.2.0"
prospector = ">1.1.6.4"
Faker = "^4.0.2"
black = "^19.10b0"
flake8 = "^1.3.5"
pytest = "<5.4.0"
autopep8 = "<1.3.6"
flake8 = "<=3.4.0" # Old version, because prospector stick with old deps of pyflake and pycodestyles
pytest = "<5.4.0" # Better testing
autopep8 = "<=1.3.5" # Old version, because prospector stick with old deps of pyflake and pycodestyles
django-silk = "^4.0.1"
pytest-django = "^3.8.0"
pytest-xdist = "^1.31.0"
Expand Down

0 comments on commit 2ee5c55

Please sign in to comment.