Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #88549 > unrolled thread

pypi submission?

Started byBenjamin Schollnick <bschollnick@gmail.com>
First post2015-04-06 18:12 -0400
Last post2015-04-06 18:02 -0700
Articles 2 — 2 participants

Back to article view | Back to comp.lang.python


Contents

  pypi submission? Benjamin Schollnick <bschollnick@gmail.com> - 2015-04-06 18:12 -0400
    Re: pypi submission? Dave Hein <jenesuispasdave@gmail.com> - 2015-04-06 18:02 -0700

#88549 — pypi submission?

FromBenjamin Schollnick <bschollnick@gmail.com>
Date2015-04-06 18:12 -0400
Subjectpypi submission?
Message-ID<mailman.73.1428358749.12925.python-list@python.org>

[Multipart message — attachments visible in raw view] — view raw

Folks,

I’m having issues with submitting to pypi.

I can register and upload my package.

nerv:~ Benjamin$ pip search directory_caching
Directory_Caching         - A Caching library for Directories & Files
nerv:~ Benjamin$ 

but, if you try to install it using pip:

pip install directory_caching
Reading Profile from ~/dropbox/shellscripts/profile
nerv:~ Benjamin$ pip install directory_caching
Collecting directory-caching
  Could not find any downloads that satisfy the requirement directory-caching
  No distributions at all found for directory-caching

If you do a verbose:

Last login: Mon Apr  6 18:05:02 on ttys000
Reading Profile from ~/dropbox/shellscripts/profile
nerv:~ Benjamin$ pip -v install directory_caching
Collecting directory-caching
  Getting page https://pypi.python.org/simple/directory-caching/
  URLs to search for versions for directory-caching:
  * https://pypi.python.org/simple/directory-caching/
  Getting page https://pypi.python.org/simple/directory-caching/
  Analyzing links from page https://pypi.python.org/simple/directory-caching/
  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

The package is here, https://github.com/bschollnick/Directory_Caching <https://github.com/bschollnick/Directory_Caching>.

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?

If a simpler package would be useful, then https://github.com/bschollnick/semantic_url <https://github.com/bschollnick/semantic_url>

I haven’t attempted to release semantic_url yet, simply because I’m trying to solve Directory_Caching first.
And yes, I know caching files & directory listings is a black voodoo art, and asking for trouble.

This attempts to validate three different ways, and I’ve been using it for quite a while without any issue.  It’s invaluable in the web gallery when you have a directory that can have 2-4K worth of files.

		- Benjamin

[toc] | [next] | [standalone]


#88556

FromDave Hein <jenesuispasdave@gmail.com>
Date2015-04-06 18:02 -0700
Message-ID<3cbfe0cb-6af1-4cd0-b540-44867f94ce24@googlegroups.com>
In reply to#88549
On Monday, April 6, 2015 at 5:19:29 PM UTC-5, Benjamin Schollnick wrote:
> Folks,
> 
> 
> I'm having issues with submitting to pypi.
> 
> 
> I can register and upload my package.
> 
> 
> 
> nerv:~ Benjamin$ pip search directory_caching
> Directory_Caching         - A Caching library for Directories & Files
> nerv:~ Benjamin$ 
> 
> 
> but, if you try to install it using pip:
> 
> 
> 
> pip install directory_caching
> Reading Profile from ~/dropbox/shellscripts/profile
> nerv:~ Benjamin$ pip install directory_caching
> Collecting directory-caching
>   Could not find any downloads that satisfy the requirement directory-caching
>   No distributions at all found for directory-caching
> 
> 

Try adding the "--pre" option. If your version number is an 'alpha' or 'pre' or 'rc' version (like 1.0a1 or 1.0rc4), then pip won't install it by default ... it will only install 'released' versions (like 1.0 or 1.0.1).

Adding the --pre option tells pip you actually do want the pre-release version. So:

pip install --pre directory-caching


>
[snip]

> 
> 		- Benjamin

--
Dave Hein

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web