{ "info": { "author": "4teamwork AG", "author_email": "mailto:info@4teamwork.ch", "bugtrack_url": null, "classifiers": [ "Environment :: Web Environment", "Framework :: Plone", "Framework :: Plone :: 4.3", "Framework :: Plone :: 5.1", "Intended Audience :: Developers", "License :: OSI Approved :: GNU General Public License (GPL)", "Programming Language :: Python", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "ftw.autofeature automatically registers ZCML features.\n\n\nExtras features\n===============\n\nThe ``autofeature:extras`` directive automatically registers ZCML features for each\nextra (``extras_requires``) of your package.\nThe feature for an extra is automatically provided when each dependency of the extra\nis installed.\n\n\nExample\n-------\n\nWhen having a setup.py like this:\n\n.. code:: python\n\n from setuptools import setup, find_packages\n\n setup(name='my.package',\n version='1.0.0dev0',\n packages=find_packages(exclude=['ez_setup']),\n namespace_packages=['my'],\n install_requires=[\n 'setuptools',\n 'ftw.autofeature',\n ],\n\n extras_require={\n 'tests': ['unittest2'],\n 'foo': ['foo', 'foo-compat'],\n 'bar': ['bar', 'bar-compat']})\n\n\nyou can let ``ftw.autofeature`` automatically declare features for your extras:\n\n.. code:: XML\n\n \n\n \n \n\n \n \n \n\n \n \n \n\n \n \n \n\n \n\n\nThe feature ``my.package:foo`` is only registered when the extras is installed.\nWhen installing both, ``foo`` and ``bar``, multiple features are registered so that\nit easy to combine extras with ``AND``:\n\n- ``my.package:foo``\n- ``my.package:foo:bar``\n- ``my.package:bar``\n- ``my.package:bar:foo``\n\n\nLimitiation\n-----------\n\nWe cannot really detect whether the extras was explictly used on installation time.\nWe therefore test whether each dependency in the extras is installed.\nWhen each dependency is installed but not the extras explicitly, this will thus also\nregister the feature.\n\n\nDump feature\n============\n\nThe ``autofeature:dump`` directive dumps the currently registered ZCML features\nto the standard out.\nSimply use the directive to dump the features at any point in the ZCML:\n\n\n.. code:: XML\n\n \n\n \n \n\n \n\n\nLinks\n=====\n\n- Github: https://github.com/4teamwork/ftw.autofeature\n- Issues: https://github.com/4teamwork/ftw.autofeature/issues\n- Pypi: http://pypi.python.org/pypi/ftw.autofeature\n- Continuous integration: https://jenkins.4teamwork.ch/search?q=ftw.autofeature\n\n\nCopyright\n=========\n\nThis package is copyright by `4teamwork `_.\n\n``ftw.autofeature`` is licensed under GNU General Public License, version 2.\n\nChangelog\n=========\n\n\n1.1.0 (2019-09-25)\n------------------\n\n- Add Plone 5 support. [jone]\n\n\n1.0.0 (2015-08-24)\n------------------\n\n- Initial implementation\n [jone]", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/4teamwork/ftw.autofeature", "keywords": "ftw autofeature zcml feature", "license": "GPL2", "maintainer": "", "maintainer_email": "", "name": "ftw.autofeature", "package_url": "https://pypi.org/project/ftw.autofeature/", "platform": "", "project_url": "https://pypi.org/project/ftw.autofeature/", "project_urls": { "Homepage": "https://github.com/4teamwork/ftw.autofeature" }, "release_url": "https://pypi.org/project/ftw.autofeature/1.1.0/", "requires_dist": null, "requires_python": "", "summary": "ftw.autofeature automatically registers ZCML features.", "version": "1.1.0" }, "last_serial": 5885142, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "b373870639d196c230ce75600200d576", "sha256": "0ec3f1030ff638c6149111d8d5be6de9ba7d51158a7bfebba6eaf14e5c82eeb7" }, "downloads": -1, "filename": "ftw.autofeature-1.0.0.tar.gz", "has_sig": false, "md5_digest": "b373870639d196c230ce75600200d576", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12637, "upload_time": "2015-08-24T14:44:16", "url": "https://files.pythonhosted.org/packages/4b/fe/431200ae6450bd8e1c711ba62899f908cb96ee8a26dab034964a09636103/ftw.autofeature-1.0.0.tar.gz" } ], "1.1.0": [ { "comment_text": "", "digests": { "md5": "5974a91c9983f2eaaec193d7ad513d4e", "sha256": "2a66da7842cf8dc5c5d548de9645fff2cb19bf48eea4113ea2e1398bed2fc5f5" }, "downloads": -1, "filename": "ftw.autofeature-1.1.0.tar.gz", "has_sig": false, "md5_digest": "5974a91c9983f2eaaec193d7ad513d4e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13913, "upload_time": "2019-09-25T13:00:20", "url": "https://files.pythonhosted.org/packages/e6/95/3d420a88be27076906d342763c040bb38c60eeec498acef59a09e6ebd376/ftw.autofeature-1.1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "5974a91c9983f2eaaec193d7ad513d4e", "sha256": "2a66da7842cf8dc5c5d548de9645fff2cb19bf48eea4113ea2e1398bed2fc5f5" }, "downloads": -1, "filename": "ftw.autofeature-1.1.0.tar.gz", "has_sig": false, "md5_digest": "5974a91c9983f2eaaec193d7ad513d4e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13913, "upload_time": "2019-09-25T13:00:20", "url": "https://files.pythonhosted.org/packages/e6/95/3d420a88be27076906d342763c040bb38c60eeec498acef59a09e6ebd376/ftw.autofeature-1.1.0.tar.gz" } ] }