Skip to content

Commit

Permalink
Added pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
mongkok committed Aug 10, 2021
1 parent 2da5c21 commit 2feb015
Show file tree
Hide file tree
Showing 12 changed files with 115 additions and 144 deletions.
3 changes: 0 additions & 3 deletions .codacy.yml

This file was deleted.

3 changes: 0 additions & 3 deletions .coveragerc

This file was deleted.

4 changes: 4 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[flake8]
max-line-length = 88
exclude = .tox,*.egg*,src/,**/migrations/*,build
ignore = test_*.py Q001,W504
6 changes: 0 additions & 6 deletions MANIFEST.in

This file was deleted.

26 changes: 0 additions & 26 deletions Makefile

This file was deleted.

88 changes: 88 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"

[tool.poetry]
name = "django-graphql-jwt"
version = "0.3.3"
description = "JSON Web Token for Django GraphQL."
license = "MIT"
authors = ["mongkok <[email protected]>"]
readme = "README.md"
include = ["LICENSE", "README.md"]
keywords = ["django", "graphql", "jwt"]

homepage = "https://github.com/flavors/django-graphql-jwt"
repository = "https://github.com/flavors/django-graphql-jwt"
documentation = "https://django-graphql-jwt.domake.io"

packages = [
{ include = "graphql_jwt" },
]

classifiers = [
"Intended Audience :: Information Technology",
"Intended Audience :: System Administrators",
"Operating System :: OS Independent",
"License :: OSI Approved :: MIT License",
"Development Status :: 4 - Beta",
"Environment :: Web Environment",
"Intended Audience :: Developers",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Framework :: Django",
"Framework :: Django :: 2.0",
"Framework :: Django :: 2.1",
"Framework :: Django :: 2.2",
"Framework :: Django :: 3.0",
"Framework :: Django :: 3.1",
"Framework :: Django :: 3.2",
"Topic :: Security",
"Topic :: Software Development",
"Topic :: Software Development :: Libraries",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Internet",
"Topic :: Internet :: WWW/HTTP",
"Topic :: Internet :: WWW/HTTP :: HTTP Servers",
]

[tool.poetry.dependencies]
python = "^3.6"

Django = ">=2.0"
graphene = ">=2.1.5"
graphene-django = ">=2.0.0"
PyJWT = ">=2,<3"

[tool.poetry.dev-dependencies]
black = "*"
codecov = "*"
cryptography = "2.8"
flake8 = "*"
isort = "*"
pytest = "*"
pytest-cov = "*"
pytest-django = "*"

[tool.pytest.ini_options]
DJANGO_SETTINGS_MODULE = "tests.settings"

[tool.black]
extend-exclude = '''
/(
| .dist
| .htmlcov
)/
'''

[tool.isort]
profile = "black"
skip = "migrations"
default_section = "THIRDPARTY"
known_django = "django"
known_first_party = "graphql_jwt"
sections = "FUTURE,STDLIB,DJANGO,THIRDPARTY,FIRSTPARTY,LOCALFOLDER"
6 changes: 0 additions & 6 deletions requirements/flake8.txt

This file was deleted.

5 changes: 0 additions & 5 deletions requirements/test.txt

This file was deleted.

10 changes: 10 additions & 0 deletions scripts/lint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/usr/bin/env bash

export SOURCE_FILES="graphql_jwt tests"

set -e
set -x

flake8 $SOURCE_FILES
black --check $SOURCE_FILES
isort --check-only $SOURCE_FILES
13 changes: 13 additions & 0 deletions scripts/test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/usr/bin/env bash

set -e
set -x

bash ./scripts/lint.sh

pytest \
--cov=graphql_jwt \
--cov=tests \
--cov-report=term-missing \
--cov-report=xml \
tests ${@}
22 changes: 0 additions & 22 deletions setup.cfg

This file was deleted.

73 changes: 0 additions & 73 deletions setup.py

This file was deleted.

0 comments on commit 2feb015

Please sign in to comment.