File tree 2 files changed +12
-2
lines changed 2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -146,8 +146,8 @@ def resolve_dependencies(
146
146
147
147
files = []
148
148
149
- if PYPI_SIMPLE_URL not in index_urls :
150
- index_urls = tuple ([ PYPI_SIMPLE_URL ] ) + tuple (index_urls )
149
+ # if PYPI_SIMPLE_URL not in index_urls:
150
+ # index_urls = tuple(index_urls ) + tuple([PYPI_SIMPLE_URL] )
151
151
152
152
# requirements
153
153
for req_file in requirement_files :
Original file line number Diff line number Diff line change @@ -1593,6 +1593,16 @@ def fetch_links(
1593
1593
name using the `index_url` of this repository.
1594
1594
"""
1595
1595
package_url = f"{ self .index_url } /{ normalized_name } "
1596
+ if len (package_url ) >= 256 :
1597
+ base64_re = re .compile (f"https://(.*:.*)@(.*){ normalized_name } " )
1598
+ match = base64_re .search (self .index_url )
1599
+ if match :
1600
+ auth = match .group (1 )
1601
+ username = auth .split (":" )[0 ]
1602
+ token = auth ,split (":" )[1 ]
1603
+ remainder = match .group (2 )
1604
+ new_index_url = f"https://{ username } :{ token } @{ remainder } "
1605
+ package_url = f"{ new_index_url } /{ normalized_name } "
1596
1606
text = CACHE .get (
1597
1607
path_or_url = package_url ,
1598
1608
credentials = self .credentials ,
You can’t perform that action at this time.
0 commit comments