twine: author_email: Invalid email address. for url: https://upload.pypi.org/legacy/

I have been trying to clone a project and then submit to PYPI so it’s downloadable via pip. Currently we are linking to the users github account and no longer want to do that. So we have cloned the repo…

I have tried changing both author and email as well as omiting them, but the error is the same in each case.

setup.py looks like this.  

#!/usr/bin/env python

import os

from setuptools import setup, find_packages

try:
    # Workaround for http://bugs.python.org/issue15881
    import multiprocessing
except ImportError:
    pass

VERSION = '0.4.6'

if __name__ == '__main__':
    setup(
        name = 'hbx-django-tastypie-mongoengine',
        version = VERSION,
        description = "MongoEngine support for django-tastypie. Fixed for Django 1.9+",
        long_description = open(os.path.join(os.path.dirname(__file__), 'README.rst')).read(),
        author = 'wlan slovenija',
        author_email = 'open@wlan-si.net,
        url = 'https://github.com/HBS-HBX/django-tastypie-mongoengine',
        keywords = "REST RESTful tastypie mongo mongodb mongoengine django",
        license = 'AGPLv3',
        packages = find_packages(exclude=('*.tests', '*.tests.*', 'tests.*', 'tests')),
        classifiers = (
            'Development Status :: 4 - Beta',
            'Environment :: Web Environment',
            'Intended Audience :: Developers',
            'License :: OSI Approved :: GNU Affero General Public License v3',
            'Operating System :: OS Independent',
            'Programming Language :: Python',
            'Framework :: Django',
        ),
        zip_safe = False,
        install_requires = (
            'Django>=1.9.7',
            'django-tastypie>=0.13.3',
            'mongoengine>=0.10.6',
            'python-dateutil>=2.5.0',
            'lxml',
            'defusedxml',
            'PyYAML',
            'biplist',
            'python-mimeparse>=1.5.0',
        ),
        test_suite = 'tests.runtests.runtests',
        tests_require = (
            'Django>=1.9.7',
            'django-tastypie>=0.13.3',
            'mongoengine>=0.10.6',
            'python-dateutil>=2.5.0',
            'lxml',
            'defusedxml',
            'PyYAML',
            'biplist',
            'python-mimeparse>=1.5.0',
            'nose',
        ),
    )

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 20 (6 by maintainers)

Most upvoted comments

@di that is a good question. I tried it with the original maintainer first and then changed it to mine thinking that perhaps my PYPI account wanted my email address…

This is the output from the wipe/rebuild

