{"action":"created","issue":{"url":"https://api.github.com/repos/dgoodwin/tito/issues/237","repository_url":"https://api.github.com/repos/dgoodwin/tito","labels_url":"https://api.github.com/repos/dgoodwin/tito/issues/237/labels{/name}","comments_url":"https://api.github.com/repos/dgoodwin/tito/issues/237/comments","events_url":"https://api.github.com/repos/dgoodwin/tito/issues/237/events","html_url":"https://github.com/dgoodwin/tito/issues/237","id":190310101,"number":237,"title":"[RFE] Support for programming language package managers","user":{"login":"msehnout","id":9369632,"avatar_url":"https://avatars.githubusercontent.com/u/9369632?v=3","gravatar_id":"","url":"https://api.github.com/users/msehnout","html_url":"https://github.com/msehnout","followers_url":"https://api.github.com/users/msehnout/followers","following_url":"https://api.github.com/users/msehnout/following{/other_user}","gists_url":"https://api.github.com/users/msehnout/gists{/gist_id}","starred_url":"https://api.github.com/users/msehnout/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/msehnout/subscriptions","organizations_url":"https://api.github.com/users/msehnout/orgs","repos_url":"https://api.github.com/users/msehnout/repos","events_url":"https://api.github.com/users/msehnout/events{/privacy}","received_events_url":"https://api.github.com/users/msehnout/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-11-18T12:39:28Z","updated_at":"2016-11-18T13:44:34Z","closed_at":null,"body":"It would be nice, if `tito` could cooperate with a package manager specific to a certain programming language.\r\n\r\nFor example these package managers: [Cargo](http://doc.crates.io/manifest.html), [OPAM](https://opam.ocaml.org/doc/Packaging.html#Thequotopamquotfile), [Cabal](https://wiki.haskell.org/How_to_write_a_Haskell_program#Add_a_build_system) have their own configuration file with a line specifying the **version** of the package. `tito tag` could either read the version from the file or write to the file.\r\n\r\n**Current solution:**\r\nUsing the template_file option, I can create something like this: \r\ntito.props:\r\n```ini\r\n[version_template]\r\ndestination_file = Cargo.toml\r\ntemplate_file = Cargo.toml.template\r\n```\r\nTemplate:\r\n```toml\r\n[package]\r\nname = \"hello_tito\"\r\nversion = \"$version\"\r\nauthors = [\"xxx\"]\r\n\r\n[dependencies]\r\n```\r\nResult:\r\n```toml\r\n[package]\r\nname = \"hello_tito\"\r\nversion = \"0.1.1\"\r\nauthors = [\"xxx\"]\r\n\r\n[dependencies]\r\n```\r\n\r\nBut this is somewhat annoying when I want to change the `Cargo.toml` file without making new tag.\r\n\r\n**Proposed solution:**\r\ntito.props\r\n```ini\r\n[version_file]\r\npkg_type = cargo\r\nconfig_file = Cargo.toml\r\n```\r\n\r\nWhat do you think? Is it a desirable feature in `tito`?"},"comment":{"url":"https://api.github.com/repos/dgoodwin/tito/issues/comments/261534685","html_url":"https://github.com/dgoodwin/tito/issues/237#issuecomment-261534685","issue_url":"https://api.github.com/repos/dgoodwin/tito/issues/237","id":261534685,"user":{"login":"dgoodwin","id":51265,"avatar_url":"https://avatars.githubusercontent.com/u/51265?v=3","gravatar_id":"","url":"https://api.github.com/users/dgoodwin","html_url":"https://github.com/dgoodwin","followers_url":"https://api.github.com/users/dgoodwin/followers","following_url":"https://api.github.com/users/dgoodwin/following{/other_user}","gists_url":"https://api.github.com/users/dgoodwin/gists{/gist_id}","starred_url":"https://api.github.com/users/dgoodwin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dgoodwin/subscriptions","organizations_url":"https://api.github.com/users/dgoodwin/orgs","repos_url":"https://api.github.com/users/dgoodwin/repos","events_url":"https://api.github.com/users/dgoodwin/events{/privacy}","received_events_url":"https://api.github.com/users/dgoodwin/received_events","type":"User","site_admin":false},"created_at":"2016-11-18T13:44:34Z","updated_at":"2016-11-18T13:44:34Z","body":"Here is the relevant setup.py example: https://github.com/dgoodwin/tito/blob/master/src/tito/tagger/main.py#L135\r\n\r\nMight be good to think about how to organize if this list of supported files starts to grow, or how to let users control which ones are enabled or disabled, I think setup.py is assumed if we see one, we try to update it. Not sure if that is a good path forward or not.\r\n\r\nThere are tests that should be easy to build on as well."}}
{"actor":{"display_login":"dgoodwin"}}