pypi submission?

Benjamin Schollnick bschollnick at gmail.com
Tue Apr 7 02:26:16 CEST 2015


> On Apr 6, 2015, at 6:47 PM, Dylan Evans <dylanlee.evans95 at gmail.com> wrote:
> 
> On 6 April 2015 at 23:21:02, Benjamin Schollnick (bschollnick at gmail.com) wrote:
>> And I’ve been messing around with different config files, etc, trying to solve the problem  
>> myself.
>> Can anyone point out what I have done wrong?
> 
> What upload command are you using? I see no files at https://pypi.python.org/pypi/Directory_Caching/1.0.5, so pip search returns an entry but there’s nothing to install.  Usually there’s a table with the first heading ‘File’ which contains links to tarballs etc. 
> 
> The command "python setup.py sdist upload” should do it.

That’s what I have been doing…  

I started with using the guide from Peter Downs (http://peterdowns.com/posts/first-time-with-pypi.html <http://peterdowns.com/posts/first-time-with-pypi.html>).
That seemed to work fine, until I went to install from pip.  And I’ve been hacking at it for about a week or so, with no luck.  I haven’t found any troubleshooting guides for pypi.

Here’s the captures of the register, sdist upload, and a verbose pip install from pypitest.

My guess is that there is something odd in my setup.py file?  

It’s a merge between several different setup.y’s, I’ve been swapping parts out, trying to figure out what is causing it.  But from day 1, using the peter Downs setup.py, this problem existed.

Here’s the current version:

"""Directory Caching - A Caching library for Directories & Files

The Directory Caching library caches and manages directory and file listings data.
The library is being developed for the (Web) Gallery software.
"""

classifiers = """\
Development Status :: 4 - Beta
Intended Audience :: Developers
License :: OSI Approved :: MIT License
Programming Language :: Python
Topic :: Database
Topic :: Software Development :: Libraries :: Python Modules
Operating System :: OS Independent
Operating System :: MacOS :: MacOS X
Operating System :: Microsoft :: Windows
Operating System :: Unix
Programming Language :: Python
Programming Language :: Python :: 2.6
Programming Language :: Python :: 2.7
"""
try:
    from setuptools import setup, find_packages
except:
    from disutils.core import setup, find_packages

__title__ = 'Directory_Caching'
__version__ = '1.10.1'
__author__ = 'Benjamin Schollnick'
__license__ = 'MIT'
__copyright__ = 'Copyright 2015 Benjamin Schollnick'

dependencies = ['natsort', 'scandir']

doclines = __doc__.split("\n")

#
#   Modelled after requests - https://github.com/kennethreitz/requests/blob/master/setup.py
#
setup(
    name='Directory_Caching',
    version=__version__,
    description = doclines[0],
    long_description = "\n".join(doclines[2:]),
    author=__author__,
    author_email='benjamin at schollnick.net',
    url='https://github.com/bschollnick/Directory_Caching',
    license="MIT",
    maintainer='Benjamin Schollnick',
    maintainer_email='benjamin at schollnick.net',
    packages=find_packages(),
    package_dir={'directory_caching': 'directory_caching'},
    include_package_data=True,
#    platforms=["Any"],
    download_url = 'https://github.com/bschollnick/Directory_Caching/tarball/1.05',
    install_requires=dependencies,
    keywords = ['caching', 'files', 'directories', 'scandir', 'naturalsort'],
    classifiers=filter(None, classifiers.split("\n")),
)


nerv:directory_caching Benjamin$ python setup.py register -r pypitest
    running register
    running egg_info
    writing requirements to Directory_Caching.egg-info/requires.txt
    writing Directory_Caching.egg-info/PKG-INFO
    writing top-level names to Directory_Caching.egg-info/top_level.txt
    writing dependency_links to Directory_Caching.egg-info/dependency_links.txt
    reading manifest file 'Directory_Caching.egg-info/SOURCES.txt'
    writing manifest file 'Directory_Caching.egg-info/SOURCES.txt'
    running check
    Registering Directory_Caching to https://testpypi.python.org/pypi
    Server response (200): OK


nerv:directory_caching Benjamin$ python setup.py sdist upload -r pypitest
    running sdist
    running egg_info
    writing requirements to Directory_Caching.egg-info/requires.txt
    writing Directory_Caching.egg-info/PKG-INFO
    writing top-level names to Directory_Caching.egg-info/top_level.txt
    writing dependency_links to Directory_Caching.egg-info/dependency_links.txt
    reading manifest file 'Directory_Caching.egg-info/SOURCES.txt'
    writing manifest file 'Directory_Caching.egg-info/SOURCES.txt'
    warning: sdist: standard file not found: should have one of README, README.rst, README.txt

    running check
    creating Directory_Caching-1.10.1
    creating Directory_Caching-1.10.1/Directory_Caching.egg-info
    creating Directory_Caching-1.10.1/directory_caching
    making hard links in Directory_Caching-1.10.1...
    hard linking setup.cfg -> Directory_Caching-1.10.1
    hard linking setup.py -> Directory_Caching-1.10.1
    hard linking Directory_Caching.egg-info/PKG-INFO -> Directory_Caching-1.10.1/Directory_Caching.egg-info
    hard linking Directory_Caching.egg-info/SOURCES.txt -> Directory_Caching-1.10.1/Directory_Caching.egg-info
    hard linking Directory_Caching.egg-info/dependency_links.txt -> Directory_Caching-1.10.1/Directory_Caching.egg-info
    hard linking Directory_Caching.egg-info/requires.txt -> Directory_Caching-1.10.1/Directory_Caching.egg-info
    hard linking Directory_Caching.egg-info/top_level.txt -> Directory_Caching-1.10.1/Directory_Caching.egg-info
    hard linking directory_caching/__init__.py -> Directory_Caching-1.10.1/directory_caching
    hard linking directory_caching/directory_caching_test.py -> Directory_Caching-1.10.1/directory_caching
    copying setup.cfg -> Directory_Caching-1.10.1
    Writing Directory_Caching-1.10.1/setup.cfg
    Creating tar archive
    removing 'Directory_Caching-1.10.1' (and everything under it)
    running upload
    Submitting dist/Directory_Caching-1.10.1.tar.gz to https://testpypi.python.org/pypi
    Server response (200): OK
    nerv:directory_caching Benjamin$ 


nerv:directory_caching Benjamin$ pip install -i https://testpypi.python.org/pypi directory_caching
    Collecting directory-caching
      Could not find any downloads that satisfy the requirement directory-caching
      No distributions at all found for directory-caching
    nerv:directory_caching Benjamin$ pip install -v -i https://testpypi.python.org/pypi directory_caching
    Collecting directory-caching
      Getting page https://testpypi.python.org/pypi/directory-caching/
      Starting new HTTPS connection (1): testpypi.python.org
      "GET /pypi/directory-caching/ HTTP/1.1" 301 0
      "GET /pypi/Directory_Caching HTTP/1.1" 200 13136
      URLs to search for versions for directory-caching:
      * https://testpypi.python.org/pypi/directory-caching/
      Getting page https://testpypi.python.org/pypi/directory-caching/
      "GET /pypi/Directory_Caching HTTP/1.1" 200 13136
      Analyzing links from page https://testpypi.python.org/pypi/Directory_Caching
        Skipping link http://www.python.org (from https://testpypi.python.org/pypi/Directory_Caching); not a file
        Skipping link https://testpypi.python.org/pypi/Directory_Caching#left-hand-navigation (from https://testpypi.python.org/pypi/Directory_Caching); not a file
        Skipping link https://testpypi.python.org/pypi/Directory_Caching#content-body (from https://testpypi.python.org/pypi/Directory_Caching); not a file
        Skipping link https://testpypi.python.org/pypi (from https://testpypi.python.org/pypi/Directory_Caching); not a file
        Skipping link https://testpypi.python.org/pypi?%3Aaction=browse (from https://testpypi.python.org/pypi/Directory_Caching); not a file
        Skipping link https://testpypi.python.org/pypi?%3Aaction=submit_form (from https://testpypi.python.org/pypi/Directory_Caching); not a file
        Skipping link https://testpypi.python.org/pypi?%3Aaction=list_classifiers (from https://testpypi.python.org/pypi/Directory_Caching); not a file
        Skipping link https://testpypi.python.org/pypi?%3Aaction=index (from https://testpypi.python.org/pypi/Directory_Caching); not a file
        Skipping link https://testpypi.python.org/pypi?%3Aaction=rss (from https://testpypi.python.org/pypi/Directory_Caching); not a file
        Skipping link https://testpypi.python.org/pypi?%3Aaction=packages_rss (from https://testpypi.python.org/pypi/Directory_Caching); not a file
        Skipping link https://testpypi.python.org/pypi?:action=browse&c=533&show=all (from https://testpypi.python.org/pypi/Directory_Caching); not a file
        Skipping link http://wiki.python.org/moin/CheeseShopTutorial (from https://testpypi.python.org/pypi/Directory_Caching); not a file
        Skipping link https://testpypi.python.org/security (from https://testpypi.python.org/pypi/Directory_Caching); not a file
        Skipping link http://sourceforge.net/tracker/?group_id=66150&atid=513504 (from https://testpypi.python.org/pypi/Directory_Caching); not a file
        Skipping link https://bitbucket.org/pypa/pypi/issues (from https://testpypi.python.org/pypi/Directory_Caching); not a file
        Skipping link http://www.python.org/sigs/distutils-sig/ (from https://testpypi.python.org/pypi/Directory_Caching); not a file
        Skipping link http://wiki.python.org/moin/CheeseShopDev (from https://testpypi.python.org/pypi/Directory_Caching); not a file
        Skipping link http://www.python.org/about (from https://testpypi.python.org/pypi/Directory_Caching); not a file
        Skipping link http://www.python.org/news (from https://testpypi.python.org/pypi/Directory_Caching); not a file
        Skipping link http://www.python.org/doc (from https://testpypi.python.org/pypi/Directory_Caching); not a file
        Skipping link http://www.python.org/download (from https://testpypi.python.org/pypi/Directory_Caching); not a file
        Skipping link http://www.python.org/community (from https://testpypi.python.org/pypi/Directory_Caching); not a file
        Skipping link http://www.python.org/psf (from https://testpypi.python.org/pypi/Directory_Caching); not a file
        Skipping link http://www.python.org/dev (from https://testpypi.python.org/pypi/Directory_Caching); not a file
        Skipping link https://testpypi.python.org/pypi/Directory_Caching (from https://testpypi.python.org/pypi/Directory_Caching); not a file
        Skipping link https://testpypi.python.org/pypi?%3Aaction=login (from https://testpypi.python.org/pypi/Directory_Caching); not a file
        Skipping link https://testpypi.python.org/pypi?%3Aaction=register_form (from https://testpypi.python.org/pypi/Directory_Caching); not a file
        Skipping link https://testpypi.python.org/pypi?%3Aaction=forgotten_password_form (from https://testpypi.python.org/pypi/Directory_Caching); not a file
        Skipping link https://testpypi.python.org/pypi?:action=openid (from https://testpypi.python.org/pypi/Directory_Caching); not a file
        Skipping link https://testpypi.python.org/pypi?:action=login&provider=Google (from https://testpypi.python.org/pypi/Directory_Caching); not a file
        Skipping link https://testpypi.python.org/pypi?:action=login&provider=Launchpad (from https://testpypi.python.org/pypi/Directory_Caching); not a file
        Skipping link https://testpypi.python.org/pypi/Directory_Caching/1.10.1 (from https://testpypi.python.org/pypi/Directory_Caching); unknown archive format: .1
        Skipping link https://testpypi.python.org/pypi/Directory_Caching/1.0.504 (from https://testpypi.python.org/pypi/Directory_Caching); unknown archive format: .504
        Skipping link https://testpypi.python.org/pypi/Directory_Caching/1.0.503 (from https://testpypi.python.org/pypi/Directory_Caching); unknown archive format: .503
        Skipping link https://testpypi.python.org/pypi/Directory_Caching/1.0.502 (from https://testpypi.python.org/pypi/Directory_Caching); unknown archive format: .502
        Skipping link https://testpypi.python.org/pypi/Directory_Caching/1.0.501 (from https://testpypi.python.org/pypi/Directory_Caching); unknown archive format: .501
        Skipping link https://testpypi.python.org/pypi/Directory_Caching/1.0.51 (from https://testpypi.python.org/pypi/Directory_Caching); unknown archive format: .51
        Skipping link https://testpypi.python.org/pypi/Directory_Caching/1.0.10 (from https://testpypi.python.org/pypi/Directory_Caching); unknown archive format: .10
        Skipping link https://testpypi.python.org/pypi/Directory_Caching/1.0.9 (from https://testpypi.python.org/pypi/Directory_Caching); unknown archive format: .9
        Skipping link https://testpypi.python.org/pypi/Directory_Caching/1.0.8 (from https://testpypi.python.org/pypi/Directory_Caching); unknown archive format: .8
        Skipping link https://testpypi.python.org/pypi/Directory_Caching/1.0.7 (from https://testpypi.python.org/pypi/Directory_Caching); unknown archive format: .7
        Skipping link https://testpypi.python.org/pypi/Directory_Caching/1.0.6 (from https://testpypi.python.org/pypi/Directory_Caching); unknown archive format: .6
        Skipping link https://testpypi.python.org/pypi/Directory_Caching/1.0.6b1 (from https://testpypi.python.org/pypi/Directory_Caching); unknown archive format: .6b1
        Skipping link https://testpypi.python.org/pypi/Directory_Caching/1.0.5 (from https://testpypi.python.org/pypi/Directory_Caching); unknown archive format: .5
        Skipping link http://www.python.org/about/website (from https://testpypi.python.org/pypi/Directory_Caching); not a file
        Skipping link https://www.fastly.com/ (from https://testpypi.python.org/pypi/Directory_Caching); not a file
        Skipping link http://developer.rackspace.com/ (from https://testpypi.python.org/pypi/Directory_Caching); not a file
        Skipping link http://www.timparkin.co.uk/ (from https://testpypi.python.org/pypi/Directory_Caching); not a file
        Skipping link http://www.python.org/about/legal (from https://testpypi.python.org/pypi/Directory_Caching); not a file
      Could not find any downloads that satisfy the requirement directory-caching
      Cleaning up...
      No distributions at all found for directory-caching
      Exception information:
      Traceback (most recent call last):
        File "/Library/Python/2.7/site-packages/pip/basecommand.py", line 232, in main
          status = self.run(options, args)
        File "/Library/Python/2.7/site-packages/pip/commands/install.py", line 339, in run
          requirement_set.prepare_files(finder)
        File "/Library/Python/2.7/site-packages/pip/req/req_set.py", line 333, in prepare_files
          upgrade=self.upgrade,
        File "/Library/Python/2.7/site-packages/pip/index.py", line 397, in find_requirement
          'No distributions at all found for %s' % req
      DistributionNotFound: No distributions at all found for directory-caching
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20150406/adb89941/attachment.html>


More information about the Python-list mailing list