[Checkins] SVN: zope.browserresource/trunk/ Moved to GitHub.

Stephen Richter cvs-admin at zope.org
Fri Feb 22 04:18:20 UTC 2013


Log message for revision 129611:
  Moved to GitHub.

Changed:
  D   zope.browserresource/trunk/CHANGES.txt
  D   zope.browserresource/trunk/COPYRIGHT.txt
  D   zope.browserresource/trunk/LICENSE.txt
  D   zope.browserresource/trunk/MANIFEST.in
  A   zope.browserresource/trunk/MOVED_TO_GITHUB
  D   zope.browserresource/trunk/README.txt
  D   zope.browserresource/trunk/bootstrap.py
  D   zope.browserresource/trunk/buildout.cfg
  D   zope.browserresource/trunk/setup.py
  D   zope.browserresource/trunk/src/
  D   zope.browserresource/trunk/tox.ini

-=-
Deleted: zope.browserresource/trunk/CHANGES.txt
===================================================================
--- zope.browserresource/trunk/CHANGES.txt	2013-02-22 03:54:16 UTC (rev 129610)
+++ zope.browserresource/trunk/CHANGES.txt	2013-02-22 04:18:20 UTC (rev 129611)
@@ -1,117 +0,0 @@
-=======
-CHANGES
-=======
-
-4.0.1 (unreleased)
-==================
-
-- Nothing changed yet.
-
-
-4.0.0 (2013-02-20)
-==================
-
-- Replaced deprecated ``zope.component.adapts`` usage with equivalent
-  ``zope.component.adapter`` decorator.
-
-- Replaced deprecated ``zope.interface.classProvides`` usage with equivalent
-  ``zope.interface.provider`` decorator.
-
-- Replaced deprecated ``zope.interface.implementsOnly`` usage with equivalent
-  ``zope.interface.implementer_only`` decorator.
-
-- Replaced deprecated ``zope.interface.implements`` usage with equivalent
-  ``zope.interface.implementer`` decorator.
-
-- Dropped support for Python 2.4 and 2.5.
-
-- Added support for Python 3.3.
-
-
-3.12.0 (2010-12-14)
-===================
-
-- Added ``zcml`` extra dependencies and fixed dependencies of
-  ``configure.zcml`` on other packages' ``meta.zcml``.
-
-- Added a test for including our own ``configure.zcml``.
-
-3.11.0 (2010-08-13)
-===================
-
-- Support the HTTP ETag header for file resources.  ETag generation can be
-  customized or disabled by providing an IETag multi-adapter on
-  (IFileResource, your-application-skin).
-
-3.10.3 (2010-04-30)
-===================
-
-- Prefer the standard libraries doctest module to the one from zope.testing.
-
-3.10.2 (2009-11-25)
-===================
-
-- The previous release had a broken egg, sorry.
-
-3.10.1 (2009-11-24)
-===================
-
-- Import hooks functionality from zope.component after it was moved there from
-  zope.site. This lifts the dependency on zope.site and thereby, ZODB.
-
-- Import ISite and IPossibleSite from zope.component after they were moved
-  there from zope.location.
-
-3.10.0 (2009-09-25)
-===================
-
-- Add an ability to forbid publishing of some files in the resource directory,
-  this is done by fnmatch'ing the wildcards in the ``forbidden_names``class
-  attribute of ``DirectoryResource``. By default, the ``.svn`` is in that
-  attribute, so directories won't publish subversion system directory that can
-  contain private information. 
-
-3.9.0 (2009-08-27)
-==================
-
-Initial release. This package was splitted off zope.app.publisher as a part
-of refactoring process.
-
-Additional changes that are made during refactoring:
-
- * Resource class for file resources are now selected the pluggable way.
-   The resource directory publisher and browser:resource ZCML directive
-   now creating file resources using factory utility lookup based on the
-   file extension, so it's now possible to add new resource types without
-   introducing new ZCML directives and they will work inside resource
-   directories as well.
-   
-   NOTE: the "resource_factories" attribute from the DirectoryResource
-   was removed, so if you were using this attribute for changing resource
-   classes for some file extensions, you need to migrate your code to new
-   utility-based mechanism.
-
-   See zope.browserresource.interfaces.IResourceFactoryFactory interface.
-
- * The Image resource class was removed, as they are actually simple files.
-   To migrate, simply rename the "image" argument in browser:resource and
-   browser:i18n-resource directives to "file", if you don't do this, resouces
-   will work, but you'll get deprecation warnings.
- 
-   If you need custom behaviour for images, you can register a resource
-   factory utility for needed file extensions.
-
- * The PageTemplateResource was moved into a separate package, "zope.ptresource",
-   which is a plugin for this package now. Because of that, the "template"
-   argument of browser:resource directive was deprecated and you should rename
-   it to "file" to migrate. The PageTemplateResource will be created for
-   "pt", "zpt" and "html" files automatically, if zope.ptresource package is
-   included in your configuration.
-
- * Fix stripping the "I" from an interface name for icon title, if no
-   title is specified.
-
- * When publishing a resource via Resources view, set resource parent
-   to an ISite object, not to current site manager.
-
- * Clean up code and improve test coverage.

