generate.py 765 B

12345678910111213141516171819202122232425262728293031323334
  1. import os
  2. import sys
  3. sys.path.insert(0, os.path.abspath(
  4. os.path.join(__file__, os.pardir, os.pardir)))
  5. from celery import VERSION
  6. from bundle import Bundle
  7. series = "{}.{}".format(*VERSION[:2])
  8. defaults = {"version": series,
  9. "author": "Celery Project",
  10. "author_email": "bundles@celeryproject.org",
  11. "url": "http://celeryproject.org",
  12. "license": "BSD"}
  13. bundles = [
  14. Bundle("celery-with-redis",
  15. "Bundle that installs the dependencies for Celery and Redis",
  16. requires=["celery>=%s,<3.0" % (series, ), "redis>=2.4.4"],
  17. **defaults),
  18. ]
  19. def main():
  20. for bundle in bundles:
  21. bundle.bump_if_exists()
  22. print(bundle.render_readme())
  23. if __name__ == "__main__":
  24. main()