{"action":"created","issue":{"url":"https://api.github.com/repos/gorakhargosh/watchdog/issues/297","labels_url":"https://api.github.com/repos/gorakhargosh/watchdog/issues/297/labels{/name}","comments_url":"https://api.github.com/repos/gorakhargosh/watchdog/issues/297/comments","events_url":"https://api.github.com/repos/gorakhargosh/watchdog/issues/297/events","html_url":"https://github.com/gorakhargosh/watchdog/issues/297","id":57743155,"number":297,"title":"make yaml a extra dependency","user":{"login":"RonnyPfannschmidt","id":156838,"avatar_url":"https://avatars.githubusercontent.com/u/156838?v=3","gravatar_id":"","url":"https://api.github.com/users/RonnyPfannschmidt","html_url":"https://github.com/RonnyPfannschmidt","followers_url":"https://api.github.com/users/RonnyPfannschmidt/followers","following_url":"https://api.github.com/users/RonnyPfannschmidt/following{/other_user}","gists_url":"https://api.github.com/users/RonnyPfannschmidt/gists{/gist_id}","starred_url":"https://api.github.com/users/RonnyPfannschmidt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RonnyPfannschmidt/subscriptions","organizations_url":"https://api.github.com/users/RonnyPfannschmidt/orgs","repos_url":"https://api.github.com/users/RonnyPfannschmidt/repos","events_url":"https://api.github.com/users/RonnyPfannschmidt/events{/privacy}","received_events_url":"https://api.github.com/users/RonnyPfannschmidt/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-02-15T19:50:46Z","updated_at":"2015-06-12T18:49:08Z","closed_at":null,"body":"i'd love to use the core package, but i don't want the yaml dependency and i don't use the script"},"comment":{"url":"https://api.github.com/repos/gorakhargosh/watchdog/issues/comments/111587226","html_url":"https://github.com/gorakhargosh/watchdog/issues/297#issuecomment-111587226","issue_url":"https://api.github.com/repos/gorakhargosh/watchdog/issues/297","id":111587226,"user":{"login":"Kwpolska","id":327323,"avatar_url":"https://avatars.githubusercontent.com/u/327323?v=3","gravatar_id":"","url":"https://api.github.com/users/Kwpolska","html_url":"https://github.com/Kwpolska","followers_url":"https://api.github.com/users/Kwpolska/followers","following_url":"https://api.github.com/users/Kwpolska/following{/other_user}","gists_url":"https://api.github.com/users/Kwpolska/gists{/gist_id}","starred_url":"https://api.github.com/users/Kwpolska/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kwpolska/subscriptions","organizations_url":"https://api.github.com/users/Kwpolska/orgs","repos_url":"https://api.github.com/users/Kwpolska/repos","events_url":"https://api.github.com/users/Kwpolska/events{/privacy}","received_events_url":"https://api.github.com/users/Kwpolska/received_events","type":"User","site_admin":false},"created_at":"2015-06-12T18:49:08Z","updated_at":"2015-06-12T18:49:08Z","body":"I’d love to send a pull request, but I can’t get buildout to work.  Here’s my patch for this feature instead:\r\n\r\n```diff\r\ndiff --git a/setup.py b/setup.py\r\nindex ba7283c..8c27538 100644\r\n--- a/setup.py\r\n+++ b/setup.py\r\n@@ -81,7 +81,7 @@ tests_require=['pytest', 'pytest-cov', 'pytest-timeout >=0.3']\r\n if sys.version_info < (2, 7, 0):\r\n     tests_require.append('unittest2')\r\n \r\n-install_requires = ['PyYAML >=3.10', 'argh >=0.24.1', 'pathtools >=0.1.1']\r\n+install_requires = ['argh >=0.24.1', 'pathtools >=0.1.1']\r\n if sys.version_info < (2, 7, 0):\r\n     # argparse is merged into Python 2.7 in the Python 2x series\r\n     # and Python 3.2 in the Python 3x series.\r\n@@ -92,6 +92,8 @@ if sys.version_info < (2, 7, 0):\r\n         # which works.\r\n         install_requires.append('select_backport >=0.2')\r\n \r\n+cmd_requires = ['PyYAML >=3.10']\r\n+\r\n with open('README.rst') as f:\r\n     readme = f.read()\r\n \r\n@@ -142,6 +144,7 @@ setup(name=\"watchdog\",\r\n       packages=find_packages(SRC_DIR),\r\n       include_package_data=True,\r\n       install_requires=install_requires,\r\n+      extras_require={'cmd': cmd_requires},\r\n       tests_require=tests_require,\r\n       cmdclass={\r\n           'build_ext': build_ext,\r\n```\r\n\r\n\r\ncore-only usage:\r\n\r\n    $ pip install watchdog\r\n\r\ncmd usage:\r\n\r\n    $ pip install \"watchdog[cmd]\"\r\n\r\n\r\n**Maintainers:** please review and apply if possible, we’d all appreciate it :smiley:"}}