{"action":"created","issue":{"url":"https://api.github.com/repos/maxcountryman/atomos/issues/2","labels_url":"https://api.github.com/repos/maxcountryman/atomos/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/maxcountryman/atomos/issues/2/comments","events_url":"https://api.github.com/repos/maxcountryman/atomos/issues/2/events","html_url":"https://github.com/maxcountryman/atomos/pull/2","id":60947311,"number":2,"title":"[WIP]Add support to run tests agains Python 3 using tox and multiprocessing support","user":{"login":"wiliamsouza","id":215986,"avatar_url":"https://avatars.githubusercontent.com/u/215986?v=3","gravatar_id":"","url":"https://api.github.com/users/wiliamsouza","html_url":"https://github.com/wiliamsouza","followers_url":"https://api.github.com/users/wiliamsouza/followers","following_url":"https://api.github.com/users/wiliamsouza/following{/other_user}","gists_url":"https://api.github.com/users/wiliamsouza/gists{/gist_id}","starred_url":"https://api.github.com/users/wiliamsouza/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wiliamsouza/subscriptions","organizations_url":"https://api.github.com/users/wiliamsouza/orgs","repos_url":"https://api.github.com/users/wiliamsouza/repos","events_url":"https://api.github.com/users/wiliamsouza/events{/privacy}","received_events_url":"https://api.github.com/users/wiliamsouza/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-03-13T00:41:53Z","updated_at":"2015-05-02T17:01:21Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/maxcountryman/atomos/pulls/2","html_url":"https://github.com/maxcountryman/atomos/pull/2","diff_url":"https://github.com/maxcountryman/atomos/pull/2.diff","patch_url":"https://github.com/maxcountryman/atomos/pull/2.patch"},"body":"My plan was to open two PR one to add Python 3 test support and another with multiprocessing support\r\nbut it seems not possible.\r\n\r\nThis adds:\r\n\r\n* `python setup.py test` command.\r\n* `tox` command.\r\n\r\nExamples:\r\n\r\n```python\r\n>>> import atomos.multiprocessing.atomic\r\n>>> counter = atomos.multiprocessing.atomic.AtomicInteger()\r\n>>> counter.get()\r\n0\r\n```\r\n\r\nand \r\n\r\n```python\r\nfrom multiprocessing import Process\r\n\r\nprocess_count=10\r\nloop_count=1000\r\n\r\natomic_int = atomos.multiprocessing.atomic.AtomicInteger()\r\n\r\ndef inc_atomic_int():\r\n    for _ in range(loop_count):\r\n        atomic_int.add_and_get(1)\r\n\r\nprocesses = []\r\nfor _ in range(process_count):\r\n    p = Process(target=inc_atomic_int)\r\n    processes.append(p)\r\n    p.start()\r\n```"},"comment":{"url":"https://api.github.com/repos/maxcountryman/atomos/issues/comments/98380074","html_url":"https://github.com/maxcountryman/atomos/pull/2#issuecomment-98380074","issue_url":"https://api.github.com/repos/maxcountryman/atomos/issues/2","id":98380074,"user":{"login":"wiliamsouza","id":215986,"avatar_url":"https://avatars.githubusercontent.com/u/215986?v=3","gravatar_id":"","url":"https://api.github.com/users/wiliamsouza","html_url":"https://github.com/wiliamsouza","followers_url":"https://api.github.com/users/wiliamsouza/followers","following_url":"https://api.github.com/users/wiliamsouza/following{/other_user}","gists_url":"https://api.github.com/users/wiliamsouza/gists{/gist_id}","starred_url":"https://api.github.com/users/wiliamsouza/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wiliamsouza/subscriptions","organizations_url":"https://api.github.com/users/wiliamsouza/orgs","repos_url":"https://api.github.com/users/wiliamsouza/repos","events_url":"https://api.github.com/users/wiliamsouza/events{/privacy}","received_events_url":"https://api.github.com/users/wiliamsouza/received_events","type":"User","site_admin":false},"created_at":"2015-05-02T17:01:21Z","updated_at":"2015-05-02T17:01:21Z","body":"Look this [1] and this [2].\r\nNow we have two `AtomicReference` implementation one of it only support `ctypes` and the other  works like the threaded version. I think it removes the restrictions we talked later.\r\n\r\n[1] https://github.com/maxcountryman/atomos/pull/2/files#diff-a5fa8912dea8db2cd0aa83511c1f55baR21\r\n[2] https://github.com/maxcountryman/atomos/pull/2/files#diff-a5fa8912dea8db2cd0aa83511c1f55baR33"}}