blob: 1044c97926cfb892dc928600329b45c241c21a89 [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.
Donald Stufftbac187d2013-08-10 15:43:51 -040013import sys
Alex Gaynorbfc06bc2013-08-06 19:36:19 -070014
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
Donald Stufft5f12a1b2013-08-11 16:37:43 -040018about = {}
19with open("cryptography/__about__.py") as fp:
20 exec(fp.read(), about)
21
22
23CFFI_DEPENDENCY = "cffi>=0.6"
24
25install_requires = [
26 CFFI_DEPENDENCY,
27]
28
29setup_requires = [
30 CFFI_DEPENDENCY,
31]
Alex Gaynorc62e91f2013-08-06 19:25:52 -070032
Donald Stufftbac187d2013-08-10 15:43:51 -040033if sys.version_info[:2] < (3, 4):
34 install_requires += ["enum34"]
Alex Gaynorc62e91f2013-08-06 19:25:52 -070035
36setup(
Donald Stufft5f12a1b2013-08-11 16:37:43 -040037 name=about["__title__"],
38 version=about["__version__"],
39
40 description=about["__summary__"],
41 license=about["__license__"],
42 url=about["__uri__"],
43
44 author=about["__author__"],
45 author_email=about["__email__"],
46
Christian Heimesf83ed1d2013-08-10 23:28:29 +020047 classifiers=[
48 "Development Status :: 2 - Pre-Alpha",
49 "Intended Audience :: Developers",
50 "License :: OSI Approved :: Apache Software License",
51 "Natural Language :: English",
52 "Operating System :: MacOS :: MacOS X",
53 "Operating System :: POSIX",
54 "Operating System :: POSIX :: BSD",
55 "Operating System :: POSIX :: Linux",
56 "Operating System :: Microsoft :: Windows",
Christian Heimesf83ed1d2013-08-10 23:28:29 +020057 "Programming Language :: Python",
58 "Programming Language :: Python :: 2",
59 "Programming Language :: Python :: 2.6",
60 "Programming Language :: Python :: 2.7",
61 "Programming Language :: Python :: 3",
62 "Programming Language :: Python :: 3.2",
63 "Programming Language :: Python :: 3.3",
64 "Programming Language :: Python :: Implementation :: CPython",
65 "Programming Language :: Python :: Implementation :: PyPy",
66 "Topic :: Security :: Cryptography",
67 ],
Donald Stufft5f12a1b2013-08-11 16:37:43 -040068
Donald Stufft9ebb8ff2013-08-11 17:05:03 -040069 packages=find_packages(exclude=["tests", "tests.*"]),
70
Donald Stufftbac187d2013-08-10 15:43:51 -040071 install_requires=install_requires,
Donald Stufft5f12a1b2013-08-11 16:37:43 -040072 setup_requires=setup_requires,
73
74 # for cffi
75 zip_safe=False,
Alex Gaynorc62e91f2013-08-06 19:25:52 -070076)