11[build-system ]
2- requires = [ " hatch-vcs" , " hatchling" ,]
32build-backend = " hatchling.build"
43
4+ requires = [ " hatch-vcs" , " hatchling" ]
5+
56[project ]
67name = " aleph-sdk-python"
78description = " Lightweight Python Client library for the Aleph.im network"
89readme = " README.md"
10+
11+ license.file = " LICENSE.txt"
12+ authors.email =
" [email protected] " 13+ authors.name = " Aleph.im Team"
914classifiers = [
10- " Development Status :: 4 - Beta" ,
11- " Framework :: aiohttp" ,
12- " Intended Audience :: Developers" ,
13- " License :: OSI Approved :: MIT License" ,
14- " Operating System :: MacOS :: MacOS X" ,
15- " Operating System :: POSIX :: Linux" ,
16- " Programming Language :: Python :: 3 :: Only" ,
17- " Programming Language :: Python :: 3.8" ,
18- " Programming Language :: Python :: 3.9" ,
19- " Programming Language :: Python :: 3.10" ,
20- " Programming Language :: Python :: 3.11" ,
21- " Programming Language :: Python :: 3.12" ,
22- " Topic :: Software Development :: Libraries" ,
15+ " Development Status :: 4 - Beta" ,
16+ " Framework :: aiohttp" ,
17+ " Intended Audience :: Developers" ,
18+ " License :: OSI Approved :: MIT License" ,
19+ " Operating System :: MacOS :: MacOS X" ,
20+ " Operating System :: POSIX :: Linux" ,
21+ " Programming Language :: Python :: 3 :: Only" ,
22+ " Programming Language :: Python :: 3.8" ,
23+ " Programming Language :: Python :: 3.9" ,
24+ " Programming Language :: Python :: 3.10" ,
25+ " Programming Language :: Python :: 3.11" ,
26+ " Programming Language :: Python :: 3.12" ,
27+ " Topic :: Software Development :: Libraries" ,
2328]
29+ [[project .authors ]]
2430dependencies = [
25- " aiohttp>=3.8.3" ,
26- " aioresponses>=0.7.6" ,
27- " aleph-message>=0.6" ,
28- " aleph-superfluid>=0.2.1" ,
29- " base58==2.1.1" ,
30- ' coincurve>=19 ; python_version >= " 3.11" ' ,
31- ' coincurve; python_version < " 3.11" ' ,
32- ' eth-abi>=4; python_version >= " 3.11" ' ,
33- " eth-typing==4.3.1" ,
34- " jwcrypto==1.5.6" ,
35- " pynacl==1.5" ,
36- " python-magic" ,
37- " typing-extensions" ,
38- " web3==6.3" ,
31+ " aiohttp>=3.8.3" ,
32+ " aioresponses>=0.7.6" ,
33+ " aleph-message>=0.6" ,
34+ " aleph-superfluid>=0.2.1" ,
35+ " base58==2.1.1" ,
36+ " coincurve; python_version<' 3.11' " ,
37+ " coincurve>=19 ; python_version>=' 3.11' " ,
38+ " eth-abi>=4; python_version>=' 3.11' " ,
39+ " eth-typing==4.3.1" ,
40+ " jwcrypto==1.5.6" ,
41+ " pynacl==1.5" ,
42+ " python-magic" ,
43+ " typing-extensions" ,
44+ " web3==6.3" ,
3945]
40- dynamic = [ " version" ,]
41-
42- [project .license ]
43- file = " LICENSE.txt"
44-
45- [[project .authors ]]
46- name = " Aleph.im Team"
47- 48-
49- [project .urls ]
50- Documentation = " https://aleph.im/"
51- Homepage = " https://github.com/aleph-im/aleph-sdk-python"
52-
53- [project .optional-dependencies ]
54- all = [ " aleph-sdk-python[cosmos,dns,docs,encryption,ledger,mqtt,nuls2,solana,substrate,tezos]" ,]
55- cosmos = [ " cosmospy" ,]
56- dns = [ " aiodns" ,]
57- docs = [ " sphinxcontrib-plantuml" ,]
58- encryption = [ ' eciespy>=0.3.13; python_version >= "3.11"' , ' eciespy; python_version < "3.11"' ,]
59- ledger = [ " ledgereth==0.10" ,]
60- mqtt = [ " aiomqtt<=0.1.3" , " certifi" , " click" ,]
61- nuls2 = [ " aleph-nuls2" ,]
62- solana = [ " base58" , " pynacl" ,]
63- substrate = [ " py-sr25519-bindings" , " substrate-interface" ,]
64- tezos = [ " pynacl" , " pytezos-crypto==3.13.4.1" ,]
46+ optional-dependencies.all = [ " aleph-sdk-python[cosmos,dns,docs,encryption,ledger,mqtt,nuls2,solana,substrate,tezos]" ]
47+ optional-dependencies.cosmos = [ " cosmospy" ]
48+ optional-dependencies.dns = [ " aiodns" ]
49+ optional-dependencies.docs = [ " sphinxcontrib-plantuml" ]
50+ optional-dependencies.encryption = [ " eciespy; python_version<'3.11'" , " eciespy>=0.3.13; python_version>='3.11'" ]
51+ optional-dependencies.ledger = [ " ledgereth==0.10" ]
52+ optional-dependencies.mqtt = [ " aiomqtt<=0.1.3" , " certifi" , " click" ]
53+ optional-dependencies.nuls2 = [ " aleph-nuls2" ]
54+ optional-dependencies.solana = [ " base58" , " pynacl" ]
55+ optional-dependencies.substrate = [ " py-sr25519-bindings" , " substrate-interface" ]
56+ optional-dependencies.tezos = [ " pynacl" , " pytezos-crypto==3.13.4.1" ]
57+ urls.Documentation = " https://aleph.im/"
58+ urls.Homepage = " https://github.com/aleph-im/aleph-sdk-python"
59+ dynamic = [ " version" ]
6560
6661[tool .hatch .metadata ]
6762allow-direct-references = true
@@ -70,103 +65,103 @@ allow-direct-references = true
7065source = " vcs"
7166
7267[tool .hatch .build .targets .wheel ]
73- packages = [ " src/aleph" , " pyproject.toml" , " README.md" , " LICENSE.txt" , ]
68+ packages = [ " src/aleph" , " pyproject.toml" , " README.md" , " LICENSE.txt" ]
7469
7570[tool .hatch .build .targets .sdist ]
76- include = [ " src/aleph" , " pyproject.toml" , " README.md" , " LICENSE.txt" , ]
71+ include = [ " src/aleph" , " pyproject.toml" , " README.md" , " LICENSE.txt" ]
7772
7873[[tool .hatch .envs .all .matrix ]]
79- python = [ " 3.9" , " 3.10" , " 3.11" , ]
74+ python = [ " 3.9" , " 3.10" , " 3.11" ]
8075
8176[tool .hatch .envs .testing ]
82- features = [ " cosmos" , " dns" , " ledger" , " nuls2" , " substrate" , " solana" , " tezos" , " encryption" , ]
77+ features = [ " cosmos" , " dns" , " ledger" , " nuls2" , " substrate" , " solana" , " tezos" , " encryption" ]
8378dependencies = [
84- " pytest==8.0.1" ,
85- " pytest-cov==4.1.0" ,
86- " pytest-mock==3.12.0" ,
87- " pytest-asyncio==0.23.5" ,
88- " pytest-aiohttp==1.0.5" ,
89- " aioresponses==0.7.6" ,
90- " fastapi" ,
91- " httpx" ,
92- " secp256k1" ,
79+ " pytest==8.0.1" ,
80+ " pytest-cov==4.1.0" ,
81+ " pytest-mock==3.12.0" ,
82+ " pytest-asyncio==0.23.5" ,
83+ " pytest-aiohttp==1.0.5" ,
84+ " aioresponses==0.7.6" ,
85+ " fastapi" ,
86+ " httpx" ,
87+ " secp256k1" ,
9388]
9489
9590[tool .hatch .envs .testing .scripts ]
9691test = " pytest {args:} ./src/ ./tests/ ./examples/"
9792test-cov = " pytest --cov {args:} ./src/ ./tests/ ./examples/"
98- cov-report = [ " - coverage combine" , " coverage report" , ]
99- cov = [ " test-cov" , " cov-report" , ]
93+ cov-report = [ " - coverage combine" , " coverage report" ]
94+ cov = [ " test-cov" , " cov-report" ]
10095
10196[tool .hatch .envs .linting ]
10297detached = true
10398dependencies = [
104- " black==24.2.0" ,
105- " mypy==1.9.0" ,
106- " mypy-extensions==1.0.0" ,
107- " ruff==0.4.8" ,
108- " isort==5.13.2" ,
109- " pyproject-fmt==2.2.1" ,
99+ " black==24.2.0" ,
100+ " mypy==1.9.0" ,
101+ " mypy-extensions==1.0.0" ,
102+ # "ruff==0.4.8",
103+ " isort==5.13.2" ,
104+ " pyproject-fmt==2.2.1" ,
110105]
111106
112107[tool .hatch .envs .linting .scripts ]
113108typing = " mypy --config-file=pyproject.toml {args:} ./src/ ./tests/ ./examples/"
114109style = [
115- " ruff check {args:.} ./src/ ./tests/ ./examples/" ,
116- " black --check --diff {args:} ./src/ ./tests/ ./examples/" ,
117- " isort --check-only --profile black {args:} ./src/ ./tests/ ./examples/" ,
118- " pyproject-fmt --check pyproject.toml" ,
110+ # "ruff check {args:.} ./src/ ./tests/ ./examples/",
111+ " black --check --diff {args:} ./src/ ./tests/ ./examples/" ,
112+ " isort --check-only --profile black {args:} ./src/ ./tests/ ./examples/" ,
113+ " pyproject-fmt --check pyproject.toml" ,
119114]
120115fmt = [
121- " black {args:} ./src/ ./tests/ ./examples/" ,
122- " ruff check --fix {args:.} ./src/ ./tests/ ./examples/" ,
123- " isort --profile black {args:} ./src/ ./tests/ ./examples/" ,
124- " pyproject-fmt pyproject.toml" ,
125- " style" ,
116+ " black {args:} ./src/ ./tests/ ./examples/" ,
117+ # "ruff check --fix {args:.} ./src/ ./tests/ ./examples/",
118+ " isort --profile black {args:} ./src/ ./tests/ ./examples/" ,
119+ " pyproject-fmt pyproject.toml" ,
120+ " style" ,
126121]
127- all = [ " style" , " typing" , ]
122+ all = [ " style" , " typing" ]
128123
129124[tool .isort ]
130125profile = " black"
131126
132127[tool .pytest .ini_options ]
133128minversion = " 6.0"
134- pythonpath = [ " src" , ]
129+ pythonpath = [ " src" ]
135130addopts = ' -vv -m "not ledger_hardware"'
136- norecursedirs = [ " *.egg" , " dist" , " build" , " .tox" , " .venv" , " */site-packages/*" , ]
137- testpaths = [ " tests/unit" , ]
131+ norecursedirs = [ " *.egg" , " dist" , " build" , " .tox" , " .venv" , " */site-packages/*" ]
132+ testpaths = [ " tests/unit" ]
138133
139134[tool .pytest .ini_options .markers ]
140135ledger_hardware = " marks tests as requiring ledger hardware"
141136
142137[tool .coverage .run ]
143138branch = true
144139parallel = true
145- source = [ " src/" , ]
146- omit = [ " */site-packages/*" , ]
140+ source = [ " src/" ]
141+ omit = [ " */site-packages/*" ]
147142
148143[tool .coverage .paths ]
149- source = [ " src/" , ]
150- omit = [ " */site-packages/*" , ]
144+ source = [ " src/" ]
145+ omit = [ " */site-packages/*" ]
151146
152147[tool .coverage .report ]
153148show_missing = true
154149skip_empty = true
155150exclude_lines = [
156- " pragma: no cover" ,
157- " def __repr__" ,
158- " if self\\ .debug" ,
159- " raise AssertionError" ,
160- " raise NotImplementedError" ,
161- " if 0:" ,
162- " if __name__ == .__main__.:" ,
163- " pass" ,
151+ " pragma: no cover" ,
152+ " def __repr__" ,
153+ " if self\\ .debug" ,
154+ " raise AssertionError" ,
155+ " raise NotImplementedError" ,
156+ " if 0:" ,
157+ " if __name__ == .__main__.:" ,
158+ " pass" ,
164159]
165160
166161[tool .mypy ]
167162python_version = 3.9
168163mypy_path = " src"
169- exclude = [ " conftest.py" , ]
164+ exclude = [ " conftest.py" ]
170165show_column_numbers = true
171166check_untyped_defs = true
172167install_types = true
0 commit comments