Open ezekg opened 2 weeks ago
For packages for the pypi
engine, we could normalize the package key
per the spec:
class ReleasePackage
normalizes :key, with: -> key { key.gsub(/[-_.]+/, '-') }, if: :pypi?
def pypi? = release_engine.key == 'pypi'
end
Workaround is to update the package's name to be dasherized, e.g. change foo_bar
to foo-bar
.
Looks like PyPI automatically dasherizes package names, e.g. for a package
foo_bar
, PyPI actually makes a request forfoo-bar
, which doesn't exist, resulting in a 307 redirect topypi.org
. Need to look at the spec again to see how this should be handled.