This repository has been archived by the owner on Dec 7, 2018. It is now read-only.
forked from PhilJd/tf-quaternion
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
65 lines (50 loc) · 2.03 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
# Author: Philipp Jund ([email protected])
from setuptools import setup, find_packages
import os
dirname = os.path.dirname(os.path.realpath(__file__))
with open(os.path.join(dirname, 'README.md')) as f:
long_description = f.read()
# To update pip package run:
# python setup.py sdist && python setup.py bdist_wheel && twine upload dist/*
# check if tensorflow is installed. If it's not, add it to dependencies. This
# is to prevent replacement of existing tf versions (e.g. tf-nightly)
requirements = []
try:
import tensorflow
except ImportError:
# unfortunately pip suppresses this warning by default
print("WARNING: Installing CPU-only version of tensorflow. If you have a"
"GPU and CUDA available consider installing tensorflow-gpu.")
requirements += ['tensorflow']
setup(
name='tfquaternion',
version='0.1.5',
description="A differentiable quaternion implementation in tensorflow.",
long_description=long_description,
url='https://github.com/PhilJd/tf-quaternion',
author='Philipp Jund',
author_email='[email protected]',
keywords='quaternion tensorflow differentiable',
packages=find_packages(),
install_requires=['numpy'] + requirements,
license='Apache 2.0',
classifiers=[
# Change later on:
# 3 - Alpha
# 4 - Beta
# 5 - Production/Stable
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'Topic :: Scientific/Engineering',
'License :: OSI Approved :: Apache Software License',
# Specify the Python versions you support here. In particular, ensure
# that you indicate whether you support Python 2, Python 3 or both.
# Todo(phil): update this
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
],
)