1
0

setup.py 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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>=14.0.0",
  32. "service_identity>=1.0.0",
  33. "pyasn1",
  34. "pynacl",
  35. "daemonize",
  36. "phonenumbers",
  37. ],
  38. setup_requires=[
  39. "setuptools_trial",
  40. "setuptools>=1.0.0", # Needs setuptools that supports git+ssh. It's not obvious when support for this was introduced.
  41. "mock"
  42. ],
  43. include_package_data=True,
  44. long_description=read("README.rst"),
  45. )