This repository has been archived by the owner on Nov 15, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathsetup.py
executable file
·70 lines (63 loc) · 2.3 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
#! /usr/bin/env python
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
from sys import version_info
from distutils.extension import Extension
try:
from Cython.Build import cythonize
USE_CYTHON = True
except ImportError:
USE_CYTHON = False
install_requires = ['six>=1.10.0']
if version_info[:2] <= (2, 5):
install_requires.append('simplejson >= 2.0.9')
ext = '.pyx' if USE_CYTHON else '.c'
extensions = [Extension("spavro.fast_binary", sources=["src/spavro/fast_binary" + ext])]
if USE_CYTHON:
extensions = cythonize(extensions)
try:
with open("README.md", "r") as readmefile:
readme_data = readmefile.read()
except IOError:
readme_data = ''
setup(
name='spavro',
version='1.1.22',
packages=['spavro'],
package_dir={'': 'src'},
# scripts=["./scripts/avro"],
# Project uses simplejson, so ensure that it gets installed or upgraded
# on the target machine
install_requires=install_requires,
# spavro C extensions
ext_modules=extensions,
# metadata for upload to PyPI
long_description_content_type='text/markdown',
long_description=readme_data,
author='Michael Kowalchik',
author_email='[email protected]',
description='An Avro library, Spavro is a (sp)eedier avro implementation using Cython -- Spavro is a fork of the official Apache AVRO python 2 implementation with the goal of greatly improving data read deserialization and write serialization performance.',
license='Apache License 2.0',
keywords='avro serialization rpc data',
url='http://github.com/pluralsight/spavro',
extras_require={
'snappy': ['python-snappy'],
'test': ['pytest>=3.1.1'],
},
classifiers=[
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3.3",
"Programming Language :: Python :: 3.4",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Topic :: Software Development :: Libraries",
"Topic :: System :: Networking",
"Operating System :: OS Independent",
]
)