Deleted: zope.browserresource/trunk/COPYRIGHT.txt
===================================================================
--- zope.browserresource/trunk/COPYRIGHT.txt	2013-02-22 03:54:16 UTC (rev 129610)
+++ zope.browserresource/trunk/COPYRIGHT.txt	2013-02-22 04:18:20 UTC (rev 129611)
@@ -1 +0,0 @@
-Zope Foundation and Contributors
\ No newline at end of file

Deleted: zope.browserresource/trunk/LICENSE.txt
===================================================================
--- zope.browserresource/trunk/LICENSE.txt	2013-02-22 03:54:16 UTC (rev 129610)
+++ zope.browserresource/trunk/LICENSE.txt	2013-02-22 04:18:20 UTC (rev 129611)
@@ -1,44 +0,0 @@
-Zope Public License (ZPL) Version 2.1
-
-A copyright notice accompanies this license document that identifies the
-copyright holders.
-
-This license has been certified as open source. It has also been designated as
-GPL compatible by the Free Software Foundation (FSF).
-
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions are met:
-
-1. Redistributions in source code must retain the accompanying copyright
-notice, this list of conditions, and the following disclaimer.
-
-2. Redistributions in binary form must reproduce the accompanying copyright
-notice, this list of conditions, and the following disclaimer in the
-documentation and/or other materials provided with the distribution.
-
-3. Names of the copyright holders must not be used to endorse or promote
-products derived from this software without prior written permission from the
-copyright holders.
-
-4. The right to distribute this software or to use it for any purpose does not
-give you the right to use Servicemarks (sm) or Trademarks (tm) of the
-copyright
-holders. Use of them is covered by separate agreement with the copyright
-holders.
-
-5. If any files are modified, you must cause the modified files to carry
-prominent notices stating that you changed the files and the date of any
-change.
-
-Disclaimer
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``AS IS'' AND ANY EXPRESSED
-OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
-OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
-EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY DIRECT, INDIRECT,
-INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
-PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
-LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
-EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Deleted: zope.browserresource/trunk/MANIFEST.in
===================================================================
--- zope.browserresource/trunk/MANIFEST.in	2013-02-22 03:54:16 UTC (rev 129610)
+++ zope.browserresource/trunk/MANIFEST.in	2013-02-22 04:18:20 UTC (rev 129611)
@@ -1,9 +0,0 @@
-include *.rst
-include *.txt
-include tox.ini
-include bootstrap.py
-include buildout.cfg
-
-recursive-include src *
-
-global-exclude *.pyc

