blob: 3202f843c54c4cafcae71fe1d80afac62a650bdf [file] [log] [blame]
Alex Gaynorbfc06bc2013-08-06 19:36:19 -07001# Licensed under the Apache License, Version 2.0 (the "License");
2# you may not use this file except in compliance with the License.
3# You may obtain a copy of the License at
4#
5# http://www.apache.org/licenses/LICENSE-2.0
6#
7# Unless required by applicable law or agreed to in writing, software
8# distributed under the License is distributed on an "AS IS" BASIS,
9# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
10# implied.
11# See the License for the specific language governing permissions and
12# limitations under the License.
Alex Gaynorf51f2c12014-01-03 07:33:01 -080013import os
14
Donald Stufft9ebb8ff2013-08-11 17:05:03 -040015from setuptools import setup, find_packages
Alex Gaynorc62e91f2013-08-06 19:25:52 -070016
Donald Stufft446a4572013-08-11 17:38:13 -040017
Alex Gaynor7630d6c2014-01-03 07:34:43 -080018base_dir = os.path.dirname(__file__)
19
Donald Stufft5f12a1b2013-08-11 16:37:43 -040020about = {}
Alex Gaynor7630d6c2014-01-03 07:34:43 -080021with open(os.path.join(base_dir, "cryptography", "__about__.py")) as f:
22 exec(f.read(), about)
Donald Stufft5f12a1b2013-08-11 16:37:43 -040023
24
25CFFI_DEPENDENCY = "cffi>=0.6"
Paul Kehrerc0242552013-09-10 18:54:13 -050026SIX_DEPENDENCY = "six>=1.4.1"
Donald Stufft5f12a1b2013-08-11 16:37:43 -040027
28install_requires = [
29 CFFI_DEPENDENCY,
Paul Kehrerc0242552013-09-10 18:54:13 -050030 SIX_DEPENDENCY
Donald Stufft5f12a1b2013-08-11 16:37:43 -040031]
32
33setup_requires = [
34 CFFI_DEPENDENCY,
35]
Alex Gaynorc62e91f2013-08-06 19:25:52 -070036
Alex Gaynor7630d6c2014-01-03 07:34:43 -080037with open(os.path.join(base_dir, "README.rst")) as f:
Alex Gaynorf51f2c12014-01-03 07:33:01 -080038 long_description = f.read()
39
40
Alex Gaynorc62e91f2013-08-06 19:25:52 -070041setup(
Donald Stufft5f12a1b2013-08-11 16:37:43 -040042 name=about["__title__"],
43 version=about["__version__"],
44
45 description=about["__summary__"],
Alex Gaynorf51f2c12014-01-03 07:33:01 -080046 long_description=long_description,
Donald Stufft5f12a1b2013-08-11 16:37:43 -040047 license=about["__license__"],
48 url=about["__uri__"],
49
50 author=about["__author__"],
51 author_email=about["__email__"],
52
Christian Heimesf83ed1d2013-08-10 23:28:29 +020053 classifiers=[
54 "Development Status :: 2 - Pre-Alpha",
55 "Intended Audience :: Developers",
56 "License :: OSI Approved :: Apache Software License",
57 "Natural Language :: English",
58 "Operating System :: MacOS :: MacOS X",
59 "Operating System :: POSIX",
60 "Operating System :: POSIX :: BSD",
61 "Operating System :: POSIX :: Linux",
62 "Operating System :: Microsoft :: Windows",
Christian Heimesf83ed1d2013-08-10 23:28:29 +020063 "Programming Language :: Python",
64 "Programming Language :: Python :: 2",
65 "Programming Language :: Python :: 2.6",
66 "Programming Language :: Python :: 2.7",
67 "Programming Language :: Python :: 3",
68 "Programming Language :: Python :: 3.2",
69 "Programming Language :: Python :: 3.3",
70 "Programming Language :: Python :: Implementation :: CPython",
71 "Programming Language :: Python :: Implementation :: PyPy",
72 "Topic :: Security :: Cryptography",
73 ],
Donald Stufft5f12a1b2013-08-11 16:37:43 -040074
Donald Stufft9ebb8ff2013-08-11 17:05:03 -040075 packages=find_packages(exclude=["tests", "tests.*"]),
76
Donald Stufftbac187d2013-08-10 15:43:51 -040077 install_requires=install_requires,
Donald Stufft5f12a1b2013-08-11 16:37:43 -040078 setup_requires=setup_requires,
79
80 # for cffi
81 zip_safe=False,
Alex Gaynorc62e91f2013-08-06 19:25:52 -070082)