You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
❯ pipx install gita --force
--python is ignored when --force is passed. If you want to reinstall gita with /usr/bin/python, run `pipx reinstall gita --python /usr/bin/python` instead.
Installing to existing venv 'gita'
installed package gita 0.16.6.6, installed using Python 3.12.3
These apps are now globally available
- gita
done! ✨ 🌟 ✨
❯ gita
Traceback (most recent call last):
File "/home/rztab/.local/bin/gita", line 5, in<module>
from gita.__main__ import main
File "/home/rztab/.local/pipx/venvs/gita/lib/python3.12/site-packages/gita/__init__.py", line 1, in<module>
import pkg_resources
ModuleNotFoundError: No module named 'pkg_resources'
The text was updated successfully, but these errors were encountered:
from importlib.metadata import PackageMetadata
def get_version() -> str:
# Read the package metadata
metadata = PackageMetadata("your_package_name") # Replace with your package name
return metadata.version
# ... rest of your setup script code ...
# Example usage
version = get_version()
print(f"Package version: {version}")
The text was updated successfully, but these errors were encountered: