mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-07-17 01:01:03 +02:00
Remove need to manage setup.py version
This commit is contained in:
parent
cdace22ee4
commit
8c6fcdd598
3 changed files with 24 additions and 4 deletions
8
Makefile
8
Makefile
|
|
@ -1,6 +1,6 @@
|
||||||
|
|
||||||
# VERSION=$(shell git describe | sed 's/^v//')
|
# VERSION=$(shell git describe | sed 's/^v//')
|
||||||
VERSION=0.11.7
|
VERSION=0.11.8
|
||||||
|
|
||||||
DOCKER=podman
|
DOCKER=podman
|
||||||
|
|
||||||
|
|
@ -12,7 +12,11 @@ pkgs:
|
||||||
|
|
||||||
CONTAINER=docker.io/trustgraph/trustgraph-flow
|
CONTAINER=docker.io/trustgraph/trustgraph-flow
|
||||||
|
|
||||||
container:
|
update-package-versions:
|
||||||
|
echo __version__ = \"${VERSION}\" > trustgraph-core/trustgraph/core_version.py
|
||||||
|
echo __version__ = \"${VERSION}\" > trustgraph-embeddings-hf/trustgraph/embeddings_hf_version.py
|
||||||
|
|
||||||
|
container: update-package-versions
|
||||||
${DOCKER} build -f Containerfile -t ${CONTAINER}:${VERSION} \
|
${DOCKER} build -f Containerfile -t ${CONTAINER}:${VERSION} \
|
||||||
--format docker
|
--format docker
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,18 @@
|
||||||
import setuptools
|
import setuptools
|
||||||
import os
|
import os
|
||||||
|
import importlib
|
||||||
|
|
||||||
with open("README.md", "r") as fh:
|
with open("README.md", "r") as fh:
|
||||||
long_description = fh.read()
|
long_description = fh.read()
|
||||||
|
|
||||||
version = "0.11.7"
|
# Load a version number module
|
||||||
|
spec = importlib.util.spec_from_file_location(
|
||||||
|
'version', 'trustgraph/core_version.py'
|
||||||
|
)
|
||||||
|
version_module = importlib.util.module_from_spec(spec)
|
||||||
|
spec.loader.exec_module(version_module)
|
||||||
|
|
||||||
|
version = version_module.__version__
|
||||||
|
|
||||||
setuptools.setup(
|
setuptools.setup(
|
||||||
name="trustgraph-core",
|
name="trustgraph-core",
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,18 @@
|
||||||
import setuptools
|
import setuptools
|
||||||
import os
|
import os
|
||||||
|
import importlib
|
||||||
|
|
||||||
with open("README.md", "r") as fh:
|
with open("README.md", "r") as fh:
|
||||||
long_description = fh.read()
|
long_description = fh.read()
|
||||||
|
|
||||||
version = "0.11.6"
|
# Load a version number module
|
||||||
|
spec = importlib.util.spec_from_file_location(
|
||||||
|
'version', 'trustgraph/embeddings_hf_version.py'
|
||||||
|
)
|
||||||
|
version_module = importlib.util.module_from_spec(spec)
|
||||||
|
spec.loader.exec_module(version_module)
|
||||||
|
|
||||||
|
version = version_module.__version__
|
||||||
|
|
||||||
setuptools.setup(
|
setuptools.setup(
|
||||||
name="trustgraph-embeddings-hf",
|
name="trustgraph-embeddings-hf",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue