From d495e76fd3e3e55ea53a3acf69517fd1e116b302 Mon Sep 17 00:00:00 2001 From: panosangelopoulostc Date: Sat, 17 Sep 2022 11:13:43 +0300 Subject: [PATCH] Add support for python version 3.7 --- README.md | 37 +++++++++++++++++++ poetry.lock | 96 ++++++++++++++++++++++++++++++++++++++++---------- pyproject.toml | 8 ++--- 3 files changed, 118 insertions(+), 23 deletions(-) diff --git a/README.md b/README.md index eb8bb2f..4c9244f 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,39 @@ # django_bitgo + Django library for BitGo + +[![Downloads](https://static.pepy.tech/personalized-badge/django-bitgo?period=month&units=international_system&left_color=black&right_color=blue&left_text=Downloads)](https://pepy.tech/project/django-bitgo) + +# Overview + +Django BitGo is a powerful and flexible library for connecting your BitGo account and integrate it with your Django project. + +--- + +# Requirements + +- Python (3.7, 3.8, 3.9, 3.10) +- Django (3.2, 4.0, 4.1) + We **highly recommend** and only officially support the latest patch release of + each Python and Django series. + +# Installation + +Install using `pip` ... + + pip install django-bitgo + +Install using `poetry` ... + +``` +poetry add django-bitgo +``` + +Add `'django_bitgo'` to your `INSTALLED_APPS` setting. + +```python +INSTALLED_APPS = [ + ... + 'django_bitgo', +] +``` diff --git a/poetry.lock b/poetry.lock index 2d17b7e..ae5dc0a 100644 --- a/poetry.lock +++ b/poetry.lock @@ -6,6 +6,9 @@ category = "main" optional = false python-versions = ">=3.7" +[package.dependencies] +typing-extensions = {version = "*", markers = "python_version < \"3.8\""} + [package.extras] tests = ["pytest", "pytest-asyncio", "mypy (>=0.800)"] @@ -13,7 +16,7 @@ tests = ["pytest", "pytest-asyncio", "mypy (>=0.800)"] name = "black" version = "22.8.0" description = "The uncompromising code formatter." -category = "main" +category = "dev" optional = false python-versions = ">=3.6.2" @@ -23,6 +26,8 @@ mypy-extensions = ">=0.4.3" pathspec = ">=0.9.0" platformdirs = ">=2" tomli = {version = ">=1.1.0", markers = "python_full_version < \"3.11.0a7\""} +typed-ast = {version = ">=1.4.2", markers = "python_version < \"3.8\" and implementation_name == \"cpython\""} +typing-extensions = {version = ">=3.10.0.0", markers = "python_version < \"3.10\""} [package.extras] colorama = ["colorama (>=0.4.3)"] @@ -53,33 +58,34 @@ unicode_backport = ["unicodedata2"] name = "click" version = "8.1.3" description = "Composable command line interface toolkit" -category = "main" +category = "dev" optional = false python-versions = ">=3.7" [package.dependencies] colorama = {version = "*", markers = "platform_system == \"Windows\""} +importlib-metadata = {version = "*", markers = "python_version < \"3.8\""} [[package]] name = "colorama" version = "0.4.5" description = "Cross-platform colored terminal text." -category = "main" +category = "dev" optional = false python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*" [[package]] name = "django" -version = "4.1.1" -description = "A high-level Python web framework that encourages rapid development and clean, pragmatic design." +version = "3.2.15" +description = "A high-level Python Web framework that encourages rapid development and clean, pragmatic design." category = "main" optional = false -python-versions = ">=3.8" +python-versions = ">=3.6" [package.dependencies] -asgiref = ">=3.5.2,<4" +asgiref = ">=3.3.2,<4" +pytz = "*" sqlparse = ">=0.2.2" -tzdata = {version = "*", markers = "sys_platform == \"win32\""} [package.extras] argon2 = ["argon2-cffi (>=19.1.0)"] @@ -93,11 +99,28 @@ category = "main" optional = false python-versions = ">=3.5" +[[package]] +name = "importlib-metadata" +version = "4.12.0" +description = "Read metadata from Python packages" +category = "dev" +optional = false +python-versions = ">=3.7" + +[package.dependencies] +typing-extensions = {version = ">=3.6.4", markers = "python_version < \"3.8\""} +zipp = ">=0.5" + +[package.extras] +docs = ["sphinx", "jaraco.packaging (>=9)", "rst.linker (>=1.9)"] +perf = ["ipython"] +testing = ["pytest (>=6)", "pytest-checkdocs (>=2.4)", "pytest-flake8", "pytest-cov", "pytest-enabler (>=1.3)", "packaging", "pyfakefs", "flufl.flake8", "pytest-perf (>=0.9.2)", "pytest-black (>=0.3.7)", "pytest-mypy (>=0.9.1)", "importlib-resources (>=1.3)"] + [[package]] name = "mypy-extensions" version = "0.4.3" description = "Experimental type system extensions for programs checked with the mypy typechecker." -category = "main" +category = "dev" optional = false python-versions = "*" @@ -105,7 +128,7 @@ python-versions = "*" name = "pathspec" version = "0.10.1" description = "Utility library for gitignore style pattern matching of file paths." -category = "main" +category = "dev" optional = false python-versions = ">=3.7" @@ -113,7 +136,7 @@ python-versions = ">=3.7" name = "platformdirs" version = "2.5.2" description = "A small Python module for determining appropriate platform-specific dirs, e.g. a \"user data dir\"." -category = "main" +category = "dev" optional = false python-versions = ">=3.7" @@ -121,6 +144,14 @@ python-versions = ">=3.7" docs = ["furo (>=2021.7.5b38)", "proselint (>=0.10.2)", "sphinx-autodoc-typehints (>=1.12)", "sphinx (>=4)"] test = ["appdirs (==1.4.4)", "pytest-cov (>=2.7)", "pytest-mock (>=3.6)", "pytest (>=6)"] +[[package]] +name = "pytz" +version = "2022.2.1" +description = "World timezone definitions, modern and historical" +category = "main" +optional = false +python-versions = "*" + [[package]] name = "requests" version = "2.28.1" @@ -151,17 +182,25 @@ python-versions = ">=3.5" name = "tomli" version = "2.0.1" description = "A lil' TOML parser" -category = "main" +category = "dev" optional = false python-versions = ">=3.7" [[package]] -name = "tzdata" -version = "2022.2" -description = "Provider of IANA time zone data" +name = "typed-ast" +version = "1.5.4" +description = "a fork of Python 2 and 3 ast modules with type comment support" +category = "dev" +optional = false +python-versions = ">=3.6" + +[[package]] +name = "typing-extensions" +version = "4.3.0" +description = "Backported and Experimental Type Hints for Python 3.7+" category = "main" optional = false -python-versions = ">=2" +python-versions = ">=3.7" [[package]] name = "urllib3" @@ -176,10 +215,22 @@ brotli = ["brotlicffi (>=0.8.0)", "brotli (>=1.0.9)", "brotlipy (>=0.6.0)"] secure = ["pyOpenSSL (>=0.14)", "cryptography (>=1.3.4)", "idna (>=2.0.0)", "certifi", "urllib3-secure-extra", "ipaddress"] socks = ["PySocks (>=1.5.6,!=1.5.7,<2.0)"] +[[package]] +name = "zipp" +version = "3.8.1" +description = "Backport of pathlib-compatible object wrapper for zip files" +category = "dev" +optional = false +python-versions = ">=3.7" + +[package.extras] +docs = ["sphinx", "jaraco.packaging (>=9)", "rst.linker (>=1.9)", "jaraco.tidelift (>=1.4)"] +testing = ["pytest (>=6)", "pytest-checkdocs (>=2.4)", "pytest-flake8", "pytest-cov", "pytest-enabler (>=1.3)", "jaraco.itertools", "func-timeout", "pytest-black (>=0.3.7)", "pytest-mypy (>=0.9.1)"] + [metadata] lock-version = "1.1" -python-versions = "^3.10" -content-hash = "d45f64a39ab34ea9cf38d55158770808f3a2789c11a226748a28145ed675067a" +python-versions = "^3.7.1" +content-hash = "70cd3a14b1307752d96a424bdb7d7ede4fb0a36562ddbbe98a490cf61dca6ec0" [metadata.files] asgiref = [] @@ -196,6 +247,7 @@ colorama = [ ] django = [] idna = [] +importlib-metadata = [] mypy-extensions = [ {file = "mypy_extensions-0.4.3-py2.py3-none-any.whl", hash = "sha256:090fedd75945a69ae91ce1303b5824f428daf5a028d2f6ab8a299250a846f15d"}, {file = "mypy_extensions-0.4.3.tar.gz", hash = "sha256:2d82818f5bb3e369420cb3c4060a7970edba416647068eb4c5343488a6c604a8"}, @@ -205,6 +257,7 @@ platformdirs = [ {file = "platformdirs-2.5.2-py3-none-any.whl", hash = "sha256:027d8e83a2d7de06bbac4e5ef7e023c02b863d7ea5d079477e722bb41ab25788"}, {file = "platformdirs-2.5.2.tar.gz", hash = "sha256:58c8abb07dcb441e6ee4b11d8df0ac856038f944ab98b7be6b27b2a3c7feef19"}, ] +pytz = [] requests = [ {file = "requests-2.28.1-py3-none-any.whl", hash = "sha256:8fefa2a1a1365bf5520aac41836fbee479da67864514bdb821f31ce07ce65349"}, {file = "requests-2.28.1.tar.gz", hash = "sha256:7c5599b102feddaa661c826c56ab4fee28bfd17f5abca1ebbe3e7f19d7c97983"}, @@ -217,5 +270,10 @@ tomli = [ {file = "tomli-2.0.1-py3-none-any.whl", hash = "sha256:939de3e7a6161af0c887ef91b7d41a53e7c5a1ca976325f429cb46ea9bc30ecc"}, {file = "tomli-2.0.1.tar.gz", hash = "sha256:de526c12914f0c550d15924c62d72abc48d6fe7364aa87328337a31007fe8a4f"}, ] -tzdata = [] +typed-ast = [] +typing-extensions = [ + {file = "typing_extensions-4.3.0-py3-none-any.whl", hash = "sha256:25642c956049920a5aa49edcdd6ab1e06d7e5d467fc00e0506c44ac86fbfca02"}, + {file = "typing_extensions-4.3.0.tar.gz", hash = "sha256:e6d2677a32f47fc7eb2795db1dd15c1f34eff616bcaf2cfb5e997f854fa1c4a6"}, +] urllib3 = [] +zipp = [] diff --git a/pyproject.toml b/pyproject.toml index 0e81d6b..110e6c5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "django_bitgo" -version = "0.1.1" +version = "0.1.2" description = "Django app for bitGo" authors = ["panosangelopoulos "] license = "MIT" @@ -10,12 +10,12 @@ readme = "README.md" keywords = ["django", "bitgo", "django_bitgo"] [tool.poetry.dependencies] -python = "^3.10" -Django = "^4.1.1" +python = "^3.7.1" +Django = "^3.2.14" requests = "^2.28.1" -black = "^22.8.0" [tool.poetry.dev-dependencies] +black = "^22.8.0" [build-system] requires = ["poetry-core>=1.0.0"]