Currently I'm using a very ugly approach based on a regex for finding links and taking them apart.
I'm unhappy with the code, so I'm asking for nicer solutions, preferably using only the stdlib.
Edit
The task at hand has 2 parts:
Find all distributions that match a certain criteria (like prefix of the name).
Find all versions availa...
What's the magic "python setup.py some_incantation_here" command to upload a package to PyPI, in a form that can be downloaded to get the original package in its original form?
I have a package with some source and a few image files (as package_data). If I do "setup.py sdist register upload", the .tar.gz has the image files excluded. ...
Suppose I'd like to upload some eggs on the Cheese Shop. Do I have any obligation? Am I required to provide a license? Am I required to provide tests? Will I have any obligations to the users of this egg ( if any ) ?
I haven't really released anything as open source 'till now, and I'd like to know the process.
...
I would like to run my own internal pypi server, for egg distribution within my organization.
I have found a few projects, such as:
http://pypi.python.org/pypi/EggBasket/
http://plone.org/products/plonesoftwarecenter
As I understand it, pypi.python.org uses software called Cheese Shop.
My questions:
Why can't I use cheeseshop ...
I wrote some code that I'd like to package as an egg. This is my directory structure:
src/
src/tests
src/tests/test.py # this has several tests for the movie name parser
src/torrent
src/torrent/__init__.py
src/torrent/movienameparser
src/torrent/movienameparser/__init__.py # this contains the code
I'd like to package this directory s...
I've been using zc.buildout more and more and I'm encountering problems with some recipes that I have solutions to.
These packages generally fall into several categories:
Package with no obvious links to a project site
Package with links to free hosted service like github or google code
Setup #2 is better then #1, but not much bett...
I've got several eggs I maintain on Pypi but up until now I've always focused on Python 2.5x.
I'd like to release my eggs under both Python 2.5 & Python 2.6 in an automated fashion i.e.
running tests
generating doc
preparing eggs
uploading to Pypi
How do you guys achieve this?
A related question: how do I tag an egg to be "version ...
I have installed a python package with python setup.py install.
How do I uninstall it?
...
What is the best way to install the latest version of pyfacebook with buildout? The package is hosted on github and is not on pypi. This system doesn't have git installed, so a git-based recipe isn't unfortunately not an option. The github URL is http://github.com/sciyoshi/pyfacebook. TIA!
...
I have an open-source Python project (called GarlicSim), and I maintain 4 different versions of it for Python versions 2.4, 2.5, 2.6 and 3.1. Yes, maybe it's unusual, but I like using as much features as possible. I keep them in 4 different forks of the repository.
Now I want to upload my project to the cheeseshop. What's the way to do ...
I'm developing an Python egg that has several .txt dependencies (they're templates used to generate files by the egg itself), and I'm struggling to get those dependencies copied to site-packages during setup.py install. According to the distribute documentation...
Filesystem of my package:
setup.py
package
|--- __init__.py
|--- main.py...
I'm trying to upload an MSI binary distribution of my project to the cheeseshop. I'm doing setup.py bdist_msi register upload. It builds the project and the setup script finishes, but then I get:
error: garlicsim-0.1: No such file or directory
And no .msi file is uploaded to PyPi.
Any clue?
...
I'm trying to upload my package to PyPI. It asks me to identify, I do, it gives an OK response (which doesn't happen unless the identification is right), but then it claims I didn't identify! Why?
[...]
removing 'build\bdist.win32\egg' (and everything under it)
running register
We need to know who you are, so please choose either:
1. u...
For a package of mine, I have a README.rst file that is read into the setup.py's long description like so:
readme = open('README.rst', 'r')
README_TEXT = readme.read()
readme.close()
setup(
...
long_description = README_TEXT,
....
)
This way that I can have the README file show up on my github page every time I commit...
I want to put all the requirements of a repoze Zope2 install in a pip requirements file. Most of the repoze packages don't seem to be on PyPi, but there's an alternative PyPi index for them here. But I can't figure out how to tell pip to use that index together with a requirements file. For single packages, it's easy
pip install zopelib...
After installing the BitTorrent-bencode package, either via easy_install BitTorrent-bencode or pip install BitTorrent-bencode, or by downloading the tarball and installing that via easy_install $tarball, I discover that /usr/local/lib/python2.6/dist-packages/BitTorrent_bencode-5.0.8-py2.6.egg/ contains EGG-INFO/ and test/ directories. A...
A tweet reads:
Don't use easy_install, unless you
like stabbing yourself in the face.
Use pip.
Why use pip over easy_install? Doesn't the fault lie with PyPI and package authors mostly? If an author uploads crap source tarball (eg: missing files, no setup.py) to PyPI, then both pip and easy_install will fail. Other than cosmet...
I've just started working with setuptools and virtualenv. My package requires the latest python-gearman that is only available from GitHub. The python-gearman version that's on PyPI is an old one. The Github source is setuptools-compatible, i.e. has setup.py, etc. Is there a way to make setuptools download and install the new version ins...
PyPi shows matplotlib 1.0.0. However, when I install matplotlib via pip into a virtualenv, version 0.91.1 is installed.
Why the difference in versions?
Is there a way to pip install matplotlib 1.0.0?
Research
It appears that matplotlib's DOAP record on PyPi is pointing to the correct version. Below is the DOAP record for reference:...
hi,
i wrote a little module and i would like to know what are the basic steps to package it in order to send it to pipy:
what is the file hierarchy?
how should i name files?
should i use distutils to create PKG-INFO?
where should i include my documentation (made with sphinx)?
...