Suggest new trove classifiers for modern Python packages.
Project description
troml
troml investigates a modern Python package, i.e. a package with a pyproject.toml file, and provides a list of potential classifiers that could be added.
Usage
- Go to a directory with source code for a modern Python package
uvx troml
Specify a path
troml also accepts a path as the first argument.
uvx troml /path/to/pypyproject.toml
Supported classifiers
Python version
troml will read project.python-requires and suggest classifiers based on it.
Legacy license
troml will suggest removing the legacy license classifiers.
Dependencies
troml will suggest classifiers based on the dependencies in project.dependencies, project.dependency-groups, and tool.uv.constraint-dependencies.
Typing
troml will suggest the "Typing :: Typed" classifier based on the existence of the py.typed file in the same directory as the pyproject.toml file.
What's with the name?
- The classifiers for Python are called "trove classifiers"
- Modern Python packages use TOML
Hence: "trove" + "TOML".
Yes, I agree, the name is a little weird.
Development
Run from source
uv run troml [PATH-TO-PYPROJECT-TOML]
Tests
just test
Inspiration
- https://indieweb.social/@adamghill/115174743670090084
- another approach from @kfdm: https://codeberg.org/kfdm/add-classifiers
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file troml-0.1.1.tar.gz.
File metadata
- Download URL: troml-0.1.1.tar.gz
- Upload date:
- Size: 11.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1a74cd90f464cb14a0d0d8e1a40c909febe525ad245d950b7d3bd82022439970
|
|
| MD5 |
582c105a7d33191ecd828f51b8cf2f93
|
|
| BLAKE2b-256 |
44a7153f673d4153784f6911c9159759bd7162e42dda98cd5cf64d33e8c1381a
|
File details
Details for the file troml-0.1.1-py3-none-any.whl.
File metadata
- Download URL: troml-0.1.1-py3-none-any.whl
- Upload date:
- Size: 12.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9965529c2901f2a4f5e1c53dfd71d1d90030b5c9a4873390ce0f92dc68b587c7
|
|
| MD5 |
2244525698cabc360aedc626a5aadd6b
|
|
| BLAKE2b-256 |
786b97d5eb0ca4f132520350c2d0b58e406db16292c420cc13d55f3e7189b958
|