Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
B
brew
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to JiHu GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
KMSCAKKSCFKA AKFACAMADCAS
brew
Commits
cf37ff65
Commit
cf37ff65
authored
4 years ago
by
Seeker
Browse files
Options
Downloads
Patches
Plain Diff
pypi: do not use formula name as PyPI package name
parent
cc04f3de
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Library/Homebrew/utils/pypi.rb
+9
-8
9 additions, 8 deletions
Library/Homebrew/utils/pypi.rb
with
9 additions
and
8 deletions
Library/Homebrew/utils/pypi.rb
+
9
−
8
View file @
cf37ff65
...
...
@@ -12,15 +12,12 @@ module PyPI
AUTOMATIC_RESOURCE_UPDATE_BLOCKLIST
=
%w[
ansible
ansible@2.8
cdk8s
cloudformation-cli
diffoscope
dxpy
ipython
molecule
pulumi
salt
xonsh
]
.
freeze
private_constant
:AUTOMATIC_RESOURCE_UPDATE_BLOCKLIST
...
...
@@ -67,11 +64,15 @@ module PyPI
return
end
# PyPI package name isn't always the same as the formula name. Try to infer from the URL.
pypi_name
=
if
formula
.
stable
.
url
.
start_with?
(
PYTHONHOSTED_URL_PREFIX
)
url_to_pypi_package_name
formula
.
stable
.
url
else
formula
.
name
pypi_name
=
url_to_pypi_package_name
formula
.
stable
.
url
if
pypi_name
.
nil?
return
if
ignore_non_pypi_packages
odie
<<~
EOS
Could not infer PyPI package name from URL:
#{
Formatter
.
url
(
formula
.
stable
.
url
)
}
EOS
end
version
||=
formula
.
version
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment