gp.recipe.node


Namegp.recipe.node JSON
Version 22.17.1.1 PyPI version JSON
download
home_pagehttps://github.com/gawel/gp.recipe.node
SummaryZC Buildout recipe for node.js
upload_time2025-07-25 12:49:04
maintainerNone
docs_urlNone
authorGael Pasgrimaud
requires_python>=3.9
licenseZPL
keywords buildout node.js node
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            .. image:: https://github.com/gawel/gp.recipe.node/actions/workflows/tests.yml/badge.svg
   :alt: GitHub Workflow Status
   :target: https://github.com/gawel/gp.recipe.node/actions/workflows/tests.yml
.. image:: https://img.shields.io/pypi/v/gp.recipe.node.svg
   :target: https://crate.io/packages/gp.recipe.node/
.. image:: https://img.shields.io/pypi/dm/gp.recipe.node.svg
   :target: https://crate.io/packages/gp.recipe.node/
.. contents::

- Code repository: https://github.com/gawel/gp.recipe.node


Detailed Documentation
**********************

Supported options
=================

The recipe supports the following options:

.. Note to recipe author!
   ----------------------
   For each option the recipe uses you should include a description
   about the purpose of the option, the format and semantics of the
   values it accepts, whether it is mandatory or optional and what the
   default value is if it is omitted.

url
    url to a node.js source archive

binary-url
    url to a node.js binary archive. You can use placeholders ``{v}`` (the
    desired node version), ``{p}`` (platform name), and ``{a}`` (CPU
    architecture).  Defaults to
    ``https://nodejs.org/dist/v{v}/node-v{v}-{p}-{a}.tar.gz``.  Ignored if
    url is set, or if the platform is not recognized.

version
    node.js version. Ignored if url is set, or if binary-url is set that
    doesn't use the ``{v}`` placeholder. Default to recipe version.  Mean
    that using ``recipe=gp.recipe.node==0.10.22.X`` will install ``node
    0.10.22``

npms
    a list of package to install with npm. You can specify a package version by
    using ``npmname@version``. In case you want to specify a ``package.json``
    generated after a successfull first installation or update, you can 
    add ``.`` to the list.

scripts
    a list of scripts (optional)

node-path
    a list of extra directory to add to ``NODE_PATH``

relative-paths
    will generate paths relative to the root buildout directory.
    this is also honored if 'relative-paths' is in the main
    buildout section


Example usage
=============

We'll start by creating a buildout that uses the recipe::

    >>> write('buildout.cfg',
    ... """
    ... [buildout]
    ... parts = test1
    ...
    ... [test1]
    ... recipe = gp.recipe.node
    ... npms = coffee-script less . 
    ... scripts = coffee lessc
    ... """)

Running the buildout gives us::

    >>> print 'start', system(buildout)
    start...
    Installing test1.
    ...
    Generated script '.../bin/lessc'.

Contributors
************

Gael Pasgrimaud, Author
Yusuke Tsutsumi
Michael Howitz

Change history
**************

22.17.1.1 (2025-07-25)
======================

- Update to node 22.17.1.

- Drop support for Python 3.7 and 3.8.

- Drop support for no longer working ``python setup.py test`` command.

- Drop support for ``pkg_resources`` namespace and replace it with PEP 420
  native namespace.

- Remove Python 2 leftovers.

- Add support for Python 3.12 and 3.13.


18.16.0.1 (2023-04-21)
======================

- Update to 18.16.0


16.20.0.1 (2023-04-18)
======================

- update to 16.20.0

- Stop testing for Python 3.6.

- Claim support for Python 3.11.


16.13.2.1 (2022-02-09)
======================

- update to 16.13.2

- claim support for Python 3.6, 3.7, 3.8, 3.9, 3.10

- Load 'arm64' version of node.js on M1/arm apple machines and others.


13.3.0.1 (2019-12-12)
=====================

- update to 13.x


6.2.2.1 (2016-06-28)
====================

- Add support for offline mode in Buildout (`-o`)

- Quote $PATH variable in order to fix problem when $PATH contains space
  characters.


0.12.7.1 (2015-09-01)
=====================

- allow to specify URL for binary node.js distribution (binary-url)


0.12.3.3 (2015-05-22)
=====================

- allow to run non-node scripts (casperjs)

- extend PATH to buildout related paths

- extend NODE_PATH to module dependencies (allow to install .)


0.12.3.2 (2015-05-21)
=====================

- Bugfix when using ``node-directory`` combined with ``relative-path``


0.12.3.1 (2015-05-21)
=====================

- Allow to install node outside parts/ by specifying ``node-directory`` options

- Switch to 0.12.3.1

0.12.0.1 (2015-03-12)
=====================

- Switch to 0.12.0


0.10.28.0 (2014-06-03)
======================

- Switch to 0.10.28

- relative-paths should be honored


0.10.26.0 (2014-02-28)
======================

- Switch to 0.10.26


0.10.24.0 (2013-12-26)
======================

- Switch to 0.10.24


0.10.22.1 (2013-11-23)
======================

- Switch to 0.10.22

