1#!/usr/bin/env python 2 3from __future__ import print_function 4 5from setuptools import setup 6import sys 7 8import os 9# Don't use hardlinks while testing from vagrant guest fs 10# http://stackoverflow.com/questions/7719380/python-setup-py-sdist-error-operation-not-permitted 11if os.environ.get('USER','') == 'vagrant': 12 del os.link 13 14try: 15 with open("README.rst", "rb") as f: 16 readme = f.read().decode("utf-8") 17except: 18 readme = "" 19 print("Warning, unable to load README.rst into long_description.") 20 21setup( 22 name="hkdf", 23 version="0.0.3", 24 description="HMAC-based Extract-and-Expand Key Derivation Function (HKDF)", 25 author="Christopher H. Casebeer", 26 author_email="", 27 url="https://github.com/casebeer/python-hkdf", 28 29 py_modules=["hkdf"], 30 31 tests_require=["nose"], 32 test_suite="nose.collector", 33 34 long_description=readme, 35 classifiers=[ 36 "License :: OSI Approved :: BSD License", 37 "Intended Audience :: Developers", 38 "Programming Language :: Python :: 2.6", 39 "Programming Language :: Python :: 2.7", 40 "Programming Language :: Python :: 3.3", 41 "Programming Language :: Python :: 3.4", 42 ] 43) 44 45