Skip to content

MDT installable package #38

@yevgenybulochnik

Description

@yevgenybulochnik

Proposal

We should reorganize the repo into an installable python package with the potential to publish to PyPi. I would suggest reorganizing as per pypi recommendations. An example branch yevgeny/restructure was created off an earlier version of the project with this setup.

packaging_tutorial/
├── LICENSE
├── pyproject.toml
├── README.md
├── setup.cfg
├── setup.py  # optional, needed to make editable pip installs work
├── src/
│   └── example_pkg/
│       └── __init__.py
└── tests/

Rationale

  1. Currently the only way to consume this repo is by changing hard coded values in rx_api.py and then running this module. In a package structure, we could import functions in more unique ways and allow developers to consume the codebase in a different manner.
  2. Package structure will allow us to more easily create an installable cmd line tool for inputs if we want.
  3. Those using jupyter notebooks can more easily import parts of the codebase to explore functions, and contribute.
  4. This directory structure allows a way to test against a currently installed python module.
  5. The package itself can be installed in editable mode to help with development

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions