| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
|
Hi. Please note that I plan to extend this by adding more validators for TRX, ADA, and other crypto addresses. Thanks! |
Sorry, something went wrong.
|
Hi, I'll review, but is it possible to make the external dependency, optional? |
Sorry, something went wrong.
Sure. Something like a new group of optional dependencies named crypto, crypto-address, or crypto-addresses that includes all the dependencies related to validators of crypto addresses. What do you think? Finally, it can be used like pip install validators[crypto-addresses]. |
Sorry, something went wrong.
|
That sound exactly like what I was thinking. pip install validators[crypto-eth-addresses] |
Sorry, something went wrong.
It's done. Now, how do you think we should update the pycqa.yaml workflow? I can explicitly include pip install .[crypto-eth-addresses] in "tooling" and "testing" jobs or create a new requirements.*.txt for it under package/ directory. Or is there a better way to do it? I'm trying to become close to your mindset here so that I can make more contributions with less confusion in the future. Thanks |
Sorry, something went wrong.
|
Change this: Lines 9 to 10 in a7bcfda to: # tooling
pdm export --group tooling,crypto-eth-addresses -f requirements -o package/requirements.tooling.txtDo the same in roll.ps1. Run either of one the scripts (bash or powershell, depending upon your OS), commit and push those changes to this PR. Let's see if it works. |
Sorry, something went wrong.
It doesn't seem to be working. Isn't it because the optional dependencies are not installed here in the "testing" workflow? validators/.github/workflows/pycqa.yaml Lines 52 to 53 in a7bcfda |
Sorry, something went wrong.
|
Ah, you are right, then let's add a redundant dependency group with: $ pdm add -dG testing pytestThis should change pyproject.toml to include: [tool.pdm.dev-dependencies]
+ testing = ["pytest>=8.2.2"]Do not remove pytest from tooling, it still is required there. Then in roll.(sh|ps1) generate a new file like so: # tooling
pdm export --group tooling -f requirements -o package/requirements.tooling.txt
+# testing
+pdm export --group testing,crypto-eth-addresses -f requirements -o package/requirements.testing.txtFinally in pycqa.yaml, you can make the following change: -run: pip install pytest
+run: pip install -r package/requirements.testing.txtRun the scripts, commit, push and try again. |
Sorry, something went wrong.
|
@yozachar All tests are passed except for the tooling workflow. Seems like we need crypto-eth-addresses in tooling dependencies as well. What do you think? # tooling
-pdm export --group tooling -f requirements -o package/requirements.tooling.txt
+pdm export --group tooling,crypto-eth-addresses -f requirements -o package/requirements.tooling.txt
# testing
pdm export --group testing,crypto-eth-addresses -f requirements -o package/requirements.testing.txt |
Sorry, something went wrong.
|
Ah yes, I missed that. |
Sorry, something went wrong.
|
It's all good now. |
Sorry, something went wrong.
There was a problem hiding this comment.
This PR looks like a good candidate for 0.29.0. Please go ahead.
Sorry, something went wrong.
I updated the version and changelog. Let me know if this wraps it up or if more needs to be done. |
Sorry, something went wrong.
|
I'll push a few changes, just some arrangements. |
Sorry, something went wrong.
|
What do you think? |
Sorry, something went wrong.
- make `eth_hash` truly optional - update dev dependencies - improve changelog - fix packaging and CI
Much better. Thanks! |
Sorry, something went wrong.
|
Thanks a lot for the PR! |
Sorry, something went wrong.
https://build.opensuse.org/request/show/1184350 by user mia + anag+factory - Update to 0.29.0 Breaking: * move btc_address to crypto_addresses gh#python-validators/validators#383 Features: * add validator for eth addresses (depends on eth-hash, which is not packaged yet) gh#python-validators/validators#383
| Back | FazBrowse Home | New Git URL |
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.