1
0

setup.py 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. # -*- coding: utf-8 -*-
  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="SynapseIdentityServer",
  25. version="0.1",
  26. packages=find_packages(exclude=["tests"]),
  27. description="Reference Synapse Identity Verification and Lookup Server",
  28. install_requires=[
  29. "signedjson==1.0.0",
  30. "unpaddedbase64==1.1.0",
  31. "Twisted>=16.0.0",
  32. "service_identity>=1.0.0",
  33. "pyasn1",
  34. "pynacl",
  35. "pyyaml",
  36. "daemonize",
  37. "phonenumbers",
  38. ],
  39. setup_requires=[
  40. "setuptools_trial",
  41. "setuptools>=1.0.0", # Needs setuptools that supports git+ssh. It's not obvious when support for this was introduced.
  42. "mock"
  43. ],
  44. include_package_data=True,
  45. long_description=read("README.rst"),
  46. )