{"action":"created","issue":{"url":"https://api.github.com/repos/bajwa-adobe/ust-configapp/issues/2","repository_url":"https://api.github.com/repos/bajwa-adobe/ust-configapp","labels_url":"https://api.github.com/repos/bajwa-adobe/ust-configapp/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/bajwa-adobe/ust-configapp/issues/2/comments","events_url":"https://api.github.com/repos/bajwa-adobe/ust-configapp/issues/2/events","html_url":"https://github.com/bajwa-adobe/ust-configapp/issues/2","id":302527343,"number":2,"title":"Suggestion - use a Pipfile","user":{"login":"adorton-adobe","id":25495410,"avatar_url":"https://avatars2.githubusercontent.com/u/25495410?v=4","gravatar_id":"","url":"https://api.github.com/users/adorton-adobe","html_url":"https://github.com/adorton-adobe","followers_url":"https://api.github.com/users/adorton-adobe/followers","following_url":"https://api.github.com/users/adorton-adobe/following{/other_user}","gists_url":"https://api.github.com/users/adorton-adobe/gists{/gist_id}","starred_url":"https://api.github.com/users/adorton-adobe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adorton-adobe/subscriptions","organizations_url":"https://api.github.com/users/adorton-adobe/orgs","repos_url":"https://api.github.com/users/adorton-adobe/repos","events_url":"https://api.github.com/users/adorton-adobe/events{/privacy}","received_events_url":"https://api.github.com/users/adorton-adobe/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-03-06T01:21:58Z","updated_at":"2018-03-09T00:42:17Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"Instead of putting Python requirements in `requirements.txt`, we should consider defining requirements in a [Pipfile](https://github.com/pypa/pipfile).\r\n\r\nPipfile is a pretty new spec, but it will eventually [get built-in support in pip](https://github.com/pypa/pipfile#pip-integration-eventual).\r\n\r\nFor now Pipfile support is implemented in [pipenv](https://docs.pipenv.org/).  pipenv is recommended in [Python's official documentation](https://packaging.python.org/tutorials/managing-dependencies/#managing-dependencies).\r\n\r\nHere's a Pipfile I generated from the requirements file (after adding a missing dependency - see #1).\r\n\r\n```toml\r\n[[source]]\r\n\r\nurl = \"https://pypi.python.org/simple\"\r\nverify_ssl = true\r\nname = \"pypi\"\r\n\r\n\r\n[packages]\r\n\r\nflask = \"==0.12.2\"\r\nflask-cors = \"==3.0.3\"\r\n\"ruamel.base\" = \"==1.0.0\"\r\n\"ruamel.yaml\" = \"==0.15.35\"\r\n\r\n[dev-packages]\r\n\r\n\r\n\r\n[requires]\r\n\r\npython_version = \"3.6\"\r\n```"},"comment":{"url":"https://api.github.com/repos/bajwa-adobe/ust-configapp/issues/comments/371674797","html_url":"https://github.com/bajwa-adobe/ust-configapp/issues/2#issuecomment-371674797","issue_url":"https://api.github.com/repos/bajwa-adobe/ust-configapp/issues/2","id":371674797,"user":{"login":"bajwa-adobe","id":28625684,"avatar_url":"https://avatars0.githubusercontent.com/u/28625684?v=4","gravatar_id":"","url":"https://api.github.com/users/bajwa-adobe","html_url":"https://github.com/bajwa-adobe","followers_url":"https://api.github.com/users/bajwa-adobe/followers","following_url":"https://api.github.com/users/bajwa-adobe/following{/other_user}","gists_url":"https://api.github.com/users/bajwa-adobe/gists{/gist_id}","starred_url":"https://api.github.com/users/bajwa-adobe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bajwa-adobe/subscriptions","organizations_url":"https://api.github.com/users/bajwa-adobe/orgs","repos_url":"https://api.github.com/users/bajwa-adobe/repos","events_url":"https://api.github.com/users/bajwa-adobe/events{/privacy}","received_events_url":"https://api.github.com/users/bajwa-adobe/received_events","type":"User","site_admin":false},"created_at":"2018-03-09T00:42:17Z","updated_at":"2018-03-09T00:42:17Z","author_association":"OWNER","body":"I had initially used [js-yaml](https://github.com/nodeca/js-yaml) but it lost comments on save.  Similar issue highlighted on this [link](https://github.com/nodeca/js-yaml/issues/282)\r\n\r\nI haven't found any famous YML parser/writer in NodeJS that preserve comments and original keys order. Python module [ruamel.yaml](https://pypi.python.org/pypi/ruamel.yaml) supports round trip preservation of comments.\r\n"}}
{"actor":{"display_login":"bajwa-adobe"}}