-
Notifications
You must be signed in to change notification settings - Fork 308
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
Problems with underscores #47
Comments
Is this still an issue? If so, can you provide some greater detail? |
Yes this is still an issue, although last time I tried it only failed on the sdist and succeeded on the wheel I believe. To replicate use twine to upload a package with an underscore in the name (this bug was originally filed for |
I wasn't able to reproduce this with testpypi and the requests-toolbelt sdist (and I tried with a wheel too): https://testpypi.python.org/pypi/requests-toolbelt/0.3.1 Maybe @dstufft can clarify? |
I think you need something named foo_bar not foo-bar to reproduce.
|
The file I uploaded was requests_toolbelt-0.3.1.tar.gz to a project that was On Tue, Dec 02, 2014 at 01:19:52PM -0800, Donald Stufft wrote:
|
Hmm. Did you try uploading the wheel of requests_toplbelt ?
|
Yep. Both were successful. On Tue, Dec 02, 2014 at 01:24:46PM -0800, Donald Stufft wrote:
|
The title itself should have an underscore in it setup.py
|
I don't remember if the name has a |
So if I apply this patch to the source of diff --git a/requests_toolbelt/__init__.py b/requests_toolbelt/__init__.py
index ce5e994..2721ff9 100644
--- a/requests_toolbelt/__init__.py
+++ b/requests_toolbelt/__init__.py
@@ -13,7 +13,7 @@ __title__ = 'requests-toolbelt'
__authors__ = 'Ian Cordasco, Cory Benfield'
__license__ = 'Apache v2.0'
__copyright__ = 'Copyright 2014 Ian Cordasco, Cory Benfield'
-__version__ = '0.3.1'
+__version__ = '0.3.1post1'
__version_info__ = tuple(int(i) for i in __version__.split('.'))
from .adapters import SSLAdapter, SourceAddressAdapter
diff --git a/setup.py b/setup.py
index 6f903f9..fbf83ea 100644
--- a/setup.py
+++ b/setup.py
@@ -38,7 +38,7 @@ packages = [
]
setup(
- name="requests-toolbelt",
+ name="requests_toolbelt",
version=__version__,
description="A utility belt for advanced users of python-requests",
long_description="\n\n".join([open("README.rst").read(), Then I get: $ twine upload -r test dist/requests_toolbelt-0.3.1post1.tar.gz
Uploading distributions to https://testpypi.python.org/pypi
Uploading requests_toolbelt-0.3.1post1.tar.gz
HTTPError: 403 Client Error: You are not allowed to edit 'requests_toolbelt' package information PyPI considers |
Awesome, thanks @sigmavirus24! Next time we do a |
I'm hoping to get 1.4 out soon. I have a due date set for it and there isn't much left to do for it, so I might ship it ahead of time. |
Package names with underscores cause twine trouble. I'm not sure if this is a twine issue or a pypi API issue or what, but it's related to
pkg_resources.safe_name
.The text was updated successfully, but these errors were encountered: