blob: e2df1c464b2a7c7280e0ae1d98519f5412fee199 [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
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"
Paul Kehrerc0242552013-09-10 18:54:13 -050024SIX_DEPENDENCY = "six>=1.4.1"
Donald Stufft5f12a1b2013-08-11 16:37:43 -040025
26install_requires = [
27 CFFI_DEPENDENCY,
Paul Kehrerc0242552013-09-10 18:54:13 -050028 SIX_DEPENDENCY
Donald Stufft5f12a1b2013-08-11 16:37:43 -040029]
30
31setup_requires = [
32 CFFI_DEPENDENCY,
33]
Alex Gaynorc62e91f2013-08-06 19:25:52 -070034
Alex Gaynorf51f2c12014-01-03 07:33:01 -080035with open(os.path.join(os.path.dirname(__file__), "README.rst")) as f:
36 long_description = f.read()
37
38
Alex Gaynorc62e91f2013-08-06 19:25:52 -070039setup(
Donald Stufft5f12a1b2013-08-11 16:37:43 -040040 name=about["__title__"],
41 version=about["__version__"],
42
43 description=about["__summary__"],
Alex Gaynorf51f2c12014-01-03 07:33:01 -080044 long_description=long_description,
Donald Stufft5f12a1b2013-08-11 16:37:43 -040045 license=about["__license__"],
46 url=about["__uri__"],
47
48 author=about["__author__"],
49 author_email=about["__email__"],
50
Christian Heimesf83ed1d2013-08-10 23:28:29 +020051 classifiers=[
52 "Development Status :: 2 - Pre-Alpha",
53 "Intended Audience :: Developers",
54 "License :: OSI Approved :: Apache Software License",
55 "Natural Language :: English",
56 "Operating System :: MacOS :: MacOS X",
57 "Operating System :: POSIX",
58 "Operating System :: POSIX :: BSD",
59 "Operating System :: POSIX :: Linux",
60 "Operating System :: Microsoft :: Windows",
Christian Heimesf83ed1d2013-08-10 23:28:29 +020061 "Programming Language :: Python",
62 "Programming Language :: Python :: 2",
63 "Programming Language :: Python :: 2.6",
64 "Programming Language :: Python :: 2.7",
65 "Programming Language :: Python :: 3",
66 "Programming Language :: Python :: 3.2",
67 "Programming Language :: Python :: 3.3",
68 "Programming Language :: Python :: Implementation :: CPython",
69 "Programming Language :: Python :: Implementation :: PyPy",
70 "Topic :: Security :: Cryptography",
71 ],
Donald Stufft5f12a1b2013-08-11 16:37:43 -040072
Donald Stufft9ebb8ff2013-08-11 17:05:03 -040073 packages=find_packages(exclude=["tests", "tests.*"]),
74
Donald Stufftbac187d2013-08-10 15:43:51 -040075 install_requires=install_requires,
Donald Stufft5f12a1b2013-08-11 16:37:43 -040076 setup_requires=setup_requires,
77
78 # for cffi
79 zip_safe=False,
Alex Gaynorc62e91f2013-08-06 19:25:52 -070080)