Converted to a buildout.
This commit is contained in:
parent
61cb667dd2
commit
876c68a0fc
16
CHANGES.txt
16
CHANGES.txt
|
@ -1,20 +1,20 @@
|
|||
zope.interface Package Changelog
|
||||
================================
|
||||
zope.interface Package Changes
|
||||
******************************
|
||||
|
||||
zope.interface version 3.2.0.2 (2006/04/15)
|
||||
-------------------------------------------
|
||||
===========================================
|
||||
|
||||
- Fix packaging bug: 'package_dir' must be a *relative* path.
|
||||
|
||||
|
||||
zope.interface version 3.2.0.1 (2006/04/14)
|
||||
-------------------------------------------
|
||||
===========================================
|
||||
|
||||
- Packaging change: suppress inclusion of 'setup.cfg' in 'sdist' builds.
|
||||
|
||||
|
||||
zope.interface version 3.2.0 (2006/01/05)
|
||||
-----------------------------------------
|
||||
=========================================
|
||||
|
||||
- Corresponds to the verison of the zope.interface package shipped as part of
|
||||
the Zope 3.2.0 release.
|
||||
|
@ -23,7 +23,7 @@ zope.interface version 3.2.0 (2006/01/05)
|
|||
|
||||
|
||||
zope.interface version 3.1.0 (2005/10/03)
|
||||
-----------------------------------------
|
||||
=========================================
|
||||
|
||||
- Corresponds to the verison of the zope.interface package shipped as part of
|
||||
the Zope 3.1.0 release.
|
||||
|
@ -38,7 +38,7 @@ zope.interface version 3.1.0 (2005/10/03)
|
|||
|
||||
|
||||
zope.interface version 3.0.1 (2005/07/27)
|
||||
-----------------------------------------
|
||||
=========================================
|
||||
|
||||
- Corresponds to the verison of the zope.interface package shipped as part of
|
||||
the Zope X3.0.1 release.
|
||||
|
@ -48,7 +48,7 @@ zope.interface version 3.0.1 (2005/07/27)
|
|||
|
||||
|
||||
zope.interface version 3.0.0 (2004/11/07)
|
||||
-----------------------------------------
|
||||
=========================================
|
||||
|
||||
- Corresponds to the verison of the zope.interface package shipped as part of
|
||||
the Zope X3.0.0 release.
|
||||
|
|
83
INSTALL.txt
83
INSTALL.txt
|
@ -1,83 +0,0 @@
|
|||
Installing This Package
|
||||
=======================
|
||||
|
||||
Prerequisites
|
||||
-------------
|
||||
|
||||
The installation steps below assume that you have the cool new 'setuptools'
|
||||
package installed in your Python. Here is where to get it:
|
||||
|
||||
$ wget http://peak.telecommunity.com/dist/ez_setup.py
|
||||
$ /path/to/your/python ez_setup.py # req. write access to 'site-packages'
|
||||
|
||||
|
||||
- Docs for EasyInstall:
|
||||
http://peak.telecommunity.com/DevCenter/EasyInstall
|
||||
|
||||
- Docs for setuptools:
|
||||
http://peak.telecommunity.com/DevCenter/setuptools
|
||||
|
||||
- Docs for eggs:
|
||||
http://peak.telecommunity.com/DevCenter/PythonEggs
|
||||
|
||||
|
||||
Installing a Development Checkout
|
||||
---------------------------------
|
||||
|
||||
Check out the package from subversion:
|
||||
|
||||
$ svn co svn+ssh://svn.zope.org/repos/main/zope.interface/trunk \
|
||||
src/zope.interface
|
||||
$ cd src/zope.interface
|
||||
|
||||
Install it as a "devlopment egg" (which also installs its "hard"
|
||||
dependencies):
|
||||
|
||||
$ /path/to/your/python setup.py develop
|
||||
|
||||
The installation of dependency eggs uses the 'setup.cfg' file in
|
||||
the checkout. You can supply '--find-links' on the command line to
|
||||
point it at a non-standard package repository.
|
||||
|
||||
|
||||
Running the Tests
|
||||
-----------------
|
||||
|
||||
To test the package, you will also need the 'zope.testing' package, which
|
||||
can't (yet) be automatically installed. Eventually, you should be able to
|
||||
type:
|
||||
|
||||
$ /path/to/your/python setup.py test
|
||||
|
||||
and have it install the "testing dependencies." Today, the workaround
|
||||
is to install it manually:
|
||||
|
||||
$ /path/to/easy_install --find-links="...." zope.testing
|
||||
|
||||
You can then run the tests (finally) from the checkout directory:
|
||||
|
||||
$ /path/to/your/python test.py
|
||||
Running:
|
||||
.............
|
||||
Ran 13 tests with 0 failures and 0 errors in 0.094 seconds.
|
||||
|
||||
|
||||
Installing a Source Distribution
|
||||
--------------------------------
|
||||
|
||||
You can also install it from a source distribution:
|
||||
|
||||
$ /path/to/easy_install --find-links="...." -eb src zope.interface
|
||||
$ cd src/zope.interface
|
||||
$ /path/to/your/python setup.py develop
|
||||
|
||||
|
||||
Installing a Binary Egg
|
||||
-----------------------
|
||||
|
||||
Install the package as a "binary egg" (which also installs its "hard"
|
||||
dependencies):
|
||||
|
||||
$ /path/to/easy_install --find-links="...." zope.interface
|
||||
|
||||
|
|
@ -1 +0,0 @@
|
|||
exclude setup.cfg
|
40
README.txt
40
README.txt
|
@ -1,40 +1,8 @@
|
|||
zope.interface Package Readme
|
||||
=============================
|
||||
***************
|
||||
Zope Interfaces
|
||||
***************
|
||||
|
||||
Overview
|
||||
--------
|
||||
.. contents::
|
||||
|
||||
Interfaces are a mechanism for labeling objects as conforming to a given
|
||||
API or contract.
|
||||
|
||||
See ./src/zope/interface/README.txt for details and example usage.
|
||||
|
||||
Changes
|
||||
-------
|
||||
|
||||
See CHANGES.txt.
|
||||
|
||||
Installation
|
||||
------------
|
||||
|
||||
See INSTALL.txt.
|
||||
|
||||
|
||||
Developer Resources
|
||||
-------------------
|
||||
|
||||
- Subversion browser:
|
||||
|
||||
http://svn.zope.org/zope.interface/
|
||||
|
||||
- Read-only Subversion checkout:
|
||||
|
||||
$ svn co svn://svn.zope.org/repos/main/zope.interface/trunk
|
||||
|
||||
- Writable Subversion checkout:
|
||||
|
||||
$ svn co svn://svn.zope.org/repos/main/zope.interface/trunk
|
||||
|
||||
- Note that the 'src/zope/interface' package is acutally a 'svn:externals'
|
||||
link to the corresponding package in the Zope3 trunk (or to a specific tag,
|
||||
for released versions of the package).
|
||||
|
|
|
@ -0,0 +1,8 @@
|
|||
[buildout]
|
||||
develop = .
|
||||
parts = test
|
||||
|
||||
[test]
|
||||
recipe = zc.recipe.testrunner
|
||||
eggs = zope.interface
|
||||
|
39
setup.py
39
setup.py
|
@ -22,22 +22,49 @@ try:
|
|||
from setuptools import setup, Extension
|
||||
except ImportError, e:
|
||||
from distutils.core import setup, Extension
|
||||
else:
|
||||
extra = dict(
|
||||
namespace_packages=["zope"],
|
||||
include_package_data = True,
|
||||
zip_safe = False,
|
||||
tests_require = ['zope.testing'],
|
||||
install_requires = ['setuptools'],
|
||||
)
|
||||
|
||||
def read(*rnames):
|
||||
return open(os.path.join(os.path.dirname(__file__), *rnames)).read()
|
||||
|
||||
setup(name='zope.interface',
|
||||
version='3.3-dev',
|
||||
|
||||
url='http://svn.zope.org/zope.interface',
|
||||
url='http://www.python.org/pypi/zope.interface',
|
||||
license='ZPL 2.1',
|
||||
description='Zope 3 Interface Infrastructure',
|
||||
author='Zope Corporation and Contributors',
|
||||
author_email='zope3-dev@zope.org',
|
||||
long_description=(
|
||||
read('README.txt')
|
||||
+ '\n' +
|
||||
read('CHANGES.txt')
|
||||
+ '\n' +
|
||||
'Detailed Documentation\n'
|
||||
'**********************\n'
|
||||
+ '\n' +
|
||||
read('src', 'zope', 'interface', 'README.txt')
|
||||
+ '\n' +
|
||||
read('src', 'zope', 'interface', 'adapter.txt')
|
||||
+ '\n' +
|
||||
read('src', 'zope', 'interface', 'human.txt')
|
||||
+ '\n' +
|
||||
'Download\n'
|
||||
'**********************\n'
|
||||
),
|
||||
|
||||
|
||||
packages=["zope",
|
||||
"zope.interface",
|
||||
"zope.interface.common",
|
||||
"zope.interface.tests",
|
||||
],
|
||||
namespace_packages=["zope"],
|
||||
package_dir = {'': 'src'},
|
||||
ext_package='zope.interface',
|
||||
ext_modules=[Extension("_zope_interface_coptimizations",
|
||||
|
@ -45,8 +72,4 @@ setup(name='zope.interface',
|
|||
"_zope_interface_coptimizations.c")
|
||||
]),
|
||||
],
|
||||
|
||||
tests_require = ['zope.testing'],
|
||||
include_package_data = True,
|
||||
zip_safe = False,
|
||||
)
|
||||
**extra)
|
||||
|
|
Loading…
Reference in New Issue