bump version
[sfpy.git] / setup.py
1 import setuptools
2
3 with open('README.md', 'rt') as f:
4 long_description = f.read()
5
6 posit_ext = setuptools.Extension(
7 'sfpy.posit', ['sfpy/posit.c'],
8 include_dirs=['SoftPosit/source/include/'],
9 extra_objects=['SoftPosit/build/Linux-x86_64-GCC/softposit.a'],
10 libraries=['m'],
11 )
12
13 float_ext = setuptools.Extension(
14 'sfpy.float', ['sfpy/float.c'],
15 include_dirs=['berkeley-softfloat-3/source/include/'],
16 extra_objects=['berkeley-softfloat-3/build/Linux-x86_64-GCC/softfloat.a'],
17 )
18
19 setuptools.setup(
20 name='sfpy',
21 version='0.4.0',
22 author='Bill Zorn',
23 author_email='bill.zorn@gmail.com',
24 url='https://github.com/billzorn/sfpy',
25 description='softfloat and softposit in python',
26 long_description=long_description,
27 long_description_content_type="text/markdown",
28 packages=['sfpy'],
29 ext_modules=[posit_ext, float_ext],
30 classifiers=[
31 'Development Status :: 4 - Beta',
32 'Operating System :: POSIX :: Linux',
33 'Programming Language :: Python :: 2.7',
34 'Programming Language :: Python :: 3.4',
35 'Programming Language :: Python :: 3.5',
36 'Programming Language :: Python :: 3.6',
37 'Programming Language :: Python :: 3.7',
38 'Programming Language :: Python :: Implementation :: CPython',
39 'License :: OSI Approved :: MIT License',
40 ]
41 )