toruseo / UXsim

Vehicular traffic flow simulator in road network, written in pure Python
https://toruseo.jp/UXsim/docs/
MIT License
132 stars 60 forks source link

Adopt dynamic versioning and pyproject.toml for package setup #19

Closed EwoutH closed 8 months ago

EwoutH commented 8 months ago

This commit transitions the package setup process from a traditional setup.py-based approach to a modern pyproject.toml configuration. It introduces dynamic versioning to automatically determine the package version from uxsim/__init__.py, eliminating the need for direct imports in the setup phase. This change resolves the import issue encountered during installation and aligns with best practices for Python packaging.

This also fixes local installations failing and adds instruction to the Readme how to install from a git branch.

toruseo commented 8 months ago

Thanks for this, but sorry, I am not familiar with modern packaging practice. Please give me some time to update my knowledge. After that I will do it by my own.

EwoutH commented 8 months ago

Okay, that sounds smart!

This is a good read: https://packaging.python.org/en/latest/guides/writing-pyproject-toml/