{"action":"created","issue":{"url":"https://api.github.com/repos/minolin/acplugins/issues/5","labels_url":"https://api.github.com/repos/minolin/acplugins/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/minolin/acplugins/issues/5/comments","events_url":"https://api.github.com/repos/minolin/acplugins/issues/5/events","html_url":"https://github.com/minolin/acplugins/issues/5","id":98557371,"number":5,"title":"Add the python-server api plugin to pypi","user":{"login":"hgross","id":810276,"avatar_url":"https://avatars.githubusercontent.com/u/810276?v=3","gravatar_id":"","url":"https://api.github.com/users/hgross","html_url":"https://github.com/hgross","followers_url":"https://api.github.com/users/hgross/followers","following_url":"https://api.github.com/users/hgross/following{/other_user}","gists_url":"https://api.github.com/users/hgross/gists{/gist_id}","starred_url":"https://api.github.com/users/hgross/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hgross/subscriptions","organizations_url":"https://api.github.com/users/hgross/orgs","repos_url":"https://api.github.com/users/hgross/repos","events_url":"https://api.github.com/users/hgross/events{/privacy}","received_events_url":"https://api.github.com/users/hgross/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-08-01T19:34:52Z","updated_at":"2015-08-04T11:06:34Z","closed_at":null,"body":"Would be really nice to have the great python plugin versioned on pypi.\r\nIf you need help with this, contact me."},"comment":{"url":"https://api.github.com/repos/minolin/acplugins/issues/comments/127566803","html_url":"https://github.com/minolin/acplugins/issues/5#issuecomment-127566803","issue_url":"https://api.github.com/repos/minolin/acplugins/issues/5","id":127566803,"user":{"login":"hgross","id":810276,"avatar_url":"https://avatars.githubusercontent.com/u/810276?v=3","gravatar_id":"","url":"https://api.github.com/users/hgross","html_url":"https://github.com/hgross","followers_url":"https://api.github.com/users/hgross/followers","following_url":"https://api.github.com/users/hgross/following{/other_user}","gists_url":"https://api.github.com/users/hgross/gists{/gist_id}","starred_url":"https://api.github.com/users/hgross/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hgross/subscriptions","organizations_url":"https://api.github.com/users/hgross/orgs","repos_url":"https://api.github.com/users/hgross/repos","events_url":"https://api.github.com/users/hgross/events{/privacy}","received_events_url":"https://api.github.com/users/hgross/received_events","type":"User","site_admin":false},"created_at":"2015-08-04T11:06:34Z","updated_at":"2015-08-04T11:06:34Z","body":"The whole publish process is well defined and supported by pip. A typical publish to PyPi is done with a single command:\r\n```\r\npython setup.py register sdist upload\r\n```\r\nThis command\r\n * Updates the version number, description and any other meta data to PyPi\r\n * builds a distribution zip containing the python package\r\n * uploads the zip to pypi\r\n\r\nTo upload to PyPi you need to be registered (it is free): \r\nhttps://pypi.python.org/pypi?%3Aaction=register_form\r\n\r\nI can upload it for you but I guess you want to keep control of the package.\r\nAlternativley I can provide you the setup.py and all initially needed files to get it going so you can publish it easily.\r\n\r\nVersioning is included in the PyPi conventions - see this example setup.py which should be sufficient to publish to PyPi:\r\n```python\r\nfrom setuptools import setup\r\n\r\nsetup(name='ac-server-api',\r\n      version='0.1',\r\n      description='Python api layer for Assetto Corsa\\'s UDP server API. Developed and tested with ACServer 1.2',\r\n      url='https://github.com/minolin/acplugins',\r\n      author='Minolin',\r\n      author_email='email@example.com',\r\n      license='MIT',\r\n      packages=['acserver'], # put the three files (plus an empty __init__.py) into a folder \"acserver\"\r\n      zip_safe=False)\r\n```\r\n\r\nYou can optionally include a README.rst which is then rendered at PyPi.\r\nSee my package: https://pypi.python.org/pypi/speedwise-node\r\nIf you download and unzip it, you can check the setup.py and everything - but the example above should enable you to publish to PyPi right away. It is really not that much effort needed to get going.\r\n\r\nAnother short and good example of the PyPi/pip mechanics can be found here: http://www.scotttorborg.com/python-packaging/minimal.html\r\n\r\n\r\n"}}