Our great sponsors
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
[project] name = "shortscale" description = "English conversion from number to string" authors = [{name = "Jürgen Leschner", email = "[email protected]"}] readme = "README.md" license = {file = "LICENSE"} classifiers = ["License :: OSI Approved :: MIT License"] dynamic = ["version"] [project.urls] Home = "https://github.com/jldec/shortscale-py" [project.scripts] shortscale = "shortscale:main" [build-system] requires = ["setuptools>=61.0"] build-backend = "setuptools.build_meta" [tool.setuptools.dynamic] version = {attr = "shortscale.__version__"}
Some readers may recognize shortscale from earlier explorations in JavaScript, Rust, and Go.
Some readers may recognize shortscale from earlier explorations in JavaScript, Rust, and Go.
Next, I built and published this incomplete v0.1 shortscale module.
$ python -m twine upload dist/* Uploading distributions to https://upload.pypi.org/legacy/ Uploading shortscale-0.1.0-py3-none-any.whl Uploading shortscale-0.1.0.tar.gz ... View at: https://pypi.org/project/shortscale/0.1.0/
# 1. Install pyenv # from https://github.com/pyenv/pyenv#set-up-your-shell-environment-for-pyenv git clone https://github.com/pyenv/pyenv.git $HOME/.pyenv export PYENV_ROOT="$HOME/.pyenv" export PATH="$PYENV_ROOT/bin:$PATH" eval "$(pyenv init --path)" # 2. Fix dependencies for macOS # from https://github.com/pyenv/pyenv/wiki#suggested-build-environment brew install openssl readline sqlite3 xz zlib tcl-tk # 3. After the brew install, fix LDFLAGS, CPPFLAGS and add tcl-tk/bin onto PATH export LDFLAGS="$LDFLAGS -L$HOME/homebrew/opt/openssl@3/lib -L$HOME/homebrew/opt/readline/lib -L$HOME/homebrew/opt/sqlite/lib -L$HOME/homebrew/opt/zlib/lib -L$HOME/homebrew/opt/tcl-tk/lib -L$HOME/homebrew/opt/openssl@3/lib -L$HOME/homebrew/opt/readline/lib -L$HOME/homebrew/opt/sqlite/lib -L$HOME/homebrew/opt/zlib/lib -L$HOME/homebrew/opt/tcl-tk/lib" export CPPFLAGS="$CPPFLAGS -I$HOME/homebrew/opt/openssl@3/include -I$HOME/homebrew/opt/readline/include -I$HOME/homebrew/opt/sqlite/include -I$HOME/homebrew/opt/zlib/include -I$HOME/homebrew/opt/tcl-tk/include -I$HOME/homebrew/opt/openssl@3/include -I$HOME/homebrew/opt/readline/include -I$HOME/homebrew/opt/sqlite/include -I$HOME/homebrew/opt/zlib/include -I$HOME/homebrew/opt/tcl-tk/include" export PATH=$HOME/homebrew/opt/tcl-tk/bin:$PATH # 4. Use pyenv to build and install python v3.10 and make it the global default pyenv install 3.10 pyenv global 3.10 # Point to the installed version in .bash_profile (instead of depending on the pyenv shim) export PATH=$HOME/.pyenv/versions/3.10.9/bin:$PATH
Related posts
- Python Project Setup – Virtual Environments and Package Management
- Install Asdf: One Runtime Manager to Rule All Dev Environments
- Setup and Use Pyenv in Python Applications
- Integrating GPT in Your Project: Create an API for Anything Using LangChain and FastAPI
- Manage your Python Project End-to-End with PDM