Skip to content

Commit

Permalink
Release 0.7.0 (tf-encrypted#856)
Browse files Browse the repository at this point in the history
* release candidate: 0.7.0

* add version discovery

* release 0.7.0

* Fix formatting issues

Co-authored-by: zhicong.hzc <zhicong.hzc@alibaba-inc.com>
  • Loading branch information
zicofish and zhicong.hzc committed Mar 7, 2022
1 parent ba70fd8 commit 172f5e5
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 5 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,18 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]


## [0.7.0]
**Fixed**

- Fix a buggy CI workflow that fails to use cache in 'deploy' step (because of a different image from 'build step')
- Remove skipping conditions in aby3 test

**Added**
- ABY3 available on pypi


## [0.5.9]

**Added**
Expand Down
4 changes: 2 additions & 2 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@
author = 'The TF Encrypted Authors'

# The short X.Y version
version = '0.5.9'
version = '0.7.0'
# The full version, including alpha/beta/rc tags
release = '0.5.9'
release = '0.7.0'


# -- General configuration ---------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion meta.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package:
name: tf-encrypted
version: "0.5.9"
version: "0.7.0"

source:
git_url: https://github.com/tf-encrypted/tf-encrypted.git
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

setuptools.setup(
name="tf-encrypted",
version="0.5.9",
version="0.7.0",
packages=setuptools.find_packages(),
package_data={'tf_encrypted': [
'operations/secure_random/*.so',
Expand Down
16 changes: 16 additions & 0 deletions tf_encrypted/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,13 @@
from __future__ import absolute_import

import inspect
import os.path
from typing import Any
from typing import Optional

import tensorflow as tf
from pkg_resources import DistributionNotFound
from pkg_resources import get_distribution

from . import convert
from . import keras
Expand All @@ -25,6 +28,19 @@
from .session import set_tfe_events_flag
from .session import set_tfe_trace_flag

try:
_dist = get_distribution("tf_encrypted")
# Normalize case for Windows systems
dist_loc = os.path.normcase(_dist.location)
here = os.path.normcase(__file__)
if not here.startswith(os.path.join(dist_loc, "tf_encrypted")):
# not installed, but there is another version that *is*
raise DistributionNotFound
except DistributionNotFound:
__version__ = "Please install this project with setup.py"
else:
__version__ = _dist.version

__protocol__ = None
__all_prot_funcs__ = protocol.get_all_funcs()

Expand Down
1 change: 0 additions & 1 deletion tf_encrypted/protocol/aby3/aby3_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@


class TestABY3(unittest.TestCase):

def test_add_private_private(self):
tf.reset_default_graph()

Expand Down

0 comments on commit 172f5e5

Please sign in to comment.