chore(python): change version file

we don't want the version file to be included in the package to not
clash with version files of other subpackages, as it should be part of
the bigger concrete namespace package
This commit is contained in:
youben11
2022-01-03 11:25:28 +01:00
committed by Ayoub Benaissa
parent 0bbacdbb17
commit 492ce3309a
5 changed files with 3 additions and 7 deletions

View File

@@ -161,7 +161,7 @@ release_tarballs:
docker container run --rm -v ${PWD}/../tarballs:/tarballs_volume concretefhe-compiler-manylinux:linux_x86_64_tarball cp -r /tarballs/. /tarballs_volume/.
update_python_version:
echo "__version__ = \"`git describe --tags --abbrev=0 | grep -e '[0-9].*' -o`\"" > lib/Bindings/Python/concrete/version.py
echo "__version__ = \"`git describe --tags --abbrev=0 | grep -e '[0-9].*' -o`\"" > lib/Bindings/Python/version.txt
.PHONY: build-initialized \
build-end-to-end-jit \

View File

@@ -27,7 +27,6 @@ declare_mlir_python_sources(ConcretelangBindingsPythonSources
ROOT_DIR "${CMAKE_CURRENT_SOURCE_DIR}"
SOURCES
concrete/compiler.py
concrete/version.py
concrete/__init__.py
concrete/lang/__init__.py
concrete/lang/dialects/__init__.py

View File

@@ -1,4 +0,0 @@
# Part of the Concrete Compiler Project, under the BSD3 License with Zama Exceptions.
# See https://github.com/zama-ai/homomorphizer/blob/master/LICENSE.txt for license information.
__version__ = "0.1.0-rc1"

View File

@@ -0,0 +1 @@
__version__ = "0.1.0-rc1"

View File

@@ -14,7 +14,7 @@ def read(fname):
def find_version():
return re.match(
r"__version__ = \"(?P<version>.+)\"",
read("lib/Bindings/Python/concrete/version.py"),
read("lib/Bindings/Python/version.txt"),
).group("version")