-
Notifications
You must be signed in to change notification settings - Fork 21
/
setup.py
47 lines (37 loc) · 1.54 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
from setuptools import setup
from os import path
project_folder = path.abspath(path.dirname(__file__))
# Get the long description from the README file
with open(path.join(project_folder, 'README.md'), 'r') as f:
long_description = f.read()
def _get_version():
with open(path.join(project_folder, 'fxpmath', '__init__.py')) as f:
for line in f.readlines():
if line.startswith('__version__'):
return line.split("'")[1]
_version = _get_version()
setup(
name='fxpmath',
version=_version,
author='francof2a',
author_email='[email protected]',
packages=['fxpmath'],
description='A python library for fractional fixed-point (base 2) arithmetic and binary manipulation with Numpy compatibility.',
url='https://github.com/francof2a/fxpmath',
download_url = 'https://github.com/francof2a/fxpmath/archive/{}.tar.gz'.format(_version),
license='MIT',
keywords=['fixed point', 'fractional', 'math', 'python', 'fxpmath', 'fxp', 'arithmetic', 'FPGA', 'DSP'],
install_requires=['numpy'],
long_description = long_description,
long_description_content_type="text/markdown",
classifiers=[
'Development Status :: 4 - Beta',
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering",
"Topic :: Scientific/Engineering :: Mathematics",
"Topic :: Scientific/Engineering :: Physics",
]
)