Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix DeprecationWarning from pkg_tools #28

Merged
merged 1 commit into from
Aug 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion bittensor_cli/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@

__version__ = "0.1.0"

__all__ = ["CLIManager", "__version__"]
__all__ = ["CLIManager", "__version__"]
6 changes: 5 additions & 1 deletion bittensor_cli/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -3755,6 +3755,10 @@ def run(self):
self.app()


if __name__ == "__main__":
def main():
manager = CLIManager()
manager.run()


if __name__ == "__main__":
main()
10 changes: 8 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,15 +66,21 @@ def read_requirements(path):
author="bittensor.com",
packages=find_packages(exclude=["tests", "tests.*", "*/tests/*", "*/tests"]),
include_package_data=True,
package_data={'': ['templates/*'], },
package_data={
"": ["templates/*"],
},
author_email="",
license="MIT",
python_requires=">=3.9",
install_requires=requirements,
extras_require={
"cuda": cuda_requirements,
},
scripts=["bin/btcli"],
entry_points={
"console_scripts": [
"btcli=bittensor_cli.cli:main",
],
},
classifiers=[
"Development Status :: 1 - Alpha",
"Intended Audience :: Developers",
Expand Down
Loading