setup.py 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. #!/usr/bin/env python
  2. # Copyright 2012 Google Inc. All Rights Reserved.
  3. #
  4. # Licensed under the Apache License, Version 2.0 (the "License");
  5. # you may not use this file except in compliance with the License.
  6. # You may obtain a copy of the License at
  7. #
  8. # http://www.apache.org/licenses/LICENSE-2.0
  9. #
  10. # Unless required by applicable law or agreed to in writing, software
  11. # distributed under the License is distributed on an "AS IS" BASIS,
  12. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. # See the License for the specific language governing permissions and
  14. # limitations under the License.
  15. """Creates a distributable python package.
  16. Creating new packages:
  17. 1. Generate the package, dist/webpagereplay-X.X.tar.gz:
  18. python setup.py sdist
  19. 2. Upload the package file to the following:
  20. http://code.google.com/p/web-page-replay/downloads/entry
  21. Installing packages:
  22. $ easy_install http://web-page-replay.googlecode.com/files/webpagereplay-X.X.tar.gz
  23. - The replay and httparchive commands are now on your PATH.
  24. """
  25. import setuptools
  26. setuptools.setup(
  27. name='webpagereplay',
  28. version='1.1.2',
  29. description='Record and replay web content',
  30. author='Web Page Replay Project Authors',
  31. author_email='web-page-replay-dev@googlegroups.com',
  32. url='http://code.google.com/p/web-page-replay/',
  33. license='Apache License 2.0',
  34. install_requires=['dnspython>=1.8'],
  35. packages=[
  36. '',
  37. 'third_party',
  38. 'third_party.ipaddr'
  39. ],
  40. package_dir={'': '.'},
  41. package_data={
  42. '': ['*.js', '*.txt', 'COPYING', 'LICENSE'],
  43. },
  44. entry_points={
  45. 'console_scripts': [
  46. 'httparchive = httparchive:main',
  47. 'replay = replay:main',
  48. ]
  49. },
  50. )