Added: zope.browserresource/trunk/MOVED_TO_GITHUB
===================================================================
--- zope.browserresource/trunk/MOVED_TO_GITHUB	                        (rev 0)
+++ zope.browserresource/trunk/MOVED_TO_GITHUB	2013-02-22 04:18:20 UTC (rev 129611)
@@ -0,0 +1 @@
+See https://github.com/zopefoundation/zope.browserresource
\ No newline at end of file

Deleted: zope.browserresource/trunk/README.txt
===================================================================
--- zope.browserresource/trunk/README.txt	2013-02-22 03:54:16 UTC (rev 129610)
+++ zope.browserresource/trunk/README.txt	2013-02-22 04:18:20 UTC (rev 129611)
@@ -1,60 +0,0 @@
-========
-Overview
-========
-
-*This package is at present not reusable without depending on a large
-chunk of the Zope Toolkit and its assumptions. It is maintained by the*
-`Zope Toolkit project <http://docs.zope.org/zopetoolkit/>`_.
-
-This package provides an implementation of browser resources. It also
-provides directives for defining those resources using ZCML.
-
-Resources are static files and directories that are served to the browser
-directly from the filesystem. The most common example are images, CSS style
-sheets, or JavaScript files.
-
-Resources are be registered under a symbolic name and can later be referred to
-by that name, so their usage is independent from their physical location.
-
-You can register a single file with the `<browser:resource>` directive, and a
-whole directory with the `<browser:resourceDirectory>` directive, for example
-
-  <browser:resource
-    file="/path/to/static.file"
-    name="myfile"
-    />
-
-  <browser:resourceDirectory
-    directory="/path/to/images"
-    name="main-images"
-    />
-
-This causes a named adapter to be registered that adapts the request to
-zope.interface.Interface (XXX why do we not use an explicit interface?),
-so to later retrieve a resource, use
-`zope.component.getAdapter(request, name='myfile')`.
-
-There are two ways to traverse to a resource,
-
-1. with the 'empty' view on a site, e. g. `http://localhost/@@/myfile`
-   (This is declared by zope.browserresource)
-
-2. with the `++resource++` namespace, e. g. `http://localhost/++resource++myfile`
-   (This is declared by zope.traversing.namespace)
-
-In case of resource-directories traversal simply continues through its contents,
-e. g. `http://localhost/@@/main-images/subdir/sample.jpg`
-
-Rather than putting together the URL to a resource manually, you should use
-zope.traversing.browser.interfaces.IAbsoluteURL to get the URL, or for a
-shorthand, call the resource object. This has an additional benefit:
-
-If you want to serve resources from a different URL, for example
-because you want to use a web server specialized in serving static files instead
-of the appserver, you can register an IAbsoluteURL adapter for the site under
-the name 'resource' that will be used to compute the base URLs for resources.
-
-For example, if you register 'http://static.example.com/' as the base 'resource'
-URL, the resources from the above example would yield the following absolute
-URLs: http://static.example.com/@@/myfile and
-http://static.example.com/@@/main-images

