pax_global_header00006660000000000000000000000064142457702170014523gustar00rootroot0000000000000052 comment=9b246d9061e56659e7df86b502723828b108552f tubes-0.2.1/000077500000000000000000000000001424577021700126455ustar00rootroot00000000000000tubes-0.2.1/.coveragerc000066400000000000000000000004121424577021700147630ustar00rootroot00000000000000[run] branch = True parallel = True include = tubes/* */site-packages/tubes/* [paths] source = tubes .tox/*/lib/python*/site-packages/tubes .tox/*/Lib/site-packages/tubes .tox/pypy*/site-packages/tubes [report] precision = 2 ignore_errors = True tubes-0.2.1/.failonoutput.py000066400000000000000000000005271424577021700160320ustar00rootroot00000000000000#/usr/bin/env python2 """ Report output in real time and then fail if there was any. workaround for https://github.com/twisted/twistedchecker/issues/89 """ import os import sys f = os.popen(sys.argv[1]) data = f.read(1024) ever = False while data: sys.stdout.write(data) data = f.read(1024) ever = True if ever: sys.exit(1) tubes-0.2.1/.github/000077500000000000000000000000001424577021700142055ustar00rootroot00000000000000tubes-0.2.1/.github/workflows/000077500000000000000000000000001424577021700162425ustar00rootroot00000000000000tubes-0.2.1/.github/workflows/ci.yml000066400000000000000000000025111424577021700173570ustar00rootroot00000000000000name: ci on: push: branches: - trunk - gh-pages pull_request: branches: - trunk - gh-pages jobs: build: name: ${{ matrix.TOX_ENV }} runs-on: ubuntu-latest strategy: fail-fast: false matrix: python: ["3.10"] include: - TOX_ENV: "lint" python: "3.6" - TOX_ENV: "py27" python: "2.7" - TOX_ENV: "py36" python: "3.6" - TOX_ENV: docs python: 3.6 - TOX_ENV: apidocs - TOX_ENV: docs-spellcheck - TOX_ENV: docs-linkcheck allow_failures: - TOX_ENV: "docs-linkcheck" steps: - uses: actions/checkout@v3 - name: Set up Python uses: actions/setup-python@v3 with: python-version: ${{ matrix.python }} - name: Install run: source ./.travis/install.sh - name: Tox Run run: | TOX_ENV="${{ matrix.TOX_ENV }}"; echo "Starting: ${TOX_ENV} ${PUSH_DOCS}" if [[ -n "${TOX_ENV}" ]]; then tox -e "$TOX_ENV"; fi if [[ "$PUSH_DOCS" == "true" ]]; then ./.travis/build_docs.sh; fi; - name: after_success run: | if [[ "${TOX_ENV:0:2}" == 'py' ]]; then tox -e coveralls-push; fi tubes-0.2.1/.gitignore000066400000000000000000000001301424577021700146270ustar00rootroot00000000000000/docs/_build .tox /dist /build twisted.system zope.interface.system apidocs/ *.egg-info tubes-0.2.1/.travis.yml000066400000000000000000000022071424577021700147570ustar00rootroot00000000000000language: python env: global: - secure: "CvFj8Df5OiDRrW7EsTGhkltdmNlYerx9hH/tSKxiNFVDBUUFaTN7rUr7kWcOKchzerGwk7zjZ4SRXyoSCs+Srht6GZxWHkNROwKpp5Xvf5clbLXbp7GO1X/L5rLgrXpGwtkhgNuHx0X2IUCDHUQAUSumPgZcNFu3emgVxEqabN0=" matrix: allow_failures: - env: "TOX_ENV=docs-linkcheck" include: - env: TOX_ENV=lint python: 3.6 - env: TOX_ENV=py27 python: 2.7 - env: TOX_ENV=py36 python: 3.6 - env: TOX_ENV=pypy python: 3.6 - env: TOX_ENV=docs python: 3.6 - env: TOX_ENV=apidocs python: 2.7 - env: TOX_ENV=docs-spellcheck python: 3.6 - env: TOX_ENV=docs-linkcheck python: 3.6 # - PUSH_DOCS=true install: - ./.travis/install.sh script: - if [[ -n "${TOX_ENV}" ]]; then tox -e $TOX_ENV; fi - if [[ "$PUSH_DOCS" == "true" ]]; then ./.travis/build_docs.sh; fi after_success: - if [[ "${TOX_ENV:0:2}" == 'py' ]]; then tox -e coveralls-push; fi notifications: irc: channels: "chat.freenode.net#twisted-dev" template: - "%{repository}@%{branch} - %{author}: %{message} (%{build_url})" use_notice: true branches: only: - master - gh-pages tubes-0.2.1/.travis/000077500000000000000000000000001424577021700142335ustar00rootroot00000000000000tubes-0.2.1/.travis/build_docs.sh000077500000000000000000000017731424577021700167110ustar00rootroot00000000000000#!/bin/bash if [[ ${TRAVIS_PULL_REQUEST} == "false" ]] && [[ ${TRAVIS_BRANCH} == "master" ]]; then echo "uploading docs" REV=`git rev-parse HEAD` # Build the docs tox -e apidocs # Make the directory git clone --branch gh-pages https://github.com/twisted/tubes.git /tmp/tmp-docs # Copy the docs rsync -rt --del --exclude=".git" apidocs/* /tmp/tmp-docs/docs/ cd /tmp/tmp-docs git add -A # set the username and email. The secure line in travis.yml that sets # these environment variables is created by: # travis encrypt 'GIT_NAME="HawkOwl (Automatic)" GIT_EMAIL=hawkowl@atleastfornow.net GH_TOKEN=' export GIT_COMMITTER_NAME="${GIT_NAME}"; export GIT_COMMITTER_EMAIL="${GIT_EMAIL}"; export GIT_AUTHOR_NAME="${GIT_NAME}"; export GIT_AUTHOR_EMAIL="${GIT_EMAIL}"; git commit -m "Built from ${REV}"; # Push it up git push -q "https://${GH_TOKEN}@github.com/twisted/tubes.git" gh-pages else echo "skipping docs upload" fi; tubes-0.2.1/.travis/install.sh000077500000000000000000000012571424577021700162450ustar00rootroot00000000000000#!/bin/bash # Getting around a buggy PyPy in Travis # Script from pyca/cryptography set -e set -x if [[ "${TOX_ENV}" == "pypy"* ]]; then sudo add-apt-repository -y ppa:pypy/ppa sudo apt-get -y update sudo apt-get install -y pypy pypy-dev # This is required because we need to get rid of the Travis installed PyPy # or it'll take precedence over the PPA installed one. sudo rm -rf /usr/local/pypy/bin fi if [[ "${TOX_ENV}" == "docs-spellcheck" ]]; then if [[ "$DARWIN" = true ]]; then brew update brew install enchant else sudo apt-get -y update sudo apt-get install libenchant-dev fi fi pip install tox coveralls tubes-0.2.1/LICENSE000066400000000000000000000033571424577021700136620ustar00rootroot00000000000000Copyright (c) 2001-2014 Allen Short Andy Gayton Andrew Bennetts Antoine Pitrou Apple Computer, Inc. Ashwini Oruganti Benjamin Bruheim Bob Ippolito Canonical Limited Christopher Armstrong David Reid Donovan Preston Eric Mangold Eyal Lotem Google Inc. Hybrid Logic Ltd. Hynek Schlawack Itamar Turner-Trauring James Knight Jason A. Mobarak Jean-Paul Calderone Jessica McKellar Jonathan Jacobs Jonathan Lange Jonathan D. Simms Jürgen Hermann Julian Berman Kevin Horn Kevin Turner Laurens Van Houtven Mary Gardiner Matthew Lefkowitz Massachusetts Institute of Technology Moshe Zadka Paul Swartz Pavel Pergamenshchik Ralph Meijer Richard Wall Sean Riley Software Freedom Conservancy Travis B. Hartwell Thijs Triemstra Thomas Herve Timothy Allen Tom Prince Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. tubes-0.2.1/README.rst000066400000000000000000000013771424577021700143440ustar00rootroot00000000000000Tubes ===== .. image:: https://img.shields.io/pypi/v/Tubes.svg :target: https://pypi.python.org/pypi/Tubes/ :alt: Latest Version .. image:: https://readthedocs.org/projects/tubes/badge/?version=latest :target: https://tubes.readthedocs.org/ :alt: Latest Docs .. image:: https://travis-ci.org/twisted/tubes.svg?branch=master :target: https://travis-ci.org/twisted/tubes .. image:: https://img.shields.io/coveralls/twisted/tubes/master.svg :target: https://coveralls.io/r/twisted/tubes?branch=master "Tubes" is a data-processing and flow-control engine for event-driven programs. Presently based primarily on Twisted, its core data structures are fairly framework-agnostic and could be repurposed to work with any event-driven container. tubes-0.2.1/docs/000077500000000000000000000000001424577021700135755ustar00rootroot00000000000000tubes-0.2.1/docs/Makefile000066400000000000000000000151471424577021700152450ustar00rootroot00000000000000# Makefile for Sphinx documentation # # You can set these variables from the command line. SPHINXOPTS = SPHINXBUILD = sphinx-build PAPER = BUILDDIR = _build # User-friendly check for sphinx-build ifeq ($(shell which $(SPHINXBUILD) >/dev/null 2>&1; echo $$?), 1) $(error The '$(SPHINXBUILD)' command was not found. Make sure you have Sphinx installed, then set the SPHINXBUILD environment variable to point to the full path of the '$(SPHINXBUILD)' executable. Alternatively you can add the directory with the executable to your PATH. If you don't have Sphinx installed, grab it from https://sphinx-doc.org/) endif # Internal variables. PAPEROPT_a4 = -D latex_paper_size=a4 PAPEROPT_letter = -D latex_paper_size=letter ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) . # the i18n builder cannot share the environment and doctrees with the others I18NSPHINXOPTS = $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) . .PHONY: help clean html dirhtml singlehtml pickle json htmlhelp qthelp devhelp epub latex latexpdf text man changes linkcheck doctest gettext help: @echo "Please use \`make ' where is one of" @echo " html to make standalone HTML files" @echo " dirhtml to make HTML files named index.html in directories" @echo " singlehtml to make a single large HTML file" @echo " pickle to make pickle files" @echo " json to make JSON files" @echo " htmlhelp to make HTML files and a HTML help project" @echo " qthelp to make HTML files and a qthelp project" @echo " devhelp to make HTML files and a Devhelp project" @echo " epub to make an epub" @echo " latex to make LaTeX files, you can set PAPER=a4 or PAPER=letter" @echo " latexpdf to make LaTeX files and run them through pdflatex" @echo " latexpdfja to make LaTeX files and run them through platex/dvipdfmx" @echo " text to make text files" @echo " man to make manual pages" @echo " texinfo to make Texinfo files" @echo " info to make Texinfo files and run them through makeinfo" @echo " gettext to make PO message catalogs" @echo " changes to make an overview of all changed/added/deprecated items" @echo " xml to make Docutils-native XML files" @echo " pseudoxml to make pseudoxml-XML files for display purposes" @echo " linkcheck to check all external links for integrity" @echo " doctest to run all doctests embedded in the documentation (if enabled)" clean: rm -rf $(BUILDDIR)/* html: $(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html @echo @echo "Build finished. The HTML pages are in $(BUILDDIR)/html." dirhtml: $(SPHINXBUILD) -b dirhtml $(ALLSPHINXOPTS) $(BUILDDIR)/dirhtml @echo @echo "Build finished. The HTML pages are in $(BUILDDIR)/dirhtml." singlehtml: $(SPHINXBUILD) -b singlehtml $(ALLSPHINXOPTS) $(BUILDDIR)/singlehtml @echo @echo "Build finished. The HTML page is in $(BUILDDIR)/singlehtml." pickle: $(SPHINXBUILD) -b pickle $(ALLSPHINXOPTS) $(BUILDDIR)/pickle @echo @echo "Build finished; now you can process the pickle files." json: $(SPHINXBUILD) -b json $(ALLSPHINXOPTS) $(BUILDDIR)/json @echo @echo "Build finished; now you can process the JSON files." htmlhelp: $(SPHINXBUILD) -b htmlhelp $(ALLSPHINXOPTS) $(BUILDDIR)/htmlhelp @echo @echo "Build finished; now you can run HTML Help Workshop with the" \ ".hhp project file in $(BUILDDIR)/htmlhelp." qthelp: $(SPHINXBUILD) -b qthelp $(ALLSPHINXOPTS) $(BUILDDIR)/qthelp @echo @echo "Build finished; now you can run "qcollectiongenerator" with the" \ ".qhcp project file in $(BUILDDIR)/qthelp, like this:" @echo "# qcollectiongenerator $(BUILDDIR)/qthelp/Tubes.qhcp" @echo "To view the help file:" @echo "# assistant -collectionFile $(BUILDDIR)/qthelp/Tubes.qhc" devhelp: $(SPHINXBUILD) -b devhelp $(ALLSPHINXOPTS) $(BUILDDIR)/devhelp @echo @echo "Build finished." @echo "To view the help file:" @echo "# mkdir -p $$HOME/.local/share/devhelp/Tubes" @echo "# ln -s $(BUILDDIR)/devhelp $$HOME/.local/share/devhelp/Tubes" @echo "# devhelp" epub: $(SPHINXBUILD) -b epub $(ALLSPHINXOPTS) $(BUILDDIR)/epub @echo @echo "Build finished. The epub file is in $(BUILDDIR)/epub." latex: $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex @echo @echo "Build finished; the LaTeX files are in $(BUILDDIR)/latex." @echo "Run \`make' in that directory to run these through (pdf)latex" \ "(use \`make latexpdf' here to do that automatically)." latexpdf: $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex @echo "Running LaTeX files through pdflatex..." $(MAKE) -C $(BUILDDIR)/latex all-pdf @echo "pdflatex finished; the PDF files are in $(BUILDDIR)/latex." latexpdfja: $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex @echo "Running LaTeX files through platex and dvipdfmx..." $(MAKE) -C $(BUILDDIR)/latex all-pdf-ja @echo "pdflatex finished; the PDF files are in $(BUILDDIR)/latex." text: $(SPHINXBUILD) -b text $(ALLSPHINXOPTS) $(BUILDDIR)/text @echo @echo "Build finished. The text files are in $(BUILDDIR)/text." man: $(SPHINXBUILD) -b man $(ALLSPHINXOPTS) $(BUILDDIR)/man @echo @echo "Build finished. The manual pages are in $(BUILDDIR)/man." texinfo: $(SPHINXBUILD) -b texinfo $(ALLSPHINXOPTS) $(BUILDDIR)/texinfo @echo @echo "Build finished. The Texinfo files are in $(BUILDDIR)/texinfo." @echo "Run \`make' in that directory to run these through makeinfo" \ "(use \`make info' here to do that automatically)." info: $(SPHINXBUILD) -b texinfo $(ALLSPHINXOPTS) $(BUILDDIR)/texinfo @echo "Running Texinfo files through makeinfo..." make -C $(BUILDDIR)/texinfo info @echo "makeinfo finished; the Info files are in $(BUILDDIR)/texinfo." gettext: $(SPHINXBUILD) -b gettext $(I18NSPHINXOPTS) $(BUILDDIR)/locale @echo @echo "Build finished. The message catalogs are in $(BUILDDIR)/locale." changes: $(SPHINXBUILD) -b changes $(ALLSPHINXOPTS) $(BUILDDIR)/changes @echo @echo "The overview file is in $(BUILDDIR)/changes." linkcheck: $(SPHINXBUILD) -b linkcheck $(ALLSPHINXOPTS) $(BUILDDIR)/linkcheck @echo @echo "Link check complete; look for any errors in the above output " \ "or in $(BUILDDIR)/linkcheck/output.txt." doctest: $(SPHINXBUILD) -b doctest $(ALLSPHINXOPTS) $(BUILDDIR)/doctest @echo "Testing of doctests in the sources finished, look at the " \ "results in $(BUILDDIR)/doctest/output.txt." xml: $(SPHINXBUILD) -b xml $(ALLSPHINXOPTS) $(BUILDDIR)/xml @echo @echo "Build finished. The XML files are in $(BUILDDIR)/xml." pseudoxml: $(SPHINXBUILD) -b pseudoxml $(ALLSPHINXOPTS) $(BUILDDIR)/pseudoxml @echo @echo "Build finished. The pseudo-XML files are in $(BUILDDIR)/pseudoxml." tubes-0.2.1/docs/_extensions/000077500000000000000000000000001424577021700161335ustar00rootroot00000000000000tubes-0.2.1/docs/_extensions/apilinks.py000066400000000000000000000035601424577021700203230ustar00rootroot00000000000000""" Sphinx/docutils extension to create links to pyDoctor documentation using a RestructuredText interpreted text role that looks like this:: :api:`python_object_to_link_to