Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support using the subtraction operator to get the relative path between URLs #1340

Merged
merged 27 commits into from
Oct 22, 2024
Merged
Changes from 1 commit
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
c27d7d4
Support using the subtraction operator to get the relative path betwe…
oleksbabieiev Oct 20, 2024
fe047cc
Add CHANGES/1340.feature.rst
oleksbabieiev Oct 20, 2024
81ed86d
Merge branch 'master' into relpath
bdraco Oct 21, 2024
f18ed6b
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Oct 21, 2024
97820e5
Merge branch 'master' into relpath
bdraco Oct 21, 2024
d13bf1d
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Oct 21, 2024
5037e6b
fix conflicting imports
bdraco Oct 21, 2024
6478fde
Merge branch 'master' into relpath
bdraco Oct 21, 2024
3665a02
Merge branch 'master' into relpath
oleksbabieiev Oct 21, 2024
3add068
Sign CHANGES/1340.feature.rst
oleksbabieiev Oct 21, 2024
38c7f3c
Move `relative_path()` to `_path.py`
oleksbabieiev Oct 21, 2024
4dd4a69
Add more parameters to test `URL.__sub__()`
oleksbabieiev Oct 21, 2024
f5f242b
Use `SEPARATOR` constant for `/`
oleksbabieiev Oct 21, 2024
2006066
Disallow `relative_path()` between abs and rel paths
oleksbabieiev Oct 21, 2024
c717845
Remove the `SEPARATOR` constant
oleksbabieiev Oct 21, 2024
827171f
Rename `relative_path()`
oleksbabieiev Oct 21, 2024
b436b14
Refactor `test_url.py`
oleksbabieiev Oct 21, 2024
1b620df
Refactor `_path.py`
oleksbabieiev Oct 21, 2024
bfb2c4d
Add a small demo to `1340.feature.rst`
oleksbabieiev Oct 21, 2024
2b87478
Update docs for `URL.__sub__()`
oleksbabieiev Oct 21, 2024
05c2147
Add a PEP 257-compliant docstring for `URL.__sub__()`
oleksbabieiev Oct 21, 2024
42c75aa
Update CHANGES/1340.feature.rst
oleksbabieiev Oct 21, 2024
7da1599
Avoid the `os` namespace
oleksbabieiev Oct 22, 2024
e252ff7
Introduce the `offset` variable
oleksbabieiev Oct 22, 2024
1bebdd0
Merge branch 'master' into relpath
oleksbabieiev Oct 22, 2024
39060d1
Replace `PurePath` with `PurePosixPath`
oleksbabieiev Oct 22, 2024
d683e16
Refactor `_path.py`
oleksbabieiev Oct 22, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add CHANGES/1340.feature.rst
oleksbabieiev committed Oct 20, 2024
commit fe047cc97813333c62215ab83581f954f39c1a19
2 changes: 2 additions & 0 deletions CHANGES/1340.feature.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Added support for using the :meth:`subtraction operator <yarl.URL.__sub__>`
to get the relative path between URLs.