-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b54844d
commit d1feb25
Showing
18 changed files
with
150 additions
and
115 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
root = True | ||
|
||
[*] | ||
end_of_line = lf | ||
insert_final_newline = True | ||
indent_style = space | ||
indent_size = 4 | ||
trim_trailing_whitespace = True | ||
|
||
[*.py] | ||
charset = utf-8 | ||
max_line_length = 88 | ||
|
||
[*.{yml,yaml,md,toml}] | ||
indent_size = 2 | ||
|
||
[Makefile] | ||
indent_style = tab |
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 |
---|---|---|
|
@@ -127,3 +127,6 @@ dmypy.json | |
|
||
# Pyre type checker | ||
.pyre/ | ||
|
||
# Dynamic version file | ||
src/abcattrs/_version.py |
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 +1 @@ | ||
{"source_ecosystem":{"language":"python","version":"3.13"},"source_dependencies":["check-manifest","setuptools==75.6.0","wheel==0.45.1"],"lock_files":[{"path":"requirements.txt","checksum":"sha256:e1d33bb3b4287b3ee29d6347bbafb6ce3c3800836559faddfcb84bfc233b33a9"}],"checksum":"sha256:03fcf52f00db4b05d7cc74bc4affa688db258b6bd7c53620903dade10ec4b397"} | ||
{"source_ecosystem":{"language":"python","version":"3.13"},"source_dependencies":["check-manifest","setuptools-scm==8.1.0","setuptools==75.6.0","wheel==0.45.1"],"lock_files":[{"path":"requirements.txt","checksum":"sha256:5fbd751fae5935b95444c24527ff77a53a68954119fbfb4b65b1e25550a7683e"}],"checksum":"sha256:36a935b08627d072fea2bf37d5ac618ea268d6b66963259a31473800a3857e49"} |
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,3 +1,68 @@ | ||
[build-system] | ||
requires = ["setuptools==75.6.0", "wheel==0.45.1"] | ||
requires = [ | ||
"setuptools==75.6.0", | ||
"setuptools-scm==8.1.0", | ||
"wheel==0.45.1", | ||
] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[tool.setuptools_scm] | ||
version_file = "src/abcattrs/_version.py" | ||
|
||
[tool.setuptools] | ||
include-package-data = true | ||
|
||
[tool.setuptools.dynamic] | ||
readme = {file = "README.md", content-type = "text/markdown; charset=UTF-8"} | ||
|
||
[tool.setuptools.packages.find] | ||
where = ["src"] | ||
namespaces = false | ||
|
||
|
||
[project] | ||
name = "abcattrs" | ||
authors = [ | ||
{ name="Anton Agestam", email="[email protected]" }, | ||
] | ||
description = "Abstract class attributes" | ||
license = {text = "BSD-3-Clause"} | ||
requires-python = ">=3.10" | ||
classifiers = [ | ||
"Intended Audience :: Developers", | ||
"Operating System :: OS Independent", | ||
"Programming Language :: Python", | ||
"Programming Language :: Python :: 3", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
"Programming Language :: Python :: 3.12", | ||
"Programming Language :: Python :: 3.13", | ||
"Development Status :: 5 - Stable", | ||
"Typing :: Typed", | ||
] | ||
dynamic = ["version", "readme"] | ||
|
||
[project.optional-dependencies] | ||
test = [ | ||
"pytest", | ||
"pytest-mypy-plugins", | ||
"coverage", | ||
] | ||
type-check = [ | ||
"mypy", | ||
"pytest", | ||
"types-setuptools", | ||
] | ||
|
||
[project.urls] | ||
"Source Repository" = "https://github.com/antonagestam/abcattrs/" | ||
|
||
|
||
[tool.check-manifest] | ||
ignore = ["src/abcattrs/_version.py"] | ||
|
||
|
||
[tool.pip-tools] | ||
generate-hashes = true | ||
strip-extras = true | ||
upgrade = true |
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,18 @@ | ||
# This file was autogenerated by uv via the following command: | ||
# uv pip compile --extra=type-check --output-file=requirements-typing.txt pyproject.toml | ||
iniconfig==2.0.0 | ||
# via pytest | ||
mypy==1.13.0 | ||
# via abcattrs (pyproject.toml) | ||
mypy-extensions==1.0.0 | ||
# via mypy | ||
packaging==24.2 | ||
# via pytest | ||
pluggy==1.5.0 | ||
# via pytest | ||
pytest==8.3.3 | ||
# via abcattrs (pyproject.toml) | ||
types-setuptools==75.6.0.20241126 | ||
# via abcattrs (pyproject.toml) | ||
typing-extensions==4.12.2 | ||
# via mypy |
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,39 +1,3 @@ | ||
[metadata] | ||
name = abcattrs | ||
version = attr: abcattrs.__version__ | ||
description = Abstract class attributes | ||
long_description = file: README.md | ||
long_description_content_type = text/markdown; charset=UTF-8 | ||
license = BSD 3-Clause License | ||
license_file = LICENSE | ||
classifiers = | ||
Intended Audience :: Developers | ||
Operating System :: OS Independent | ||
Programming Language :: Python | ||
Programming Language :: Python :: 3 | ||
Programming Language :: Python :: 3.10 | ||
Programming Language :: Python :: 3.11 | ||
Programming Language :: Python :: 3.12 | ||
Programming Language :: Python :: 3.13 | ||
Development Status :: 3 - Alpha | ||
author = Anton Agestam | ||
author_email = [email protected] | ||
url = https://github.com/antonagestam/abcattrs/ | ||
|
||
[options] | ||
include_package_data = True | ||
packages = find: | ||
python_requires = >=3.10 | ||
|
||
[options.package_data] | ||
abcattrs = py.typed | ||
|
||
[options.extras_require] | ||
test = | ||
pytest | ||
pytest-mypy-plugins | ||
coverage | ||
|
||
[mypy] | ||
python_version = 3.10 | ||
show_error_codes = True | ||
|
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,12 +1,15 @@ | ||
from ._version import __version__ | ||
from ._version import __version_tuple__ | ||
from .abcattrs import Abstract | ||
from .abcattrs import UndefinedAbstractAttribute | ||
from .abcattrs import abstractattrs | ||
from .abcattrs import check_abstract_class_attributes | ||
|
||
__all__ = ( | ||
"__version__", | ||
"__version_tuple__", | ||
"Abstract", | ||
"UndefinedAbstractAttribute", | ||
"abstractattrs", | ||
"check_abstract_class_attributes", | ||
) | ||
__version__ = "0.4.0" |
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
File renamed without changes.
File renamed without changes.