- scripts option is no longer required


0.10.21.1 (2013-11-08)
======================

- Switch to 0.10.21

- Allow dev version

- PEP8


0.10.20.1 (2013-10-14)
======================

- Switch to 0.10.20

- py3 compat


0.10.18.2 (2013-09-13)
======================

- Fixes a failure installing npms when the buildout path contains spaces

0.10.18.1
=========

- Update node version

- Allow to use download cache

0.10.8.1
========

- Allow to install only node/npm

0.10.5.1
========

- Now use binary distribution on linux and osx by default. Mean that the recipe
  no longer require gcc and the installation is way much faster.

- Raise an error if a script does not exist

- Use package version to get the node.js version to install

0.3
===

- Change npm install script location
  [Ross Pfahler]

0.1
===

- Created recipe with ZopeSkel
  [Gael Pasgrimaud]

Download
********

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/gawel/gp.recipe.node",
    "name": "gp.recipe.node",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.9",
    "maintainer_email": null,
    "keywords": "buildout node.js node",
    "author": "Gael Pasgrimaud",
    "author_email": "gael@gawel.org",
    "download_url": "https://files.pythonhosted.org/packages/04/0e/810209ffb1739629ee40c5b4931d158eabe5c41d74cdbe11bd0dc0f59562/gp_recipe_node-22.17.1.1.tar.gz",
    "platform": null,
    "description": ".. image:: https://github.com/gawel/gp.recipe.node/actions/workflows/tests.yml/badge.svg\n   :alt: GitHub Workflow Status\n   :target: https://github.com/gawel/gp.recipe.node/actions/workflows/tests.yml\n.. image:: https://img.shields.io/pypi/v/gp.recipe.node.svg\n   :target: https://crate.io/packages/gp.recipe.node/\n.. image:: https://img.shields.io/pypi/dm/gp.recipe.node.svg\n   :target: https://crate.io/packages/gp.recipe.node/\n.. contents::\n\n- Code repository: https://github.com/gawel/gp.recipe.node\n\n\nDetailed Documentation\n**********************\n\nSupported options\n=================\n\nThe recipe supports the following options:\n\n.. Note to recipe author!\n   ----------------------\n   For each option the recipe uses you should include a description\n   about the purpose of the option, the format and semantics of the\n   values it accepts, whether it is mandatory or optional and what the\n   default value is if it is omitted.\n\nurl\n    url to a node.js source archive\n\nbinary-url\n    url to a node.js binary archive. You can use placeholders ``{v}`` (the\n    desired node version), ``{p}`` (platform name), and ``{a}`` (CPU\n    architecture).  Defaults to\n    ``https://nodejs.org/dist/v{v}/node-v{v}-{p}-{a}.tar.gz``.  Ignored if\n    url is set, or if the platform is not recognized.\n\nversion\n    node.js version. Ignored if url is set, or if binary-url is set that\n    doesn't use the ``{v}`` placeholder. Default to recipe version.  Mean\n    that using ``recipe=gp.recipe.node==0.10.22.X`` will install ``node\n    0.10.22``\n\nnpms\n    a list of package to install with npm. You can specify a package version by\n    using ``npmname@version``. In case you want to specify a ``package.json``\n    generated after a successfull first installation or update, you can \n    add ``.`` to the list.\n\nscripts\n    a list of scripts (optional)\n\nnode-path\n    a list of extra directory to add to ``NODE_PATH``\n\nrelative-paths\n    will generate paths relative to the root buildout directory.\n    this is also honored if 'relative-paths' is in the main\n    buildout section\n\n\nExample usage\n=============\n\nWe'll start by creating a buildout that uses the recipe::\n\n    >>> write('buildout.cfg',\n    ... \"\"\"\n    ... [buildout]\n    ... parts = test1\n    ...\n    ... [test1]\n    ... recipe = gp.recipe.node\n    ... npms = coffee-script less . \n    ... scripts = coffee lessc\n    ... \"\"\")\n\nRunning the buildout gives us::\n\n    >>> print 'start', system(buildout)\n    start...\n    Installing test1.\n    ...\n    Generated script '.../bin/lessc'.\n\nContributors\n************\n\nGael Pasgrimaud, Author\nYusuke Tsutsumi\nMichael Howitz\n\nChange history\n**************\n\n22.17.1.1 (2025-07-25)\n======================\n\n- Update to node 22.17.1.\n\n- Drop support for Python 3.7 and 3.8.\n\n- Drop support for no longer working ``python setup.py test`` command.\n\n- Drop support for ``pkg_resources`` namespace and replace it with PEP 420\n  native namespace.\n\n- Remove Python 2 leftovers.\n\n- Add support for Python 3.12 and 3.13.\n\n\n18.16.0.1 (2023-04-21)\n======================\n\n- Update to 18.16.0\n\n\n16.20.0.1 (2023-04-18)\n======================\n\n- update to 16.20.0\n\n- Stop testing for Python 3.6.\n\n- Claim support for Python 3.11.\n\n\n16.13.2.1 (2022-02-09)\n======================\n\n- update to 16.13.2\n\n- claim support for Python 3.6, 3.7, 3.8, 3.9, 3.10\n\n- Load 'arm64' version of node.js on M1/arm apple machines and others.\n\n\n13.3.0.1 (2019-12-12)\n=====================\n\n- update to 13.x\n\n\n6.2.2.1 (2016-06-28)\n====================\n\n- Add support for offline mode in Buildout (`-o`)\n\n- Quote $PATH variable in order to fix problem when $PATH contains space\n  characters.\n\n\n0.12.7.1 (2015-09-01)\n=====================\n\n- allow to specify URL for binary node.js distribution (binary-url)\n\n\n0.12.3.3 (2015-05-22)\n=====================\n\n- allow to run non-node scripts (casperjs)\n\n- extend PATH to buildout related paths\n\n- extend NODE_PATH to module dependencies (allow to install .)\n\n\n0.12.3.2 (2015-05-21)\n=====================\n\n- Bugfix when using ``node-directory`` combined with ``relative-path``\n\n\n0.12.3.1 (2015-05-21)\n=====================\n\n- Allow to install node outside parts/ by specifying ``node-directory`` options\n\n- Switch to 0.12.3.1\n\n0.12.0.1 (2015-03-12)\n=====================\n\n- Switch to 0.12.0\n\n\n0.10.28.0 (2014-06-03)\n======================\n\n- Switch to 0.10.28\n\n- relative-paths should be honored\n\n\n0.10.26.0 (2014-02-28)\n======================\n\n- Switch to 0.10.26\n\n\n0.10.24.0 (2013-12-26)\n======================\n\n- Switch to 0.10.24\n\n\n0.10.22.1 (2013-11-23)\n======================\n\n- Switch to 0.10.22\n\n- scripts option is no longer required\n\n\n0.10.21.1 (2013-11-08)\n======================\n\n- Switch to 0.10.21\n\n- Allow dev version\n\n- PEP8\n\n\n0.10.20.1 (2013-10-14)\n======================\n\n- Switch to 0.10.20\n\n- py3 compat\n\n\n0.10.18.2 (2013-09-13)\n======================\n\n- Fixes a failure installing npms when the buildout path contains spaces\n\n0.10.18.1\n=========\n\n- Update node version\n\n- Allow to use download cache\n\n0.10.8.1\n========\n\n- Allow to install only node/npm\n\n0.10.5.1\n========\n\n- Now use binary distribution on linux and osx by default. Mean that the recipe\n  no longer require gcc and the installation is way much faster.\n\n- Raise an error if a script does not exist\n\n- Use package version to get the node.js version to install\n\n0.3\n===\n\n- Change npm install script location\n  [Ross Pfahler]\n\n0.1\n===\n\n- Created recipe with ZopeSkel\n  [Gael Pasgrimaud]\n\nDownload\n********\n",
    "bugtrack_url": null,
    "license": "ZPL",
    "summary": "ZC Buildout recipe for node.js",
    "version": "22.17.1.1",
    "project_urls": {
        "Homepage": "https://github.com/gawel/gp.recipe.node"
    },
    "split_keywords": [
        "buildout",
        "node.js",
        "node"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "861ca92051477e6102b347e383738b7eee1d21c851287fa1328d5a66ec788b69",
                "md5": "efeaab8df2454bb9f2372215bf747036",
                "sha256": "55b848bf34d62371a3e0df432a1a2f5a6ef744f670e2477c688beae00b4d5992"
            },
            "downloads": -1,
            "filename": "gp_recipe_node-22.17.1.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "efeaab8df2454bb9f2372215bf747036",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.9",
            "size": 8756,
            "upload_time": "2025-07-25T12:49:03",
            "upload_time_iso_8601": "2025-07-25T12:49:03.278056Z",
            "url": "https://files.pythonhosted.org/packages/86/1c/a92051477e6102b347e383738b7eee1d21c851287fa1328d5a66ec788b69/gp_recipe_node-22.17.1.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "040e810209ffb1739629ee40c5b4931d158eabe5c41d74cdbe11bd0dc0f59562",
                "md5": "5ee629e3ab5b1835a0f5cc52c6d01e44",
                "sha256": "32c01ce32d4a97d704d0cf0dfc410a5853da3293d22611581f90748ee7bab6ab"
            },
            "downloads": -1,
            "filename": "gp_recipe_node-22.17.1.1.tar.gz",
            "has_sig": false,
            "md5_digest": "5ee629e3ab5b1835a0f5cc52c6d01e44",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.9",
            "size": 12181,
            "upload_time": "2025-07-25T12:49:04",
            "upload_time_iso_8601": "2025-07-25T12:49:04.512466Z",
            "url": "https://files.pythonhosted.org/packages/04/0e/810209ffb1739629ee40c5b4931d158eabe5c41d74cdbe11bd0dc0f59562/gp_recipe_node-22.17.1.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-07-25 12:49:04",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "gawel",
    "github_project": "gp.recipe.node",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "tox": true,
    "lcname": "gp.recipe.node"
}
        
Elapsed time: 1.39119s