{"action":"opened","number":217,"pull_request":{"url":"https://api.github.com/repos/G-Node/nixpy/pulls/217","id":88502095,"html_url":"https://github.com/G-Node/nixpy/pull/217","diff_url":"https://github.com/G-Node/nixpy/pull/217.diff","patch_url":"https://github.com/G-Node/nixpy/pull/217.patch","issue_url":"https://api.github.com/repos/G-Node/nixpy/issues/217","number":217,"state":"open","locked":false,"title":"Windows: Add wheel and appveyor support","user":{"login":"matham","id":1644286,"avatar_url":"https://avatars.githubusercontent.com/u/1644286?v=3","gravatar_id":"","url":"https://api.github.com/users/matham","html_url":"https://github.com/matham","followers_url":"https://api.github.com/users/matham/followers","following_url":"https://api.github.com/users/matham/following{/other_user}","gists_url":"https://api.github.com/users/matham/gists{/gist_id}","starred_url":"https://api.github.com/users/matham/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matham/subscriptions","organizations_url":"https://api.github.com/users/matham/orgs","repos_url":"https://api.github.com/users/matham/repos","events_url":"https://api.github.com/users/matham/events{/privacy}","received_events_url":"https://api.github.com/users/matham/received_events","type":"User","site_admin":false},"body":"Regarding wheels, this works by getting the most recent nix (currently the version is set using `NIX_VERSION` in appveyor) binaries and including them in the wheel. It adds them under share/nixio/bin in your python installation folder. Then at runtime that folder, if it exists, is added to the PATH.\r\n\r\nThis is how we do it at [kivy ](https://github.com/kivy/kivyhttps://github.com/kivy/kivy) and is similarly how numpy [does it](https://github.com/numpy/numpy/issues/6923) (although a bit differently). This makes it easy to install and uninstall since you just need to do pip install wheel_name, provided you have the numpy and h5py dependencies installed of course. If it's uploaded to pypi, then they just do `pip install nixio`.\r\n\r\nWhen packaging and building a end user exe using e.g. pyinstaller, for projects that use nixio, this is also super easy, as the project just specifies that pyinstaller include the contents of that folder which includes al the binaries.\r\n\r\nCurrently, it works with 64 and 32 bit versions of py 2.7, 3.4, and 3.5. The wheels are found under the [artifacts tab](https://ci.appveyor.com/project/matham/nixpy/build/1.0.52) for each build.\r\n\r\nFor you to make it work, you'd need to merge this PR and then in appveyor you'd import the nixpy project in your account and in the settings tell it it to build all the branches, but only the branches that include an appveyor.yml file. The settings that run the builds will then be provided by the appveyor.yml file included in the PR (most of the setting in the general tab in appveyor control panel cannot be controlled from the appveyor.yml file so you have to set them there).\r\n\r\nFinally, the docs need to be updated, but that can be done after we're sure it works. Also, I tried to set up the tests to run on appveyor for each build, however, the h5py and numpy wheels, when using vanilla python, must be downloaded from www.lfd.uci.edu/~gohlke/pythonlibs/ which cannot be done from the command line. So I couldn't run it. We could download manually and then upload those wheels somewhere if you have a server, in which case it should be easy to setup the tests to run automatically. Finally, appveyor runs and generates wheels for every commit, PR, and git tag. So automatic tests would be useful there.","created_at":"2016-10-07T20:23:28Z","updated_at":"2016-10-07T20:23:28Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4722db4da38573a5194be75b4db3c71742bf364a","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/G-Node/nixpy/pulls/217/commits","review_comments_url":"https://api.github.com/repos/G-Node/nixpy/pulls/217/comments","review_comment_url":"https://api.github.com/repos/G-Node/nixpy/pulls/comments{/number}","comments_url":"https://api.github.com/repos/G-Node/nixpy/issues/217/comments","statuses_url":"https://api.github.com/repos/G-Node/nixpy/statuses/1b70d8a2287d2ba8b30afe739d917f74d9e27bcc","head":{"label":"matham:master","ref":"master","sha":"1b70d8a2287d2ba8b30afe739d917f74d9e27bcc","user":{"login":"matham","id":1644286,"avatar_url":"https://avatars.githubusercontent.com/u/1644286?v=3","gravatar_id":"","url":"https://api.github.com/users/matham","html_url":"https://github.com/matham","followers_url":"https://api.github.com/users/matham/followers","following_url":"https://api.github.com/users/matham/following{/other_user}","gists_url":"https://api.github.com/users/matham/gists{/gist_id}","starred_url":"https://api.github.com/users/matham/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matham/subscriptions","organizations_url":"https://api.github.com/users/matham/orgs","repos_url":"https://api.github.com/users/matham/repos","events_url":"https://api.github.com/users/matham/events{/privacy}","received_events_url":"https://api.github.com/users/matham/received_events","type":"User","site_admin":false},"repo":{"id":69061292,"name":"nixpy","full_name":"matham/nixpy","owner":{"login":"matham","id":1644286,"avatar_url":"https://avatars.githubusercontent.com/u/1644286?v=3","gravatar_id":"","url":"https://api.github.com/users/matham","html_url":"https://github.com/matham","followers_url":"https://api.github.com/users/matham/followers","following_url":"https://api.github.com/users/matham/following{/other_user}","gists_url":"https://api.github.com/users/matham/gists{/gist_id}","starred_url":"https://api.github.com/users/matham/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matham/subscriptions","organizations_url":"https://api.github.com/users/matham/orgs","repos_url":"https://api.github.com/users/matham/repos","events_url":"https://api.github.com/users/matham/events{/privacy}","received_events_url":"https://api.github.com/users/matham/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/matham/nixpy","description":"Python bindings for NIX","fork":true,"url":"https://api.github.com/repos/matham/nixpy","forks_url":"https://api.github.com/repos/matham/nixpy/forks","keys_url":"https://api.github.com/repos/matham/nixpy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/matham/nixpy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/matham/nixpy/teams","hooks_url":"https://api.github.com/repos/matham/nixpy/hooks","issue_events_url":"https://api.github.com/repos/matham/nixpy/issues/events{/number}","events_url":"https://api.github.com/repos/matham/nixpy/events","assignees_url":"https://api.github.com/repos/matham/nixpy/assignees{/user}","branches_url":"https://api.github.com/repos/matham/nixpy/branches{/branch}","tags_url":"https://api.github.com/repos/matham/nixpy/tags","blobs_url":"https://api.github.com/repos/matham/nixpy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/matham/nixpy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/matham/nixpy/git/refs{/sha}","trees_url":"https://api.github.com/repos/matham/nixpy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/matham/nixpy/statuses/{sha}","languages_url":"https://api.github.com/repos/matham/nixpy/languages","stargazers_url":"https://api.github.com/repos/matham/nixpy/stargazers","contributors_url":"https://api.github.com/repos/matham/nixpy/contributors","subscribers_url":"https://api.github.com/repos/matham/nixpy/subscribers","subscription_url":"https://api.github.com/repos/matham/nixpy/subscription","commits_url":"https://api.github.com/repos/matham/nixpy/commits{/sha}","git_commits_url":"https://api.github.com/repos/matham/nixpy/git/commits{/sha}","comments_url":"https://api.github.com/repos/matham/nixpy/comments{/number}","issue_comment_url":"https://api.github.com/repos/matham/nixpy/issues/comments{/number}","contents_url":"https://api.github.com/repos/matham/nixpy/contents/{+path}","compare_url":"https://api.github.com/repos/matham/nixpy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/matham/nixpy/merges","archive_url":"https://api.github.com/repos/matham/nixpy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/matham/nixpy/downloads","issues_url":"https://api.github.com/repos/matham/nixpy/issues{/number}","pulls_url":"https://api.github.com/repos/matham/nixpy/pulls{/number}","milestones_url":"https://api.github.com/repos/matham/nixpy/milestones{/number}","notifications_url":"https://api.github.com/repos/matham/nixpy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/matham/nixpy/labels{/name}","releases_url":"https://api.github.com/repos/matham/nixpy/releases{/id}","deployments_url":"https://api.github.com/repos/matham/nixpy/deployments","created_at":"2016-09-23T21:16:31Z","updated_at":"2016-09-23T21:16:32Z","pushed_at":"2016-10-07T20:05:36Z","git_url":"git://github.com/matham/nixpy.git","ssh_url":"git@github.com:matham/nixpy.git","clone_url":"https://github.com/matham/nixpy.git","svn_url":"https://github.com/matham/nixpy","homepage":"","size":3110,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"G-Node:master","ref":"master","sha":"5aa25413a9732191ec6e32840d8a65b67962f589","user":{"login":"G-Node","id":574778,"avatar_url":"https://avatars.githubusercontent.com/u/574778?v=3","gravatar_id":"","url":"https://api.github.com/users/G-Node","html_url":"https://github.com/G-Node","followers_url":"https://api.github.com/users/G-Node/followers","following_url":"https://api.github.com/users/G-Node/following{/other_user}","gists_url":"https://api.github.com/users/G-Node/gists{/gist_id}","starred_url":"https://api.github.com/users/G-Node/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/G-Node/subscriptions","organizations_url":"https://api.github.com/users/G-Node/orgs","repos_url":"https://api.github.com/users/G-Node/repos","events_url":"https://api.github.com/users/G-Node/events{/privacy}","received_events_url":"https://api.github.com/users/G-Node/received_events","type":"Organization","site_admin":false},"repo":{"id":20493628,"name":"nixpy","full_name":"G-Node/nixpy","owner":{"login":"G-Node","id":574778,"avatar_url":"https://avatars.githubusercontent.com/u/574778?v=3","gravatar_id":"","url":"https://api.github.com/users/G-Node","html_url":"https://github.com/G-Node","followers_url":"https://api.github.com/users/G-Node/followers","following_url":"https://api.github.com/users/G-Node/following{/other_user}","gists_url":"https://api.github.com/users/G-Node/gists{/gist_id}","starred_url":"https://api.github.com/users/G-Node/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/G-Node/subscriptions","organizations_url":"https://api.github.com/users/G-Node/orgs","repos_url":"https://api.github.com/users/G-Node/repos","events_url":"https://api.github.com/users/G-Node/events{/privacy}","received_events_url":"https://api.github.com/users/G-Node/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/G-Node/nixpy","description":"Python bindings for NIX","fork":false,"url":"https://api.github.com/repos/G-Node/nixpy","forks_url":"https://api.github.com/repos/G-Node/nixpy/forks","keys_url":"https://api.github.com/repos/G-Node/nixpy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/G-Node/nixpy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/G-Node/nixpy/teams","hooks_url":"https://api.github.com/repos/G-Node/nixpy/hooks","issue_events_url":"https://api.github.com/repos/G-Node/nixpy/issues/events{/number}","events_url":"https://api.github.com/repos/G-Node/nixpy/events","assignees_url":"https://api.github.com/repos/G-Node/nixpy/assignees{/user}","branches_url":"https://api.github.com/repos/G-Node/nixpy/branches{/branch}","tags_url":"https://api.github.com/repos/G-Node/nixpy/tags","blobs_url":"https://api.github.com/repos/G-Node/nixpy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/G-Node/nixpy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/G-Node/nixpy/git/refs{/sha}","trees_url":"https://api.github.com/repos/G-Node/nixpy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/G-Node/nixpy/statuses/{sha}","languages_url":"https://api.github.com/repos/G-Node/nixpy/languages","stargazers_url":"https://api.github.com/repos/G-Node/nixpy/stargazers","contributors_url":"https://api.github.com/repos/G-Node/nixpy/contributors","subscribers_url":"https://api.github.com/repos/G-Node/nixpy/subscribers","subscription_url":"https://api.github.com/repos/G-Node/nixpy/subscription","commits_url":"https://api.github.com/repos/G-Node/nixpy/commits{/sha}","git_commits_url":"https://api.github.com/repos/G-Node/nixpy/git/commits{/sha}","comments_url":"https://api.github.com/repos/G-Node/nixpy/comments{/number}","issue_comment_url":"https://api.github.com/repos/G-Node/nixpy/issues/comments{/number}","contents_url":"https://api.github.com/repos/G-Node/nixpy/contents/{+path}","compare_url":"https://api.github.com/repos/G-Node/nixpy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/G-Node/nixpy/merges","archive_url":"https://api.github.com/repos/G-Node/nixpy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/G-Node/nixpy/downloads","issues_url":"https://api.github.com/repos/G-Node/nixpy/issues{/number}","pulls_url":"https://api.github.com/repos/G-Node/nixpy/pulls{/number}","milestones_url":"https://api.github.com/repos/G-Node/nixpy/milestones{/number}","notifications_url":"https://api.github.com/repos/G-Node/nixpy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/G-Node/nixpy/labels{/name}","releases_url":"https://api.github.com/repos/G-Node/nixpy/releases{/id}","deployments_url":"https://api.github.com/repos/G-Node/nixpy/deployments","created_at":"2014-06-04T17:50:22Z","updated_at":"2016-09-02T11:20:34Z","pushed_at":"2016-10-07T20:23:28Z","git_url":"git://github.com/G-Node/nixpy.git","ssh_url":"git@github.com:G-Node/nixpy.git","clone_url":"https://github.com/G-Node/nixpy.git","svn_url":"https://github.com/G-Node/nixpy","homepage":"","size":3123,"stargazers_count":6,"watchers_count":6,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":14,"mirror_url":null,"open_issues_count":24,"forks":14,"open_issues":24,"watchers":6,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/G-Node/nixpy/pulls/217"},"html":{"href":"https://github.com/G-Node/nixpy/pull/217"},"issue":{"href":"https://api.github.com/repos/G-Node/nixpy/issues/217"},"comments":{"href":"https://api.github.com/repos/G-Node/nixpy/issues/217/comments"},"review_comments":{"href":"https://api.github.com/repos/G-Node/nixpy/pulls/217/comments"},"review_comment":{"href":"https://api.github.com/repos/G-Node/nixpy/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/G-Node/nixpy/pulls/217/commits"},"statuses":{"href":"https://api.github.com/repos/G-Node/nixpy/statuses/1b70d8a2287d2ba8b30afe739d917f74d9e27bcc"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":0,"review_comments":0,"commits":5,"additions":188,"deletions":8,"changed_files":5}}
{"actor":{"display_login":"matham"}}