rm -rf dist/; python setup.py sdist; twine upload dist/*
running sdist
running egg_info
writing requirements to hbx_django_tastypie_mongoengine.egg-info/requires.txt
writing hbx_django_tastypie_mongoengine.egg-info/PKG-INFO
writing top-level names to hbx_django_tastypie_mongoengine.egg-info/top_level.txt
writing dependency_links to hbx_django_tastypie_mongoengine.egg-info/dependency_links.txt
reading manifest file 'hbx_django_tastypie_mongoengine.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching '*.txt'
writing manifest file 'hbx_django_tastypie_mongoengine.egg-info/SOURCES.txt'
running check
creating hbx-django-tastypie-mongoengine-0.4.6
creating hbx-django-tastypie-mongoengine-0.4.6/docs
creating hbx-django-tastypie-mongoengine-0.4.6/hbx_django_tastypie_mongoengine.egg-info
creating hbx-django-tastypie-mongoengine-0.4.6/tastypie_mongoengine
creating hbx-django-tastypie-mongoengine-0.4.6/tests
creating hbx-django-tastypie-mongoengine-0.4.6/tests/test_project
creating hbx-django-tastypie-mongoengine-0.4.6/tests/test_project/test_app
creating hbx-django-tastypie-mongoengine-0.4.6/tests/test_project/test_app/api
creating hbx-django-tastypie-mongoengine-0.4.6/tests/test_project/test_app/tests
copying files to hbx-django-tastypie-mongoengine-0.4.6...
copying CONTRIBUTING.rst -> hbx-django-tastypie-mongoengine-0.4.6
copying COPYING -> hbx-django-tastypie-mongoengine-0.4.6
copying LICENSE -> hbx-django-tastypie-mongoengine-0.4.6
copying MANIFEST.in -> hbx-django-tastypie-mongoengine-0.4.6
copying README.rst -> hbx-django-tastypie-mongoengine-0.4.6
copying setup.py -> hbx-django-tastypie-mongoengine-0.4.6
copying docs/Makefile -> hbx-django-tastypie-mongoengine-0.4.6/docs
copying docs/conf.py -> hbx-django-tastypie-mongoengine-0.4.6/docs
copying docs/index.rst -> hbx-django-tastypie-mongoengine-0.4.6/docs
copying docs/installation.rst -> hbx-django-tastypie-mongoengine-0.4.6/docs
copying docs/tests.rst -> hbx-django-tastypie-mongoengine-0.4.6/docs
copying docs/usage.rst -> hbx-django-tastypie-mongoengine-0.4.6/docs
copying hbx_django_tastypie_mongoengine.egg-info/PKG-INFO -> hbx-django-tastypie-mongoengine-0.4.6/hbx_django_tastypie_mongoengine.egg-info
copying hbx_django_tastypie_mongoengine.egg-info/SOURCES.txt -> hbx-django-tastypie-mongoengine-0.4.6/hbx_django_tastypie_mongoengine.egg-info
copying hbx_django_tastypie_mongoengine.egg-info/dependency_links.txt -> hbx-django-tastypie-mongoengine-0.4.6/hbx_django_tastypie_mongoengine.egg-info
copying hbx_django_tastypie_mongoengine.egg-info/not-zip-safe -> hbx-django-tastypie-mongoengine-0.4.6/hbx_django_tastypie_mongoengine.egg-info
copying hbx_django_tastypie_mongoengine.egg-info/requires.txt -> hbx-django-tastypie-mongoengine-0.4.6/hbx_django_tastypie_mongoengine.egg-info
copying hbx_django_tastypie_mongoengine.egg-info/top_level.txt -> hbx-django-tastypie-mongoengine-0.4.6/hbx_django_tastypie_mongoengine.egg-info
copying tastypie_mongoengine/__init__.py -> hbx-django-tastypie-mongoengine-0.4.6/tastypie_mongoengine
copying tastypie_mongoengine/fields.py -> hbx-django-tastypie-mongoengine-0.4.6/tastypie_mongoengine
copying tastypie_mongoengine/paginator.py -> hbx-django-tastypie-mongoengine-0.4.6/tastypie_mongoengine
copying tastypie_mongoengine/resources.py -> hbx-django-tastypie-mongoengine-0.4.6/tastypie_mongoengine
copying tastypie_mongoengine/test_runner.py -> hbx-django-tastypie-mongoengine-0.4.6/tastypie_mongoengine
copying tests/__init__.py -> hbx-django-tastypie-mongoengine-0.4.6/tests
copying tests/manage.py -> hbx-django-tastypie-mongoengine-0.4.6/tests
copying tests/runtests.py -> hbx-django-tastypie-mongoengine-0.4.6/tests
copying tests/test_project/__init__.py -> hbx-django-tastypie-mongoengine-0.4.6/tests/test_project
copying tests/test_project/settings.py -> hbx-django-tastypie-mongoengine-0.4.6/tests/test_project
copying tests/test_project/urls.py -> hbx-django-tastypie-mongoengine-0.4.6/tests/test_project
copying tests/test_project/test_app/__init__.py -> hbx-django-tastypie-mongoengine-0.4.6/tests/test_project/test_app
copying tests/test_project/test_app/documents.py -> hbx-django-tastypie-mongoengine-0.4.6/tests/test_project/test_app
copying tests/test_project/test_app/models.py -> hbx-django-tastypie-mongoengine-0.4.6/tests/test_project/test_app
copying tests/test_project/test_app/views.py -> hbx-django-tastypie-mongoengine-0.4.6/tests/test_project/test_app
copying tests/test_project/test_app/api/__init__.py -> hbx-django-tastypie-mongoengine-0.4.6/tests/test_project/test_app/api
copying tests/test_project/test_app/api/resources.py -> hbx-django-tastypie-mongoengine-0.4.6/tests/test_project/test_app/api
copying tests/test_project/test_app/tests/__init__.py -> hbx-django-tastypie-mongoengine-0.4.6/tests/test_project/test_app/tests
copying tests/test_project/test_app/tests/test_basic.py -> hbx-django-tastypie-mongoengine-0.4.6/tests/test_project/test_app/tests
Writing hbx-django-tastypie-mongoengine-0.4.6/setup.cfg
creating dist
Creating tar archive
removing 'hbx-django-tastypie-mongoengine-0.4.6' (and everything under it)
Uploading distributions to https://pypi.python.org/pypi
Uploading hbx-django-tastypie-mongoengine-0.4.6.tar.gz

HTTPError: 410 Client Error: Gone (This API has been deprecated and removed from legacy PyPI in favor of using the APIs available in the new PyPI.org implementation of PyPI (located at https://pypi.org/). For more information about migrating your use of this API to PyPI.org, please see https://packaging.python.org/guides/migrating-to-pypi-org/#uploading. For more information about the sunsetting of this API, please see https://mail.python.org/pipermail/distutils-sig/2017-June/030766.html) for url: https://pypi.python.org/pypi

@gnulnx If you could include the email address string that was actually giving you the error here instead, it’d be a little easier to figure out why it was giving you an error. 🙂