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

Commit

Permalink
fix: remove __init__.py and python __version__, use cargo version
Browse files Browse the repository at this point in the history
  • Loading branch information
NOBLES5E committed Jun 10, 2021
1 parent 62c7012 commit 7122698
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 16 deletions.
4 changes: 0 additions & 4 deletions bagua-core-py/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +0,0 @@
# type: ignore

from .bagua_comm_core import *
from .version import __version__
7 changes: 0 additions & 7 deletions bagua-core-py/__init__.pyi

This file was deleted.

2 changes: 0 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,3 @@ requires = ["setuptools", "wheel", "setuptools-rust", "colorama", "tqdm", "setup

[tool.setuptools_scm]
local_scheme = "no-local-version"
write_to = "bagua-core-py/version.py"
write_to_template = "__version__ = \"{version}\""
4 changes: 1 addition & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,7 @@ def install_dependency_library():

setup(
name="bagua-core",
use_scm_version={"local_scheme": "no-local-version",
'write_to': 'bagua-core-py/version.py',
'write_to_template': '__version__ = "{version}"'},
use_scm_version={"local_scheme": "no-local-version"},
setup_requires=["setuptools_scm"],
url="https://github.com/BaguaSys/bagua-core",
python_requires=">=3.6",
Expand Down

0 comments on commit 7122698

Please sign in to comment.