Alex Gaynor | bfc06bc | 2013-08-06 19:36:19 -0700 | [diff] [blame] | 1 | # 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 Stufft | 9ebb8ff | 2013-08-11 17:05:03 -0400 | [diff] [blame] | 13 | from setuptools import setup, find_packages |
Alex Gaynor | c62e91f | 2013-08-06 19:25:52 -0700 | [diff] [blame] | 14 | |
Donald Stufft | 446a457 | 2013-08-11 17:38:13 -0400 | [diff] [blame] | 15 | |
Donald Stufft | 5f12a1b | 2013-08-11 16:37:43 -0400 | [diff] [blame] | 16 | about = {} |
| 17 | with open("cryptography/__about__.py") as fp: |
| 18 | exec(fp.read(), about) |
| 19 | |
| 20 | |
| 21 | CFFI_DEPENDENCY = "cffi>=0.6" |
Paul Kehrer | c024255 | 2013-09-10 18:54:13 -0500 | [diff] [blame] | 22 | SIX_DEPENDENCY = "six>=1.4.1" |
Donald Stufft | 5f12a1b | 2013-08-11 16:37:43 -0400 | [diff] [blame] | 23 | |
| 24 | install_requires = [ |
| 25 | CFFI_DEPENDENCY, |
Paul Kehrer | c024255 | 2013-09-10 18:54:13 -0500 | [diff] [blame] | 26 | SIX_DEPENDENCY |
Donald Stufft | 5f12a1b | 2013-08-11 16:37:43 -0400 | [diff] [blame] | 27 | ] |
| 28 | |
| 29 | setup_requires = [ |
| 30 | CFFI_DEPENDENCY, |
| 31 | ] |
Alex Gaynor | c62e91f | 2013-08-06 19:25:52 -0700 | [diff] [blame] | 32 | |
Alex Gaynor | c62e91f | 2013-08-06 19:25:52 -0700 | [diff] [blame] | 33 | setup( |
Donald Stufft | 5f12a1b | 2013-08-11 16:37:43 -0400 | [diff] [blame] | 34 | name=about["__title__"], |
| 35 | version=about["__version__"], |
| 36 | |
| 37 | description=about["__summary__"], |
| 38 | license=about["__license__"], |
| 39 | url=about["__uri__"], |
| 40 | |
| 41 | author=about["__author__"], |
| 42 | author_email=about["__email__"], |
| 43 | |
Christian Heimes | f83ed1d | 2013-08-10 23:28:29 +0200 | [diff] [blame] | 44 | classifiers=[ |
| 45 | "Development Status :: 2 - Pre-Alpha", |
| 46 | "Intended Audience :: Developers", |
| 47 | "License :: OSI Approved :: Apache Software License", |
| 48 | "Natural Language :: English", |
| 49 | "Operating System :: MacOS :: MacOS X", |
| 50 | "Operating System :: POSIX", |
| 51 | "Operating System :: POSIX :: BSD", |
| 52 | "Operating System :: POSIX :: Linux", |
| 53 | "Operating System :: Microsoft :: Windows", |
Christian Heimes | f83ed1d | 2013-08-10 23:28:29 +0200 | [diff] [blame] | 54 | "Programming Language :: Python", |
| 55 | "Programming Language :: Python :: 2", |
| 56 | "Programming Language :: Python :: 2.6", |
| 57 | "Programming Language :: Python :: 2.7", |
| 58 | "Programming Language :: Python :: 3", |
| 59 | "Programming Language :: Python :: 3.2", |
| 60 | "Programming Language :: Python :: 3.3", |
| 61 | "Programming Language :: Python :: Implementation :: CPython", |
| 62 | "Programming Language :: Python :: Implementation :: PyPy", |
| 63 | "Topic :: Security :: Cryptography", |
| 64 | ], |
Donald Stufft | 5f12a1b | 2013-08-11 16:37:43 -0400 | [diff] [blame] | 65 | |
Donald Stufft | 9ebb8ff | 2013-08-11 17:05:03 -0400 | [diff] [blame] | 66 | packages=find_packages(exclude=["tests", "tests.*"]), |
| 67 | |
Donald Stufft | bac187d | 2013-08-10 15:43:51 -0400 | [diff] [blame] | 68 | install_requires=install_requires, |
Donald Stufft | 5f12a1b | 2013-08-11 16:37:43 -0400 | [diff] [blame] | 69 | setup_requires=setup_requires, |
| 70 | |
| 71 | # for cffi |
| 72 | zip_safe=False, |
Alex Gaynor | c62e91f | 2013-08-06 19:25:52 -0700 | [diff] [blame] | 73 | ) |