Coder Social home page Coder Social logo

zopetoolkit's Issues

Travis CI failing

With

WARNING: intersphinx inventory 'http://docs.zope.org/zope.structuredtext/objects.inv' not fetchable due to <class 'urllib2.HTTPError'>: HTTP Error 403: Forbidden
While:
  Installing ztk-docs.

Drop buildout from ZTK packages

As discussed in #16 there are 3 ways to build the ZTK packages and let there tests run.

To minimize the options I propose to drop buildout.cfg and bootstrap.py from the ZTK packages. (This could be done while fixing #8 as this requires touching each package.)

Create a new release

After updating all packages to new versions It would be a good idea to cut a new release.

tox is broken: couldn't open ...buildout.cfg

Currently I am running tox for all Zope and Plone repos, as the upcoming tox4 release is a complete rewrite and some breaking changes and regressions are expected, see zopefoundation/meta#66

While I noticed an endless setuptools upgrade loop for tox4, tox (3) is broken anyway.

❯ tox -e py38
py38 installed: zc.buildout==2.13.3
py38 run-test-pre: PYTHONHASHSEED='3646606669'
py38 run-test: commands[0] | /home/jugmac00/All/output_zope/zopefoundation/zopetoolkit/.tox/py38/bin/buildout -c /home/jugmac00/All/output_zope/zopefoundation/zopetoolkit/buildout.cfg buildout:directory=/home/jugmac00/All/output_zope/zopefoundation/zopetoolkit/.tox/py38 install test-ztk
Upgraded:
  setuptools version 50.3.0;
restarting.
While:
  Initializing.
Error: Couldn't open /home/jugmac00/All/output_zope/zopefoundation/zopetoolkit/.tox/py38/buildout.cfg
ERROR: InvocationError for command /home/jugmac00/All/output_zope/zopefoundation/zopetoolkit/.tox/py38/bin/buildout -c buildout.cfg buildout:directory=/home/jugmac00/All/output_zope/zopefoundation/zopetoolkit/.tox/py38 install test-ztk (exited with code 1)
_____________________________________________________________________________ summary _____________________________________________________________________________
ERROR:   py38: commands failed

There is still a "test passing" badge from Travis in the readme, although Travis does not work anymore.

The GHA tests are not executed regularly - maybe a weekly run would be good so breakages are spotted early on.

Use buildout inside tox and Travis-CI

The ZTK packages currently have up to three ways to run their tests:

  • Install via zc.buildout for a specific Python version + run via bin/test
  • Install and run via tox for all supported Python versions
  • Install for a specific Python version in Travis-CI + run tests via bin/test or even via python setup.py test.

The Zope 4 packages are now using a n interesting template which uses buildout for tox and Travis-CI, too. For example see five.localsitemanager.

This template could be adapted in ZTK, but coverage report should be added, too.

Packages to update:

  • zope.annotation
  • zope.applicationcontrol
  • zope.authentication
  • zope.browser
  • zope.browsermenu
  • zope.browserpage
  • zope.browserresource
  • zope.cachedescriptors
  • zope.catalog
  • zope.component
  • zope.componentvocabulary
  • zope.configuration
  • zope.container
  • zope.contentprovider
  • zope.contenttype
  • zope.copy
  • zope.copypastemove
  • zope.datetime
  • zope.deferredimport
  • zope.deprecation
  • zope.dottedname
  • zope.dublincore
  • zope.error
  • zope.event
  • zope.exceptions
  • zope.filerepresentation
  • zope.formlib
  • zope.hookable
  • zope.i18n
  • zope.i18nmessageid
  • zope.index
  • zope.interface
  • zope.intid
  • zope.keyreference
  • zope.lifecycleevent
  • zope.location
  • zope.login
  • zope.mimetype
  • zope.minmax
  • zope.pagetemplate
  • zope.password
  • zope.pluggableauth
  • zope.principalannotation
  • zope.principalregistry
  • zope.processlifetime
  • zope.proxy
  • zope.ptresource
  • zope.publisher
  • zope.ramcache
  • zope.schema
  • zope.security
  • zope.securitypolicy
  • zope.sendmail
  • zope.session
  • zope.site
  • zope.size
  • zope.structuredtext
  • zope.tal
  • zope.tales
  • zope.testing
  • zope.testrunner
  • zope.traversing
  • zope.viewlet

'package-docs' bulidout part fails on Windows

Installing package-docs.
'zpkgs' is not recognized as an internal or external command,
operable program or batch file.
'zope.applicationcontrol' is not recognized as an internal or external command,
operable program or batch file.
'zope.authentication' is not recognized as an internal or external command,
operable program or batch file.
'zope.browser' is not recognized as an internal or external command,
operable program or batch file.
'zope.browsermenu' is not recognized as an internal or external command,
operable program or batch file.
'zope.browserpage' is not recognized as an internal or external command,
operable program or batch file.
'zope.browserresource' is not recognized as an internal or external command,
operable program or batch file.
'zope.cachedescriptors' is not recognized as an internal or external command,
operable program or batch file.
'zope.catalog' is not recognized as an internal or external command,
operable program or batch file.
'zope.component' is not recognized as an internal or external command,
operable program or batch file.
'zope.componentvocabulary' is not recognized as an internal or external command,
operable program or batch file.
'zope.configuration' is not recognized as an internal or external command,
operable program or batch file.
'zope.container' is not recognized as an internal or external command,
operable program or batch file.
'zope.contentprovider' is not recognized as an internal or external command,
operable program or batch file.
'zope.contenttype' is not recognized as an internal or external command,
operable program or batch file.
'zope.copy' is not recognized as an internal or external command,
operable program or batch file.
'zope.copypastemove' is not recognized as an internal or external command,
operable program or batch file.
'zope.datetime' is not recognized as an internal or external command,
operable program or batch file.
'zope.deferredimport' is not recognized as an internal or external command,
operable program or batch file.
'zope.deprecation' is not recognized as an internal or external command,
operable program or batch file.
'zope.dottedname' is not recognized as an internal or external command,
operable program or batch file.
'zope.dublincore' is not recognized as an internal or external command,
operable program or batch file.
'zope.error' is not recognized as an internal or external command,
operable program or batch file.
'zope.event' is not recognized as an internal or external command,
operable program or batch file.
'zope.exceptions' is not recognized as an internal or external command,
operable program or batch file.
'zope.filerepresentation' is not recognized as an internal or external command,
operable program or batch file.
'zope.formlib' is not recognized as an internal or external command,
operable program or batch file.
'zope.hookable' is not recognized as an internal or external command,
operable program or batch file.
'zope.i18n' is not recognized as an internal or external command,
operable program or batch file.
'zope.i18nmessageid' is not recognized as an internal or external command,
operable program or batch file.
'zope.index' is not recognized as an internal or external command,
operable program or batch file.
'zope.interface' is not recognized as an internal or external command,
operable program or batch file.
'zope.intid' is not recognized as an internal or external command,
operable program or batch file.
'zope.keyreference' is not recognized as an internal or external command,
operable program or batch file.
'zope.lifecycleevent' is not recognized as an internal or external command,
operable program or batch file.
'zope.location' is not recognized as an internal or external command,
operable program or batch file.
'zope.login' is not recognized as an internal or external command,
operable program or batch file.
'zope.mimetype' is not recognized as an internal or external command,
operable program or batch file.
'zope.minmax' is not recognized as an internal or external command,
operable program or batch file.
'zope.pagetemplate' is not recognized as an internal or external command,
operable program or batch file.
'zope.password' is not recognized as an internal or external command,
operable program or batch file.
'zope.pluggableauth' is not recognized as an internal or external command,
operable program or batch file.
'zope.principalannotation' is not recognized as an internal or external command,
operable program or batch file.
'zope.principalregistry' is not recognized as an internal or external command,
operable program or batch file.
'zope.processlifetime' is not recognized as an internal or external command,
operable program or batch file.
'zope.proxy' is not recognized as an internal or external command,
operable program or batch file.
'zope.ptresource' is not recognized as an internal or external command,
operable program or batch file.
'zope.publisher' is not recognized as an internal or external command,
operable program or batch file.
'zope.ramcache' is not recognized as an internal or external command,
operable program or batch file.
'zope.schema' is not recognized as an internal or external command,
operable program or batch file.
'zope.security' is not recognized as an internal or external command,
operable program or batch file.
'zope.securitypolicy' is not recognized as an internal or external command,
operable program or batch file.
'zope.sendmail' is not recognized as an internal or external command,
operable program or batch file.
'zope.session' is not recognized as an internal or external command,
operable program or batch file.
'zope.site' is not recognized as an internal or external command,
operable program or batch file.
'zope.size' is not recognized as an internal or external command,
operable program or batch file.
'zope.structuredtext' is not recognized as an internal or external command,
operable program or batch file.
'zope.tal' is not recognized as an internal or external command,
operable program or batch file.
'zope.tales' is not recognized as an internal or external command,
operable program or batch file.
'zope.testing' is not recognized as an internal or external command,
operable program or batch file.
'zope.testrunner' is not recognized as an internal or external command,
operable program or batch file.
'zope.traversing' is not recognized as an internal or external command,
operable program or batch file.
'zope.viewlet' is not recognized as an internal or external command,
operable program or batch file.
'"' is not recognized as an internal or external command,
operable program or batch file.
zpkg was unexpected at this time.
While:
  Installing package-docs.

The recipe for the part uses bash:

[package-docs]
recipe = collective.recipe.cmd
on_install = true
on_update = true
cmds =
    zpkgs="${ztk:packages}"
    for zpkg in $zpkgs; do
        where="${buildout:directory}/src/$zpkg"
        if [ -e $where/docs ]; then
            echo $zpkg
            ${buildout:directory}/bin/sphinx-build -q \
                -b html -d $where/docs/_build/doctrees \
                $where/docs $where/docs/_build/html
        fi
    done

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.