Skip to content
This repository has been archived by the owner on Sep 15, 2021. It is now read-only.

Commit

Permalink
feat: add version.py placeholder to prevent file not found error
Browse files Browse the repository at this point in the history
  • Loading branch information
NOBLES5E committed Jun 17, 2021
1 parent dd32496 commit c35f979
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -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 *
1 change: 0 additions & 1 deletion bagua-core-py/version.py

This file was deleted.

5 changes: 3 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -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}\""
1 change: 1 addition & 0 deletions python/bagua_core/version.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
__version__ = "dev"

0 comments on commit c35f979

Please sign in to comment.