Hi,
Our 26 year old grand daughter on a visit from Sydney strongly suggested that
I should upload my work to pypi. I think she is right, so I put up a real
effort to learn the tools to make the package presentable. I think I did
finally succeed to wrap my package in a respectable form. I attach the listing
of the setup.py.
I think that the install script, the documentation and the package (in Python
3.2) all work fine - as a test I placed it in my home page -
documentation : http://akabaila.pcug.org.au/matalg-doc/index.html
the package Matalg-0.1.0.tar.gz
http://akabaila.pcug.org.au/downloads/
I am registered user of pypi and have downloaded some packages from there.
However, try as I have, I can not upload to pypi. I attach the dialog between
me and my PC of the last few minutes:
I have a ".pypirc" file in my home directory (password obscured):
[server-login]
username:OldAl
password:xxxxxx
My PC is named (immodestly) "supremo", the os is kubuntu 11.04 natty, my user
name on my PC is "ak", my login name on pypi is "OldAl", the package licence
is LDPL - and here is the dialog:
ak@supremo:/dat/work/py3/Matrix-Algebra$ python setup.py sdist upload
running sdist
running check
reading manifest template 'MANIFEST.in'
writing manifest file 'MANIFEST'
creating Matalg-0.1.0
creating Matalg-0.1.0/matalg-mod
creating Matalg-0.1.0/matalg-pdf
making hard links in Matalg-0.1.0...
hard linking README.txt -> Matalg-0.1.0
hard linking setup.py -> Matalg-0.1.0
hard linking matalg-mod/Matalg.py -> Matalg-0.1.0/matalg-mod
hard linking matalg-mod/__init__.py -> Matalg-0.1.0/matalg-mod
hard linking matalg-mod/testMat.py -> Matalg-0.1.0/matalg-mod
hard linking matalg-pdf/quickStart.pdf -> Matalg-0.1.0/matalg-pdf
hard linking matalg-pdf/referenceMatalg.pdf -> Matalg-0.1.0/matalg-pdf
hard linking matalg-pdf/userManual.pdf -> Matalg-0.1.0/matalg-pdf
Creating tar archive
removing 'Matalg-0.1.0' (and everything under it)
running upload
Submitting dist/Matalg-0.1.0.tar.gz to http://pypi.python.org/pypi
Upload failed (403): Forbidden
ak@supremo:/dat/work/py3/Matrix-Algebra$
It all seem to indicate that either my password is not recognised, my ID is in
doubt - or the more mundane - I am making the same mistake over and over
again.
What can I do (other than banging my head against a wall)?
Algis Kabaila, PhD, MEngSc (UNSW)
http://akabaila.pcug.org.au/StructuralAnalysis.pdf
from distutils.core import setup
setup(name='Matalg',
version='0.1.0',
description='Pure Python3 Matrix Algebra Module.',
long_description='''
==================================
Pure Python3 Linear Algebra Module
==================================
Introduction
============
This module, written in pure Python 3.2, does not require other modules, only
Python 3.2 or higher. Consequently the module is as portable as Python3 itself. The well documented module is easy to use and allows use of the usual
scalar variable syntax for the more complex matrix operations. Thus, for matrix multiplication of matrices **amat** and **bmat** one writes simply::
resultmat = amat * bmat
For the inversion of **amat**, one only needs to write::
resultmat = ~ amat
Matrix naming convention is freely chosen by the end user. The module is well documented with pdf files **quickStart**, **userManual** and **referenceMatalg**.
Documentation and Servicing
===========================
**Quick Start** will get an experienced user up to speed very quickly. **User Manual** has an explanation and examples of most capabilities of the package, whilst the **Reference of Matalg** lists all the methods and functions of the module with brief explanation of each. In addition to the supplied pdf files, the information is also accessible on the web at::
http://akabaila.pcug.org.au/matalg-doc/index.html
The author is an experienced university lecturer and professor, who is prepared in his retirement to consider all reasonable requests for extensions and improvements and/or bug fixes of the module. Your emails will be appreciated::
[email protected]
Last but not least, this module is ideal for the period of transition between Python2.x and Python3.x, as it is powerful enough for medium size examples of several hundred simultaneous linear equations whilst considerably more extensive numerical analysis packages are not readily available in most popular Linux distributions. The development and initial testing of the package was on a kubuntu 11.04 "natty" platform.
Licence
========
The module is licensed under LGPL and is Open Source Freeware. You are welcome to copy it and to share it.
Algis Kabaila, Canberra, 2011.
''',
author='Algis Kabaila',
author_email='[email protected]',
url='http://akabaila.pcug.org.au/matalg-doc/index.html',
packages=['matalg'],
package_dir={'matalg' : 'matalg-mod'},
package_data={'matalg' : ['matalg-pdf/*.pdf', 'matalg-rst/*.rst']},
platforms='POSIX',
license='LGPL',
classifiers=[
'Development Status :: Release 0.1.0',
'Environment :: Console',
'Intended Audience :: End Users/Desktop',
'Intended Audience :: Developers',
'License :: LGPL',
'Operating System :: POSIX',
'Programming Language :: Python',
'Programming Language :: Python3',
'Topic :: Matrix Algebra',
'Topic :: Linear Algebra',
'Topic :: Solution of Simultaneous Equations',
],
)
_______________________________________________
Distutils-SIG maillist - [email protected]
http://mail.python.org/mailman/listinfo/distutils-sig