Skip to content

Add Python packaging (pyproject.toml) for pip-installable distribution #209

@vshawrh

Description

@vshawrh

Body:

The table-transformer repository is a research codebase that currently lacks standard Python packaging. There is no pyproject.toml or setup.py, which means the project cannot be installed via pip install directly from source.

Current state
The Python source code lives in src/ and detr/ at the repository root
Installation relies on conda env create -f environment.yml
There is no package namespace — scripts must be run directly from the src/ directory
A third-party PyPI package (table-transformer 1.0.6) was published from a now-unavailable fork, but the official Microsoft repository has no packaging
Proposed changes
Add a pyproject.toml with:

A proper package namespace (e.g., table_transformer/) containing the src/ and detr/ modules
init.py files to make directories importable
Build system configuration (setuptools or similar)
Dependency declarations (torch, torchvision, numpy, matplotlib, tqdm, Pillow)
Version management tied to git tags
This would allow:

pip install . from a local clone
Standard Python packaging workflows (sdist, wheel builds)
Downstream projects to declare table-transformer as a dependency
Publishing official releases to PyPI
Context
We are building table-transformer from source as part of a Python wheel building pipeline and currently have to restructure the source into an installable package layout at build time. Having proper packaging upstream would eliminate this workaround and benefit the broader community.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions