hardayal / hamcrest

Automatically exported from code.google.com/p/hamcrest
0 stars 0 forks source link

Make hamcrest-python available trough easy_install #73

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Python features an handy way for distributing packages trough pypi.

For example the following command will install the nose library:
{{{
   sudo easy_install nose
}}}

It would be nice if hamcrest-python will support this feature as well.

To implement this feature you need to:
 1. prepare a setup.py script
 2. create an account on pypi.python.org
 3. run `python setup.py register` which update the information on pypi.
 4. run `python setup.py sdist` which prepare the tarball and upload it to
pypi. 

If you want you can adapt the setup.py script of my trash-cli software.

Original issue reported on code.google.com by andrea.f...@gmail.com on 22 Mar 2009 at 10:38

GoogleCodeExporter commented 8 years ago
I am currently knocking up a setup.py script 'cause it's so annoying that there 
isn't one.

First step is for it to be absorbed, appropriately modified and added to SCM.
Second step is to do all the nice PyPI stuff.

At least if it's in teh source, user can download and install manually... 
rather than manage inter project references in Eclipse/PyDev, as I am doing 
q(`_`#!)p

Original comment by dbisho...@gmail.com on 29 Jul 2010 at 1:50

GoogleCodeExporter commented 8 years ago
'''
Created on 29 July 2010

Provided to jump start the provision of a setup.py script for use
with setuptools and easy_install; this comment should be changed
as and when

@author: Darren Bishop
'''
import sys, os
from setuptools import find_packages
from distutils.core import setup

setup(
    name='hamcrest-python',
    version='1.1',
    description='Hamcrest - library of matchers for building test expressions ',
    packages=find_packages(),
    author='Darren Bishop',
    author_email='dev at hamcrest-python dot com',
    license='BSD',
    url='http://code.google.com/p/hamcrest/',
    keywords='hamcrest python unittest testing tdd'
)

Original comment by dbisho...@gmail.com on 29 Jul 2010 at 2:27

Attachments:

GoogleCodeExporter commented 8 years ago

Original comment by jon.m.r...@gmail.com on 3 May 2011 at 6:38

GoogleCodeExporter commented 8 years ago
To all commenters on this; if you are wondering where to find it, the PyPi 
module name is 'PyHamcrest'

Original comment by off...@offby1.net on 3 May 2011 at 6:40