Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: Make the project importable as a module #9

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

skoenig
Copy link

@skoenig skoenig commented Dec 11, 2023

This PR introduces changes to make the project importable as a Python module and introduces more modern packaging standards.

  • Moved all project files into the git_metrics subfolder to create a proper Python module structure.
  • Updated the import statements in various modules to use explicit relative imports.
  • Introduced pyproject.toml file for PEP 517/518 standards, and added setup.py to ensure compatibility with both traditional and modern packaging tools.
  • Added entry points in setup.py for command-line scripts, making calculate_four_metrics.py and git_metrics.py accessible.

This PR introduces changes to make the project importable as a Python module and introduces more modern packaging standards.

- Moved all project files into the `git_metrics` subfolder to create a proper Python module structure.
- Updated the import statements in various modules to use explicit relative imports.
- Introduced `pyproject.toml` file for PEP 517/518 standards, and added `setup.py` to ensure compatibility with both traditional and modern packaging tools.
- Added entry points in `setup.py` for command-line scripts, making `calculate_four_metrics.py` and `git_metrics.py` accessible.
@skoenig
Copy link
Author

skoenig commented Dec 11, 2023

Background is: with these changes git-metrics can be used to instrument CI/CD pipelines to fetch the four DevOps metrics for reporting, enhancing the project's versatility.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant