-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #23 from vmalloc/python312-support
Python 3.12 support
- Loading branch information
Showing
13 changed files
with
60 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
[MESSAGES CONTROL] | ||
disable= R,attribute-defined-outside-init,bad-continuation,bad-option-value,bare-except,invalid-name,locally-disabled,missing-docstring,redefined-builtin,ungrouped-imports,wrong-import-order,wrong-import-position,unnecessary-pass,import-outside-toplevel,consider-using-f-string,redundant-u-string-prefix,unspecified-encoding,unnecessary-lambda-assignment,use-implicit-booleaness-not-comparison,raise-missing-from,superfluous-parens | ||
|
||
[REPORTS] | ||
reports=no | ||
# Ignoring 'StackedObject' due to bug in astroid/pylint: https://github.com/PyCQA/pylint/issues/3116 | ||
# Activatable seems like the same bug | ||
ignored-classes=ColorizedString,StackedObject,Activatable,AbstractContextManager | ||
|
||
[FORMAT] | ||
max-line-length=150 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,9 @@ | ||
import pkg_resources | ||
import sys | ||
if sys.version_info < (3, 8): | ||
import pkg_resources | ||
get_distribution = pkg_resources.get_distribution | ||
else: | ||
from importlib.metadata import distribution | ||
get_distribution = distribution | ||
|
||
__version__ = pkg_resources.get_distribution('dessert').version | ||
__version__ = get_distribution('dessert').version |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,3 @@ | ||
import warnings | ||
|
||
|
||
class DessertWarning(UserWarning): | ||
__module__ = "dessert" | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,17 +6,16 @@ build-backend = "setuptools.build_meta" | |
name = "dessert" | ||
description = "Assertion introspection via AST rewriting" | ||
readme = "README.md" | ||
requires-python = ">=3.5" | ||
requires-python = ">=3.7" | ||
license = { text = "MIT" } | ||
|
||
classifiers = [ | ||
"Programming Language :: Python :: 3.5", | ||
"Programming Language :: Python :: 3.6", | ||
"Programming Language :: Python :: 3.7", | ||
"Programming Language :: Python :: 3.8", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
"Programming Language :: Python :: 3.12", | ||
] | ||
|
||
dependencies = ["munch", "py", "atomicwrites>=1.0", "attrs"] | ||
|
@@ -29,7 +28,7 @@ authors = [{ name = "Rotem Yaari", email = "[email protected]" }] | |
"GitHub" = "https://github.com/vmalloc/dessert" | ||
|
||
[project.optional-dependencies] | ||
testing = ["pytest", "emport>=1.1.1"] | ||
testing = ["pytest", "emport>=1.1.1", "pylint"] | ||
|
||
[tool.hatch.version] | ||
source = "vcs" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters