{ "info": { "author": "Lo\u00efc Bartoletti", "author_email": "lbartoletti@tuxfamily.org", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Environment :: Console", "Intended Audience :: Developers", "Intended Audience :: System Administrators", "License :: OSI Approved :: BSD License", "Operating System :: POSIX :: BSD :: FreeBSD", "Programming Language :: Python :: 3 :: Only" ], "description": "Started from an idea on twitter and used to reduce the dependencies of a\nport, here a python script to produce dependencies' graph of a(ll)\nFreeBSD ports.\n\nInstall\n=======\n\nUsing pip\n---------\n\n``pip install portgraph``\n\nUsing FreeBSD pkg\n-----------------\n\n``pkg install py36-portgraph``\n\nUsing FreeBSD ports\n-------------------\n\n``make -C /usr/ports/ports-mgmt/py-portgraph``\n\nUsage\n=====\n\nportgraph produces a graph representing the dependencies needed for a\ngiven port or all ports.\n\nOptions are:\n\n::\n\n -h or --help: Show this help\n -l my_dir or --localbase my_dir: Sets my_dir as the directory where ports are located (/usr/ports by default)\n -p my_port or --port my_port: Sets my_port as the port to produce the graph (ports-mgmt/py-portgraph by default).\n -b or --build: build-depends-list (if -b or -r is not present, -b is actived by default).\n -r or --run: run-depends-list (if -b or -r is not present, -b is actived by default).\n -f my_flavor or --flavor my_flavor: Sets the flavor for the port.\n -c or --recursion: Sets the maximum recursion.\n -u or --url: Adds a link to freshports.\n -w or --with-pkg: Since pkg is always required, this is disabled by default. You can enable it with this option.\n -a or --all: Build a graph for each port\n -v or --verbose: Print the port being traversed\n\nThe result is a svg and a graphviz file.\n\nExamples\n========\n\nWithout arguments:\n------------------\n\n``portgraph``\n\n` `__\n\nUsing a specific local ports, like poudriere:\n---------------------------------------------\n\n``portgraph -l /usr/local/poudriere/ports/default``\n\nMost important arguments, the port:\n-----------------------------------\n\n``portgraph -p ports-mgmt/portscout``\n\n` `__\n\nSets the flavor for the port:\n-----------------------------\n\n``portgraph -p databases/py-psycopg2 -f py36``\n\n` `__\n\n``portgraph -p databases/py-psycopg2 -f py27``\n\n` `__\n\nYou can define the depth of the dependencies to display\n-------------------------------------------------------\n\n``portgraph -p databases/pgmodeler -c 1``\n\n` `__\n\nYou want a link to freshports? Add the -u/--url option.\n-------------------------------------------------------\n\n``portgraph -p databases/sfcgal -u -c 2``\n\n` `__\n\nports-mgmt/pkg is the god of all. Do you want to put it?\n--------------------------------------------------------\n\n``portgraph -p ports-mgmt/portscout -w``\n\n` `__\n\nRun and build depends list\n--------------------------\n\nbuild-depends-list are blue and run-depends-list are red.\n\n``portgraph -p lang/python36 -rb -c 2 -u``\n\n` `__\n\nBuild all ports (accept all arguments except -p/--ports)\n--------------------------------------------------------\n\nFor freshports with only one dependency.\n\n``portgraph -a -c 1 -u``\n\nIt can take a long time (880s on my desktop computer and produces 245M\nof files).\n\n Note: examples were made on 2018-02-15. The results may differ\n depending on port updates.\n", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://gitlab.com/lbartoletti/portgraph/", "keywords": "", "license": "LICENSE", "maintainer": "", "maintainer_email": "", "name": "portgraph", "package_url": "https://pypi.org/project/portgraph/", "platform": "", "project_url": "https://pypi.org/project/portgraph/", "project_urls": { "Homepage": "https://gitlab.com/lbartoletti/portgraph/" }, "release_url": "https://pypi.org/project/portgraph/0.0.1/", "requires_dist": null, "requires_python": "", "summary": "Create a graph for a(ll) FreeBSD port(s).", "version": "0.0.1" }, "last_serial": 3590015, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "149cb5582d80eec5a0f7a7a1e6ab082d", "sha256": "49ad0700f8c64e3ea4c84201d11b60bfdc09778100abc8b106be36c1f111b6cb" }, "downloads": -1, "filename": "portgraph-0.0.1.tar.gz", "has_sig": false, "md5_digest": "149cb5582d80eec5a0f7a7a1e6ab082d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1006733, "upload_time": "2018-02-17T06:40:42", "url": "https://files.pythonhosted.org/packages/bf/30/ecd19d70fc020bc50353284d4005b8c633c93ad9f5a7140bb849d2cf938b/portgraph-0.0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "149cb5582d80eec5a0f7a7a1e6ab082d", "sha256": "49ad0700f8c64e3ea4c84201d11b60bfdc09778100abc8b106be36c1f111b6cb" }, "downloads": -1, "filename": "portgraph-0.0.1.tar.gz", "has_sig": false, "md5_digest": "149cb5582d80eec5a0f7a7a1e6ab082d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1006733, "upload_time": "2018-02-17T06:40:42", "url": "https://files.pythonhosted.org/packages/bf/30/ecd19d70fc020bc50353284d4005b8c633c93ad9f5a7140bb849d2cf938b/portgraph-0.0.1.tar.gz" } ] }