diff --git a/MANIFEST.in b/MANIFEST.in index 1b98a5d..15cefa8 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -12,3 +12,4 @@ include bagua-core-c/Cargo.toml include bagua-core-c/build.rs recursive-include bagua-core-c/src * recursive-include bagua_install_library * +recursive-include python * diff --git a/bagua-core-py/version.py b/bagua-core-py/version.py deleted file mode 100644 index 18e7bcd..0000000 --- a/bagua-core-py/version.py +++ /dev/null @@ -1 +0,0 @@ -__version__ = "0.1.1.dev1" \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index 8c3b2ad..3a3e443 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,8 @@ [build-system] -requires = ["setuptools", "wheel", "setuptools-rust", "colorama", "tqdm", "setuptools_scm[toml]>=6.0"] +requires = ["setuptools >= 43.0.0", "wheel", "setuptools-rust", "colorama", "tqdm", "setuptools_scm[toml]>=6.0"] +build-backend = 'setuptools.build_meta' [tool.setuptools_scm] local_scheme = "no-local-version" -write_to = "bagua-core-py/version.py" +write_to = "python/bagua_core/version.py" write_to_template = "__version__ = \"{version}\"" diff --git a/python/bagua_core/version.py b/python/bagua_core/version.py new file mode 100644 index 0000000..eb1b232 --- /dev/null +++ b/python/bagua_core/version.py @@ -0,0 +1 @@ +__version__ = "dev"