From a67d30a6c9367635e5c9fa472e0b42d38a266d5d Mon Sep 17 00:00:00 2001 From: Matthew Chang Date: Mon, 8 Apr 2024 12:49:00 -0700 Subject: [PATCH] Fix versioni to be PEP 440 compliant * Updates version * More documentation on how to build --- README.md | 7 +++++++ setup.py | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 9a11cfb29e..14a1d7d332 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,13 @@ A modified version of min-tf-client where it is in its own isolated namespace, allowing for use alongside a Tensorflow install. Introduces a new setup comand: `python setup.py restructure`, which mangles the imports and moves the tensorflow and tensorflow_serving protobufs inside the min_tfs_client namespace. +Tarball created in virtual env using `build` package +```bash +pip install -U build +python -m build --wheel +``` +NOTE: Need to make sure to install all dependencies like `protoc` and `tensorflow-serving-client` since these are needed in the build process. Setup.py doesn't actually set up everything correctly, so we need to specifically run the `build --wheel` so that it inherits the working env instead of trying to create a new one. + # Minimal Tensor Serving Python Client A lightweight python client to communicate with Tensor Serving. diff --git a/setup.py b/setup.py index 67620842f8..ef8b0990f4 100644 --- a/setup.py +++ b/setup.py @@ -119,7 +119,7 @@ def run(self): setup( name="min_tfs_client", - version="1.0.2-abacus", + version="1.0.2.post1", description="A minified Tensor Serving Client for Python", long_description=long_description, long_description_content_type="text/markdown",