Deleted: zope.browserresource/trunk/bootstrap.py
===================================================================
--- zope.browserresource/trunk/bootstrap.py	2013-02-22 03:54:16 UTC (rev 129610)
+++ zope.browserresource/trunk/bootstrap.py	2013-02-22 04:18:20 UTC (rev 129611)
@@ -1,119 +0,0 @@
-##############################################################################
-#
-# Copyright (c) 2006 Zope Foundation and Contributors.
-# All Rights Reserved.
-#
-# This software is subject to the provisions of the Zope Public License,
-# Version 2.1 (ZPL).  A copy of the ZPL should accompany this distribution.
-# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
-# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
-# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
-# FOR A PARTICULAR PURPOSE.
-#
-##############################################################################
-"""Bootstrap a buildout-based project
-
-Simply run this script in a directory containing a buildout.cfg.
-The script accepts buildout command-line options, so you can
-use the -c option to specify an alternate configuration file.
-"""
-
-import os, shutil, sys, tempfile, urllib2
-from optparse import OptionParser
-
-tmpeggs = tempfile.mkdtemp()
-
-is_jython = sys.platform.startswith('java')
-
-# parsing arguments
-parser = OptionParser()
-parser.add_option("-v", "--version", dest="version",
-                          help="use a specific zc.buildout version")
-parser.add_option("-d", "--distribute",
-                   action="store_true", dest="distribute", default=False,
-                   help="Use Disribute rather than Setuptools.")
-
-parser.add_option("-c", None, action="store", dest="config_file",
-                   help=("Specify the path to the buildout configuration "
-                         "file to be used."))
-
-options, args = parser.parse_args()
-
-# if -c was provided, we push it back into args for buildout' main function
-if options.config_file is not None:
-    args += ['-c', options.config_file]
-
-if options.version is not None:
-    VERSION = '==%s' % options.version
-else:
-    VERSION = ''
-
-USE_DISTRIBUTE = options.distribute
-args = args + ['bootstrap']
-
-to_reload = False
-try:
-    import pkg_resources
-    if not hasattr(pkg_resources, '_distribute'):
-        to_reload = True
-        raise ImportError
-except ImportError:
-    ez = {}
-    if USE_DISTRIBUTE:
-        exec urllib2.urlopen('http://python-distribute.org/distribute_setup.py'
-                         ).read() in ez
-        ez['use_setuptools'](to_dir=tmpeggs, download_delay=0, no_fake=True)
-    else:
-        exec urllib2.urlopen('http://peak.telecommunity.com/dist/ez_setup.py'
-                             ).read() in ez
-        ez['use_setuptools'](to_dir=tmpeggs, download_delay=0)
-
-    if to_reload:
-        reload(pkg_resources)
-    else:
-        import pkg_resources
-
-if sys.platform == 'win32':
-    def quote(c):
-        if ' ' in c:
-            return '"%s"' % c # work around spawn lamosity on windows
-        else:
-            return c
-else:
-    def quote (c):
-        return c
-
-cmd = 'from setuptools.command.easy_install import main; main()'
-ws  = pkg_resources.working_set
-
-if USE_DISTRIBUTE:
-    requirement = 'distribute'
-else:
-    requirement = 'setuptools'
-
-if is_jython:
-    import subprocess
-
-    assert subprocess.Popen([sys.executable] + ['-c', quote(cmd), '-mqNxd',
-           quote(tmpeggs), 'zc.buildout' + VERSION],
-           env=dict(os.environ,
-               PYTHONPATH=
-               ws.find(pkg_resources.Requirement.parse(requirement)).location
-               ),
-           ).wait() == 0
-
-else:
-    assert os.spawnle(
-        os.P_WAIT, sys.executable, quote (sys.executable),
-        '-c', quote (cmd), '-mqNxd', quote (tmpeggs), 'zc.buildout' + VERSION,
-        dict(os.environ,
-            PYTHONPATH=
-            ws.find(pkg_resources.Requirement.parse(requirement)).location
-            ),
-        ) == 0
-
-ws.add_entry(tmpeggs)
-ws.require('zc.buildout' + VERSION)
-import zc.buildout.buildout
-zc.buildout.buildout.main(args)
-shutil.rmtree(tmpeggs)

Deleted: zope.browserresource/trunk/buildout.cfg
===================================================================
--- zope.browserresource/trunk/buildout.cfg	2013-02-22 03:54:16 UTC (rev 129610)
+++ zope.browserresource/trunk/buildout.cfg	2013-02-22 04:18:20 UTC (rev 129611)
@@ -1,19 +0,0 @@
-[buildout]
-develop = .
-          ../zope.security
-parts = test coverage-test coverage-report
-
-[test]
-recipe = zc.recipe.testrunner
-eggs = zope.browserresource [test,zcml]
-
-[coverage-test]
-recipe = zc.recipe.testrunner
-eggs = zope.browserresource [test]
-defaults = ['--coverage', '../../coverage']
-
-[coverage-report]
-recipe = zc.recipe.egg
-eggs = z3c.coverage
-scripts = coverage=coverage-report
-arguments = ('coverage', 'coverage/report')

