Skip to content

Commit a1b2161

Browse files
committed
Fix setup file, v0.1.2.
1 parent 487cb2e commit a1b2161

File tree

4 files changed

+20
-5
lines changed

4 files changed

+20
-5
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,5 @@
66
*.pkl
77
dist
88
MANIFEST
9+
README.rst
10+
deploy.sh

README.md

+10-2
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,14 @@ Working with tensorflow is awesome. Installing tensorflow on old OS's like SL6 i
99

1010
tfdeploy solves this problem while only requiring numpy. It is a single file with less then 150 lines of core code, so you can easily copy it into your project. In addition, tfdeploy is [*way faster*](#performance) than using tensorflow's ``Tensor.eval``.
1111

12+
Install it via
13+
14+
```bash
15+
pip install tfdeploy
16+
```
17+
18+
or by simply copying the file into your project.
19+
1220

1321
## How?
1422

@@ -122,5 +130,5 @@ Out[3]: 0.2995444191343964
122130

123131
## Authors
124132

125-
Marcel R. ([riga](https://github.com/riga))
126-
Benjamin F. ([riga](https://github.com/bfis))
133+
- Marcel R. ([riga](https://github.com/riga))
134+
- Benjamin F. ([riga](https://github.com/bfis))

setup.py

+7-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,17 @@
11
# -*- coding: utf-8 -*-
22

33

4+
import os
45
from distutils.core import setup
56
import tfdeploy as td
67

78

8-
with open("README.md") as f:
9-
long_description = f.read()
9+
readme = "README.rst"
10+
if os.path.isfile(readme):
11+
with open(readme) as f:
12+
long_description = f.read()
13+
else:
14+
long_description = ""
1015

1116
keywords = [
1217
"tensorflow", "export", "dump", "numpy", "model", "predict", "evaluate"

tfdeploy.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
__credits__ = ["Marcel Rieger", "Benjamin Fischer"]
1212
__license__ = "MIT"
1313
__status__ = "Development"
14-
__version__ = "0.1.0"
14+
__version__ = "0.1.2"
1515

1616
__all__ = ["Model", "ModelException", "Operation", "OperationException"]
1717

0 commit comments

Comments
 (0)