On Tue, Apr 1, 2008 at 2:19 PM, Colin Gillespie <[EMAIL PROTECTED]> wrote: > > Hi Ondrej, > > Warning: I'm not an expert on pypi or setup.py file, so these are only > suggestions. > > > > > Thanks for noticing. The tests/ directories are our tests, so I don't > > think they should be imported. Why should there by __init__ files in > > it? > Could it be because in setup.py you have: > > packages = ['sympy'] + [ m[1] for m in modules ] + tests + > pyglet_packages, > > i.e. you are installing tests
That is needed, so that "./setup.py sdist" installs test as well into the released tar.gz. If there is some other way to do that, please let us know. > > > > To be honest, I never use pypi, as I find it not so convenient (and > > the web interface messy). > I quite like the easy_install option. Right. > > However I understand some people use it and > > it helps for them, so I'd like to fix it. Do you know how to do it > > from the command line? > > > > This is what I get: > > > > $ ./setup.py register > > running register > > warning: register: missing meta-data: either (author and author_email) > > or (maintainer and maintainer_email) must be supplied > > Using PyPI login from /home/ondra/.pypirc > > Server response (200): OK > > $ > I think adding the lines in setup.py: > > author='Fred', > author_email = '[EMAIL PROTECTED]', > > should do the trick. Ok, I made some progress. I added this patch: $ hg di diff -r 331b12d7abfd setup.py --- a/setup.py Tue Apr 01 15:37:12 2008 +0200 +++ b/setup.py Tue Apr 01 15:46:01 2008 +0200 @@ -275,6 +275,8 @@ setup( url = 'http://code.google.com/p/sympy', packages = ['sympy'] + [ m[1] for m in modules ] + tests + \ pyglet_packages, + author = "SymPy Development Team", + author_email = "sympy@googlegroups.com", scripts = ['bin/isympy'], ext_modules = [], package_data = { 'sympy.utilities.mathml' : ['data/*.xsl'] }, and then: $ ./setup.py register running register Using PyPI login from /home/ondra/.pypirc Server response (200): OK $ This looks good now. Indeed, a new package "sympy" has been submitted, with the correct version. But not the tarball, just the info: http://pypi.python.org/pypi/sympy/0.5.13-hg Now, do you know how to submit the tarball as well? The tutorial (http://wiki.python.org/moin/CheeseShopTutorial) says: "appending the "upload" command to a setup.py source dist or built dist command, eg "python setup.py sdist upload", or" But clearly that doesn't work: $ python setup.py sdist upload usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...] or: setup.py --help [cmd1 cmd2 ...] or: setup.py --help-commands or: setup.py cmd --help error: invalid command 'upload' $ Anyone know what is wrong? Thanks, Ondrej --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "sympy" group. To post to this group, send email to sympy@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sympy?hl=en -~----------~----~----~----~------~----~------~--~---