{
"info": {
"author": "Andreas Schmidl",
"author_email": "Andreas.Schmidl@gmail.com",
"bugtrack_url": null,
"classifiers": [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Programming Language :: Python :: 3.4",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Topic :: Software Development"
],
"description": "setuptools-pyecore\n==================\n\n|Build Status| |Coverage Status| |PyPI Version| |GitHub Version| |License|\n\n.. |Build Status| image:: https://travis-ci.org/pyecore/setuptools-pyecore.svg\n :target: https://travis-ci.org/pyecore/setuptools-pyecore\n :alt: Build Status\n\n.. |Coverage Status| image:: https://coveralls.io/repos/github/pyecore/setuptools-pyecore/badge.svg?branch=master\n :target: https://coveralls.io/github/pyecore/setuptools-pyecore?branch=master\n :alt: Coverage Status\n\n.. |PyPI Version| image:: https://badge.fury.io/py/setuptools-pyecore.svg\n :target: https://pypi.org/project/setuptools-pyecore\n :alt: PyPI Version\n\n.. |GitHub Version| image:: https://badge.fury.io/gh/pyecore%2Fsetuptools-pyecore.svg\n :target: https://github.com/pyecore/setuptools-pyecore/releases\n :alt: GitHub Version\n\n.. |License| image:: https://img.shields.io/github/license/pyecore/setuptools-pyecore.svg\n :target: https://raw.githubusercontent.com/pyecore/setuptools-pyecore/master/LICENSE\n :alt: License\n\n.. contents:: Table of Contents\n :depth: 2\n\nOverview\n--------\n\nA ``setuptools`` command for generating Python code from Ecore models.\n\nThis is an extension for `setuptools `__ integrating the `pyecoregen `__ code generator into the Python packaging process. It encapsulates ``pyecoregen`` and provides the user a ``setuptools`` command called ``pyecore`` to control the generation process.\n\nIn a basic setup the user doesn't have to configure the generation process at all because ``setuptools-pyecore`` discovers Ecore models located in the current working directory and triggers the code generation for each detected Ecore model. Also a meaningful output folder is chosen automatically.\n\nOf course the user has to possibility to customize the generation process. The command line options of ``pyecoregen`` are also available through the ``pyecore`` setuptools command. The user has the choice to pass the options on the command line or configure the code generation in a dedicated section in the ``setup.cfg`` file.\n\nInstallation\n------------\n\n``setuptools-pyecore`` can be installed in various ways. To run it the following prerequisites have to be fulfilled:\n\n- Python 3.4+\n- setuptools\n\nAfter installation, the used Python environment has a new setuptools command called ``pyecore``.\n\nFrom Source Code\n****************\n\n::\n\n > git clone https://github.com/pyecore/setuptools-pyecore.git\n > cd setuptools-pyecore\n > pip install .\n\nFrom PyPI\n*********\n\n::\n\n > pip install setuptools-pyecore\n\nFrom GitHub Releases\n********************\n\n::\n\n > pip install \n\nUsage\n-----\n\nIntegration\n***********\n\nFor a smooth user experience it's recommended to pass ``setuptools-pyecore`` using the ``setup_requires`` argument of setup function. Additionally the generated Python code depends on the ``pyecore`` library which should be added to ``install_requires`` argument:\n\n.. code:: python\n\n setup(\n ...\n setup_requires=['setuptools-pyecore'],\n install_requires=['pyecore']\n ...\n )\n\nBefore generating Python code from a given Ecore model ``setuptools`` will automatically check the Python environment and download ``setuptools-pyecore`` from `PyPI `__ if it's missing. During the installation of the project package ``pip`` will install ``pyecore`` into the Python environment.\n\nConfiguration\n*************\n\n``setuptools-pyecore`` provides two possibilities to configure the pyecore generator.\n\nAll options can be passed on the command line after the ``pyecore`` command:\n\n::\n\n > python setup.py pyecore --auto-register-package\n\nIt's also possible to pass several options to ``pyecoregen`` or execute multiple commands at once:\n\n::\n\n > python setup.py pyecore --auto-register-package --output \"default=gen\" bdist_wheel\n\nSee ``python setup.py pyecore --help`` for available command line options:\n\n::\n\n > python setup.py pyecore --help\n ...\n Options for 'PyEcoreCommand' command:\n --ecore-models (-e) specify Ecore models to generate code for\n --output (-o) specify directories where output is generated\n --user-modules dotted names of modules with user-provided mixins\n to import from generated classes\n --auto-register-package Generate package auto-registration for the PyEcore\n 'global_registry'\n ...\n\nThe ``pyecoregen`` documentation explains all `command line options `__ in detail.\n\nApart from passing options on the command line it's also possible to add a dedicated ``[pyecore]`` section to ``setup.cfg``. The following example section contains all available options:\n\n.. code:: ini\n\n [pyecore]\n # Specify Ecore models to generate code for; default: None\n #ecore-models = [ ...]\n # Specify directories where output is generated; default: ./\n output = default=gen\n # Dotted names of modules with user-provided mixins to import from generated classes; default: None\n #user-modules = [=]\n # [= ...]\n # Generate package auto-registration for the PyEcore 'global_registry' (yes|no); default: no\n auto-register-package = yes\n\nA reference configuration is provided in the ``resources`` directory.\n\n``pyecoregen`` inherits the log level globally configured for ``setuptools``. To set the verbosity to a certain log level pass the global options ``verbose`` or ``quiet`` straight before the ``pyecore`` command on the command line:\n\n::\n\n > python setup.py --verbose pyecore\n\nAlternatively, you can add these options to the ``[global]`` section of your ``setup.cfg``:\n\n.. code:: ini\n\n [global]\n # Run verbosely (yes|no); default: yes\n #verbose = yes\n # Run quietly and turns verbosity off (yes|no); default: no\n quiet = yes\n\nSample\n******\n\nBesides the ``setuptools-pyecore`` source code a sample project called ``library`` is provided in the ``samples`` directory. This sample consists of the Ecore model ``library`` and a setup script. During the execution of ``setuptools-pyecore`` a Python package will be generated into the ``library`` package directory representing the classes from the ``library`` Ecore model.\n\nTo generate code out of the Ecore model and build a ``library`` wheel package execute the following command:\n\n::\n\n > python setup.py pyecore bdist_wheel\n\n\n",
"description_content_type": "",
"docs_url": null,
"download_url": "",
"downloads": {
"last_day": -1,
"last_month": -1,
"last_week": -1
},
"home_page": "https://github.com/pyecore/setuptools-pyecore",
"keywords": "setuptools model metamodel EMF Ecore code generator",
"license": "BSD 3-Clause",
"maintainer": "",
"maintainer_email": "",
"name": "setuptools-pyecore",
"package_url": "https://pypi.org/project/setuptools-pyecore/",
"platform": "any",
"project_url": "https://pypi.org/project/setuptools-pyecore/",
"project_urls": {
"Homepage": "https://github.com/pyecore/setuptools-pyecore"
},
"release_url": "https://pypi.org/project/setuptools-pyecore/0.2.0/",
"requires_dist": [
"pyecore",
"pyecoregen"
],
"requires_python": ">=3.4",
"summary": "Setuptools command for generating Python code from PyEcore models.",
"version": "0.2.0"
},
"last_serial": 4234122,
"releases": {
"0.1.0": [
{
"comment_text": "",
"digests": {
"md5": "b7c8b3232fd017488ed841e03e5ff790",
"sha256": "4f71fda9a2a0672ae1369795b56ff2bc8b1b038e9545691d5629e9d60340b50f"
},
"downloads": -1,
"filename": "setuptools_pyecore-0.1.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "b7c8b3232fd017488ed841e03e5ff790",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.4",
"size": 5581,
"upload_time": "2018-08-28T15:58:41",
"url": "https://files.pythonhosted.org/packages/8e/53/acd6f14c498a9545f0ea33d0d796a64e3dc32a05e0e1acba04ada90ff3b8/setuptools_pyecore-0.1.0-py3-none-any.whl"
},
{
"comment_text": "",
"digests": {
"md5": "d85980e8fa1986efa387ad133ee0eee6",
"sha256": "e3759770f30791ed74f9e893232038554e988eb9b605c40d046635bee842af55"
},
"downloads": -1,
"filename": "setuptools-pyecore-0.1.0.tar.gz",
"has_sig": false,
"md5_digest": "d85980e8fa1986efa387ad133ee0eee6",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.4",
"size": 6505,
"upload_time": "2018-08-28T15:58:43",
"url": "https://files.pythonhosted.org/packages/d3/f4/b92e562e07b6061a9ec2636678bcd27b05dbc6f0d6d8f147cc7a50c6f9e3/setuptools-pyecore-0.1.0.tar.gz"
}
],
"0.1.1": [
{
"comment_text": "",
"digests": {
"md5": "99ebf4541cd4232252847fb218509fef",
"sha256": "d8b2b9a608d171e67b0da775eed13995242a98d3fb1ed288b773c7cc0d752a8a"
},
"downloads": -1,
"filename": "setuptools_pyecore-0.1.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "99ebf4541cd4232252847fb218509fef",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.4",
"size": 5606,
"upload_time": "2018-08-29T21:32:38",
"url": "https://files.pythonhosted.org/packages/c9/27/3ac12e6766094eeb4465e162e75e4cd4dd6585b203c12eecaf3d911d984f/setuptools_pyecore-0.1.1-py3-none-any.whl"
},
{
"comment_text": "",
"digests": {
"md5": "117471ac5619fc99ef51368c28ce37a2",
"sha256": "26cfe79b8467ecbab3b9389817e2b09824e9c8b51873c4da60cacad60ba0a81c"
},
"downloads": -1,
"filename": "setuptools-pyecore-0.1.1.tar.gz",
"has_sig": false,
"md5_digest": "117471ac5619fc99ef51368c28ce37a2",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.4",
"size": 6631,
"upload_time": "2018-08-29T21:32:39",
"url": "https://files.pythonhosted.org/packages/e1/8f/76102c74f5d902ad821afa6686c937269e6a2008724714039091f6f16c75/setuptools-pyecore-0.1.1.tar.gz"
}
],
"0.2.0": [
{
"comment_text": "",
"digests": {
"md5": "c9770f2caebe0b536ce5a97b252c3d95",
"sha256": "82a6cee91005cf6839c6e77e5e449b09a3257ceedf6660a577a92dae4469cca9"
},
"downloads": -1,
"filename": "setuptools_pyecore-0.2.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "c9770f2caebe0b536ce5a97b252c3d95",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.4",
"size": 6076,
"upload_time": "2018-09-03T12:05:32",
"url": "https://files.pythonhosted.org/packages/14/70/8b077af5fc7d2e6439e2ff268501e73adaabad73fc8f7a6e76f34a307183/setuptools_pyecore-0.2.0-py3-none-any.whl"
},
{
"comment_text": "",
"digests": {
"md5": "216a1547850f07d718c57fb0cd9c05c5",
"sha256": "4552276e0cee1a413f394aff60d4e63b1d2156a41f303ebffeaf899c50dfb976"
},
"downloads": -1,
"filename": "setuptools-pyecore-0.2.0.tar.gz",
"has_sig": false,
"md5_digest": "216a1547850f07d718c57fb0cd9c05c5",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.4",
"size": 7198,
"upload_time": "2018-09-03T12:05:34",
"url": "https://files.pythonhosted.org/packages/42/e9/808974e61d46a7bb137072665fbf7fae03651071f0fc4bab6d269f583f02/setuptools-pyecore-0.2.0.tar.gz"
}
]
},
"urls": [
{
"comment_text": "",
"digests": {
"md5": "c9770f2caebe0b536ce5a97b252c3d95",
"sha256": "82a6cee91005cf6839c6e77e5e449b09a3257ceedf6660a577a92dae4469cca9"
},
"downloads": -1,
"filename": "setuptools_pyecore-0.2.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "c9770f2caebe0b536ce5a97b252c3d95",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.4",
"size": 6076,
"upload_time": "2018-09-03T12:05:32",
"url": "https://files.pythonhosted.org/packages/14/70/8b077af5fc7d2e6439e2ff268501e73adaabad73fc8f7a6e76f34a307183/setuptools_pyecore-0.2.0-py3-none-any.whl"
},
{
"comment_text": "",
"digests": {
"md5": "216a1547850f07d718c57fb0cd9c05c5",
"sha256": "4552276e0cee1a413f394aff60d4e63b1d2156a41f303ebffeaf899c50dfb976"
},
"downloads": -1,
"filename": "setuptools-pyecore-0.2.0.tar.gz",
"has_sig": false,
"md5_digest": "216a1547850f07d718c57fb0cd9c05c5",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.4",
"size": 7198,
"upload_time": "2018-09-03T12:05:34",
"url": "https://files.pythonhosted.org/packages/42/e9/808974e61d46a7bb137072665fbf7fae03651071f0fc4bab6d269f583f02/setuptools-pyecore-0.2.0.tar.gz"
}
]
}