setup.py 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. #!/usr/bin/env python
  2. # Copyright 2014 OpenMarket Ltd
  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. import os
  16. from setuptools import setup, find_packages
  17. # Utility function to read the README file.
  18. # Used for the long_description. It's nice, because now 1) we have a top level
  19. # README file and 2) it's easier to type in the README file than to put a raw
  20. # string in below ...
  21. def read(fname):
  22. return open(os.path.join(os.path.dirname(__file__), fname)).read()
  23. setup(
  24. name="matrix-synapse",
  25. version=read("VERSION").strip(),
  26. packages=find_packages(exclude=["tests", "tests.*"]),
  27. description="Reference Synapse Home Server",
  28. install_requires=[
  29. "syutil==0.0.2",
  30. "matrix_angular_sdk==0.6.0",
  31. "Twisted>=14.0.0",
  32. "service_identity>=1.0.0",
  33. "pyopenssl>=0.14",
  34. "pyyaml",
  35. "pyasn1",
  36. "pynacl",
  37. "daemonize",
  38. "py-bcrypt",
  39. "frozendict>=0.4",
  40. "pillow",
  41. ],
  42. dependency_links=[
  43. "https://github.com/matrix-org/syutil/tarball/v0.0.2#egg=syutil-0.0.2",
  44. "https://github.com/pyca/pynacl/tarball/d4d3175589b892f6ea7c22f466e0e223853516fa#egg=pynacl-0.3.0",
  45. "https://github.com/matrix-org/matrix-angular-sdk/tarball/v0.6.0/#egg=matrix_angular_sdk-0.6.0",
  46. ],
  47. setup_requires=[
  48. "setuptools_trial",
  49. "setuptools>=1.0.0", # Needs setuptools that supports git+ssh.
  50. # TODO: Do we need this now? we don't use git+ssh.
  51. "mock"
  52. ],
  53. include_package_data=True,
  54. zip_safe=False,
  55. long_description=read("README.rst"),
  56. entry_points="""
  57. [console_scripts]
  58. synctl=synapse.app.synctl:main
  59. synapse-homeserver=synapse.app.homeserver:main
  60. """
  61. )