{ "info": { "author": "The Health Agency", "author_email": "techniek@thehealthagency.com", "bugtrack_url": null, "classifiers": [], "description": "Superseded by sdistmaker\r\n========================\r\n\r\n**Warning**: tha.sdistmaker is now called just `sdistmaker\r\n`_. No functional changes between the\r\n1.1 here and sdistmaker's 1.2 (apart from better commandline options and\r\nimproved documentation).\r\n\r\nThe old documentation follows below.\r\n\r\n\r\n\r\ntha.sdistmaker\r\n==============\r\n\r\nCreate sdist tarballs from svn tags, intended for use with a company-internal\r\nsvn repository. Creates sdist tarballs into a directory you can then serve\r\nwith apache.\r\n\r\nWritten by `Reinout van Rees `_ at `The Health\r\nAgency `_.\r\n\r\nMore details in src/tha/sdistmaker/USAGE.txt .\r\n\r\n\r\nUsage of tha.sdistmaker\r\n=======================\r\n\r\n.. :doctest:\r\n.. :setup: tha.sdistmaker.tests.test_setup.setup\r\n.. :teardown: tha.sdistmaker.tests.test_setup.teardown\r\n\r\ntha.sdistmaker has two main uses:\r\n\r\n- Make and store an sdist tarball of a single tag.\r\n\r\n- Go through all tags and ensure they all have an sdist tarball.\r\n\r\n\r\nTest setup\r\n----------\r\n\r\n\"Pypi\" directory for placing tarballs:\r\n\r\n >>> print pypidir\r\n PYPI\r\n\r\nMonkeypatching to prevent real action from taking place:\r\n\r\n >>> import commands\r\n >>> orig_getstatusoutput = commands.getstatusoutput\r\n >>> output_results = ['']\r\n >>> def mock_getstatusoutput(cmd):\r\n ... print \"Command:\", cmd\r\n ... return 0, output_results.pop(0)\r\n >>> commands.getstatusoutput = mock_getstatusoutput\r\n >>> commands.getstatusoutput('make tea')\r\n Command: make tea\r\n (0, '')\r\n\r\n >>> import shutil\r\n >>> orig_copy = shutil.copy\r\n >>> def mock_copy(src, dest):\r\n ... print \"Mock copy %s -> %s\" % (src, dest)\r\n ... open(dest, 'w').write('mock')\r\n >>> shutil.copy = mock_copy\r\n\r\n\r\nMaking sdist tarball of a single tag\r\n------------------------------------\r\n\r\n >>> from tha.sdistmaker import maker\r\n >>> tag = 'http://example.org/repo/project/tags/0.1'\r\n\r\nThe script makes an svn checkout of the tag and uses setuptools to grab the\r\nname and version and to make an sdist. This is then copied to the pypi dir in\r\na subdirectory named after the project.\r\n\r\n >>> output_results = ['',\r\n ... 'project',\r\n ... '0.1',\r\n ... '',\r\n ... ]\r\n >>> maker.main(tag=tag, destination=pypidir)\r\n Doing checkout of http://example.org/repo/project/tags/0.1\r\n Command: svn co http://example.org/repo/project/tags/0.1 ...\r\n Detecting name and version\r\n Command: python setup.py --name\r\n Name: project\r\n Command: python setup.py --version\r\n Version: 0.1\r\n Making sdist tarball\r\n Command: python setup.py sdist\r\n \r\n Creating directory PYPI/project\r\n Copying tarball project-0.1.tar.gz\r\n Mock copy dist/project-0.1.tar.gz -> PYPI/project/project-0.1.tar.gz\r\n\r\nA new directory for the project is created:\r\n\r\n >>> import os\r\n >>> os.listdir(pypidir)\r\n ['project']\r\n\r\nAnd the tarball is in there:\r\n\r\n >>> sorted(os.listdir(os.path.join(pypidir, 'project')))\r\n ['project-0.1.tar.gz']\r\n\r\nA new release is placed alongside just fine:\r\n\r\n >>> tag = 'http://example.org/repo/project/tags/0.2'\r\n >>> output_results = ['',\r\n ... 'project',\r\n ... '0.2',\r\n ... '',\r\n ... ]\r\n >>> maker.main(tag=tag, destination=pypidir)\r\n Doing checkout of http://example.org/repo/project/tags/0.2\r\n Command: svn co http://example.org/repo/project/tags/0.2 ...\r\n Detecting name and version\r\n Command: python setup.py --name\r\n Name: project\r\n Command: python setup.py --version\r\n Version: 0.2\r\n Making sdist tarball\r\n Command: python setup.py sdist\r\n \r\n Copying tarball project-0.2.tar.gz\r\n Mock copy dist/project-0.2.tar.gz -> PYPI/project/project-0.2.tar.gz\r\n >>> os.listdir(pypidir)\r\n ['project']\r\n >>> sorted(os.listdir(os.path.join(pypidir, 'project')))\r\n ['project-0.1.tar.gz', 'project-0.2.tar.gz']\r\n\r\nAnd a second project:\r\n\r\n >>> tag = 'http://example.org/repo/another/tags/0.2'\r\n >>> output_results = ['',\r\n ... 'another',\r\n ... '0.2',\r\n ... '',\r\n ... ]\r\n >>> maker.main(tag=tag, destination=pypidir)\r\n Doing checkout of http://example.org/repo/another/tags/0.2\r\n Command: svn co http://example.org/repo/another/tags/0.2 ...\r\n Detecting name and version\r\n Command: python setup.py --name\r\n Name: another\r\n Command: python setup.py --version\r\n Version: 0.2\r\n Making sdist tarball\r\n Command: python setup.py sdist\r\n \r\n Creating directory PYPI/another\r\n Copying tarball another-0.2.tar.gz\r\n Mock copy dist/another-0.2.tar.gz -> PYPI/another/another-0.2.tar.gz\r\n >>> sorted(os.listdir(pypidir))\r\n ['another', 'project']\r\n >>> sorted(os.listdir(os.path.join(pypidir, 'project')))\r\n ['project-0.1.tar.gz', 'project-0.2.tar.gz']\r\n >>> sorted(os.listdir(os.path.join(pypidir, 'another')))\r\n ['another-0.2.tar.gz']\r\n\r\n\r\n\r\nRestore originals:\r\n\r\n >>> commands.getstatusoutput = orig_getstatusoutput\r\n >>> shutil.copy = orig_copy\r\n\r\n\r\nTODO\r\n====\r\n\r\n- Probably a whole lot of things.\r\n\r\n\r\nChangelog of tha.sdistmaker\r\n===========================\r\n\r\n\r\n1.1 (2009-12-22)\r\n----------------\r\n\r\n- Documentation update.\r\n\r\n\r\n1.0 (2009-12-21)\r\n----------------\r\n\r\n- Setup.py cleanup.\r\n\r\n\r\n0.4 (2009-11-09)\r\n----------------\r\n\r\n- Replacing base and base_on_server the right way around, now.\r\n\r\n\r\n0.2 (2009-11-09)\r\n----------------\r\n\r\n- Cleaning up the tempdir after we're finished with it. And cd'ing out of\r\n that dir before zapping it.\r\n\r\n- Using buildout's bin/python so that we get setuptools also when run on the\r\n server where there's no global setuptools. This assumes we're always run\r\n within buildout: fine with me.\r\n\r\n\r\n0.1 (2009-11-06)\r\n----------------\r\n\r\n- Added sdist_from_tags script for creating all tarballs.\r\n\r\n- Added make_sdist script for creating a single sdist.\r\n\r\n- Initial library skeleton created by thaskel.", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://www.thehealthagency.com", "keywords": "", "license": "BSD", "maintainer": "", "maintainer_email": "", "name": "tha.sdistmaker", "package_url": "https://pypi.org/project/tha.sdistmaker/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/tha.sdistmaker/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://www.thehealthagency.com" }, "release_url": "https://pypi.org/project/tha.sdistmaker/1.1/", "requires_dist": null, "requires_python": null, "summary": "Superseded by 'sdistmaker' (was: Make sdists tarballs for projects in svn tree)", "version": "1.1" }, "last_serial": 800541, "releases": { "1.0": [ { "comment_text": "", "digests": { "md5": "fc6fd153c80d533ceb38a2bf5bfba190", "sha256": "b75be73a607ec8be24a6cc50826bc87911b38e31b961ed8f030baf22df941453" }, "downloads": -1, "filename": "tha.sdistmaker-1.0.tar.gz", "has_sig": false, "md5_digest": "fc6fd153c80d533ceb38a2bf5bfba190", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8500, "upload_time": "2009-12-22T10:24:01", "url": "https://files.pythonhosted.org/packages/98/7f/ce5b1ab9bd902d39d2f97ac4ec92f84ca6b8b47e8c7a728717f98af56cfa/tha.sdistmaker-1.0.tar.gz" } ], "1.1": [ { "comment_text": "", "digests": { "md5": "f9a56a11b820cc939aeee825cf329757", "sha256": "0f72e9f7c4611e7e11af17c1c45795bc93a0e91c4275f6b8adae8083601e04b4" }, "downloads": -1, "filename": "tha.sdistmaker-1.1.tar.gz", "has_sig": false, "md5_digest": "f9a56a11b820cc939aeee825cf329757", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8607, "upload_time": "2009-12-22T10:26:57", "url": "https://files.pythonhosted.org/packages/25/74/8ab012ef30dde1374ef13a69f08eec994ae287bb436feae9ab96c860bb26/tha.sdistmaker-1.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "f9a56a11b820cc939aeee825cf329757", "sha256": "0f72e9f7c4611e7e11af17c1c45795bc93a0e91c4275f6b8adae8083601e04b4" }, "downloads": -1, "filename": "tha.sdistmaker-1.1.tar.gz", "has_sig": false, "md5_digest": "f9a56a11b820cc939aeee825cf329757", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8607, "upload_time": "2009-12-22T10:26:57", "url": "https://files.pythonhosted.org/packages/25/74/8ab012ef30dde1374ef13a69f08eec994ae287bb436feae9ab96c860bb26/tha.sdistmaker-1.1.tar.gz" } ] }