Deleted: zope.browserresource/trunk/setup.py
===================================================================
--- zope.browserresource/trunk/setup.py	2013-02-22 03:54:16 UTC (rev 129610)
+++ zope.browserresource/trunk/setup.py	2013-02-22 04:18:20 UTC (rev 129611)
@@ -1,84 +0,0 @@
-##############################################################################
-#
-# Copyright (c) 2007 Zope Foundation and Contributors.
-# All Rights Reserved.
-#
-# This software is subject to the provisions of the Zope Public License,
-# Version 2.1 (ZPL).  A copy of the ZPL should accompany this distribution.
-# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
-# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
-# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
-# FOR A PARTICULAR PURPOSE.
-#
-##############################################################################
-"""zope.browserresource setup
-"""
-import os
-import sys
-from setuptools import setup, find_packages
-
-
-def test_suite():
-    # use the zope.testrunner machinery to find all the
-    # test suites we've put under ourselves
-    from zope.testrunner.options import get_options
-    from zope.testrunner.find import find_suites
-    from unittest import TestSuite
-    here = os.path.abspath(os.path.dirname(sys.argv[0]))
-    args = sys.argv[:]
-    src = os.path.join(here, 'src')
-    defaults = ['--test-path', src]
-    options = get_options(args, defaults)
-    suites = list(find_suites(options))
-    return TestSuite(suites)
-
-
-long_description = (open('README.txt').read() + '\n\n' +
-                    open('CHANGES.txt').read())
-
-setup(name='zope.browserresource',
-      version='4.0.1.dev0',
-      url='http://pypi.python.org/pypi/zope.browserresource/',
-      author='Zope Foundation and Contributors',
-      author_email='zope-dev at zope.org',
-      classifiers = ['Environment :: Web Environment',
-                     'Intended Audience :: Developers',
-                     'License :: OSI Approved :: Zope Public License',
-                     'Programming Language :: Python',
-                     'Programming Language :: Python :: 2',
-                     'Programming Language :: Python :: 2.6',
-                     'Programming Language :: Python :: 2.7',
-                     'Programming Language :: Python :: 3',
-                     'Programming Language :: Python :: 3.3',
-                     'Operating System :: OS Independent',
-                     'Topic :: Internet :: WWW/HTTP',
-                     'Framework :: Zope3',
-                     ],
-      description='Browser resources implementation for Zope.',
-      long_description=long_description,
-      license='ZPL 2.1',
-      packages=find_packages('src'),
-      package_dir={'': 'src'},
-      test_suite='__main__.test_suite',
-
-      namespace_packages=['zope'],
-      include_package_data=True,
-      install_requires=['setuptools',
-                        'zope.component>=3.8.0',
-                        'zope.configuration',
-                        'zope.contenttype>=4.0.1',
-                        'zope.i18n',
-                        'zope.interface',
-                        'zope.location',
-                        'zope.publisher>=3.8',
-                        'zope.schema',
-                        'zope.traversing>3.7',
-                        ],
-      extras_require={
-          'test': ['zope.testing'],
-          'zcml': ['zope.component[zcml]',
-                   'zope.security[zcml]>=3.8'],
-          },
-
-      zip_safe = False,
-      )

Deleted: zope.browserresource/trunk/tox.ini
===================================================================
--- zope.browserresource/trunk/tox.ini	2013-02-22 03:54:16 UTC (rev 129610)
+++ zope.browserresource/trunk/tox.ini	2013-02-22 04:18:20 UTC (rev 129611)
@@ -1,8 +0,0 @@
-[tox]
-envlist = py26,py27,py33
-
-[testenv]
-commands = python setup.py test -q
-deps =
-    zope.testrunner
-    zope.testing



More information about the checkins mailing list