Skip to content

Commit 4973c49

Browse files
msamsamiyozachar
andauthored
feat: add validator for eth addresses (#383)
- move to a new directory for crypto addresses validators - add a new feature to validate ethereum address - create a new dep group for crypto eth address - update tooling requirements - update api docs for crypto addresses - add a new dependency group for testing, update scripts accordingly - include crypto-eth-addresses in tooling requirements - add docs - bump version, update change log - fix: make `eth_hash` truly optional - make `eth_hash` truly optional - update dev dependencies - improve changelog - fix packaging and CI --------- Co-authored-by: Yozachar <[email protected]>
1 parent a7bcfda commit 4973c49

23 files changed

+403
-519
lines changed

.github/workflows/pycqa.yaml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,7 @@ jobs:
2222
python-version: "3.8"
2323
# tooling
2424
- name: Install 'tooling' dependencies
25-
run: |
26-
pip install .
27-
pip install -r package/requirements.tooling.txt
25+
run: pip install -r package/requirements.tooling.txt
2826
- name: Tooling
2927
run: |
3028
black .
@@ -50,6 +48,6 @@ jobs:
5048
cache: "pip"
5149
# testing
5250
- name: Install 'testing' dependencies
53-
run: pip install pytest
51+
run: pip install -r package/requirements.testing.txt
5452
- name: Testing
5553
run: pytest .

CHANGES.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,22 @@ Note to self: Breaking changes must increment either
99
1010
-->
1111

12+
## 0.29.0 (2024-07-01)
13+
14+
_**Breaking**_ ⚠️
15+
16+
- patch: moves `btc_address` to `crypto_addresses` by @msamsami in [#383](https://github.com/python-validators/validators/pull/383) on [`2f300b`](https://github.com/python-validators/validators/pull/383/commits/2f300bccf31e7d8914817cac2ca466fd2a0a4d08)
17+
18+
_**Features**_
19+
20+
- feat: add validator for eth addresses by @msamsami in [#383](https://github.com/python-validators/validators/pull/383)
21+
22+
_**Maintenance**_
23+
24+
- chore: update dev deps; adds python EOL info by @yozachar in [#381](https://github.com/python-validators/validators/pull/381)
25+
26+
**Full Changelog**: [`0.28.3...0.29.0`](https://github.com/python-validators/validators/compare/0.28.3...0.29.0)
27+
1228
## 0.28.3 (2024-05-25)
1329

1430
_**Breaking**_

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ $ python -m http.server -d docs/_build/web
7878
$ git push upstream --tag
7979
```
8080

81-
4. To prevew versioned docs, run `mike serve` (`mike` is already a dev dependency).
81+
4. To preview versioned docs, run `mike serve` (`mike` is already a dev dependency).
8282
5. To update it, checkout to the tag you want to include in the versioned documentation `git checkout TAG_NAME`.
8383
6. Then run `mike deploy -p -u VERSION stable` OR run `mike deploy -p -u dev master`,
8484
7. Which will deploy docs in the CURRENT commit as the `latest` documentation, onto `gh-pages` branch.

SECURITY.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
| Version | Supported |
66
| ---------- | ------------------ |
7-
| `>=0.28.3` | :white_check_mark: |
7+
| `>=0.29.0` | :white_check_mark: |
88

99
## Reporting a Vulnerability
1010

docs/api/btc_address.md

Lines changed: 0 additions & 3 deletions
This file was deleted.

docs/api/btc_address.rst

Lines changed: 0 additions & 5 deletions
This file was deleted.

docs/api/crypto_addresses.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# crypto_addresses
2+
3+
::: validators.crypto_addresses.btc_address
4+
::: validators.crypto_addresses.eth_address

docs/api/crypto_addresses.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
crypto_addresses
2+
----------------
3+
4+
.. module:: validators.crypto_addresses
5+
.. autofunction:: btc_address
6+
.. autofunction:: eth_address

mkdocs.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ nav:
7070
- Install and Use: install_and_use.md
7171
- API:
7272
- api/between.md
73-
- api/btc_address.md
73+
- api/crypto_addresses.md
7474
- api/card.md
7575
- api/country.md
7676
- api/cron.md

package/requirements.mkdocs.txt

Lines changed: 0 additions & 411 deletions
This file was deleted.

0 commit comments

Comments
 (0)