setup.py 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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="SynapseHomeServer",
  25. version="0.0.1",
  26. packages=find_packages(exclude=["tests"]),
  27. description="Reference Synapse Home Server",
  28. install_requires=[
  29. "syutil==0.0.2",
  30. "Twisted>=14.0.0",
  31. "service_identity>=1.0.0",
  32. "pyyaml",
  33. "pyasn1",
  34. "pynacl",
  35. "daemonize",
  36. "py-bcrypt",
  37. ],
  38. dependency_links=[
  39. "git+ssh://git@github.com/matrix-org/syutil.git#egg=syutil-0.0.2",
  40. ],
  41. setup_requires=[
  42. "setuptools_trial",
  43. "setuptools>=1.0.0", # Needs setuptools that supports git+ssh. It's not obvious when support for this was introduced.
  44. "mock"
  45. ],
  46. include_package_data=True,
  47. long_description=read("README.rst"),
  48. entry_points="""
  49. [console_scripts]
  50. synapse-homeserver=synapse.app.homeserver:run
  51. """
  52. )