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