Skip to content

Modernize Python packaging to use pyproject.toml#97

Merged
Subterrane merged 1 commit intomasterfrom
refactor_setup
May 9, 2025
Merged

Modernize Python packaging to use pyproject.toml#97
Subterrane merged 1 commit intomasterfrom
refactor_setup

Conversation

@Subterrane
Copy link
Copy Markdown
Contributor

Summary

  • Modernize Python packaging by using only pyproject.toml
  • Remove redundant packaging files (setup.py, setup.cfg, requirements.txt)
  • Consolidate all package configurations into pyproject.toml
  • Update GitHub Actions workflows for the new setup
  • Remove unnecessary CI configuration files (.travis.yml, .gitlab-ci.yml)
  • Update installation instructions in README.md
  • Bump version to 3.1.6

Test plan

  • Verified package builds correctly with new configuration
  • Successfully installed package with pip
  • Tests run successfully
  • GitHub Actions CI workflow updated to use the new configuration

- Remove setup.py, setup.cfg, requirements.txt and test-requirements.txt
- Consolidate all package configuration in pyproject.toml
- Update GitHub Actions workflows to use new configuration
- Remove unnecessary CI files (.travis.yml, .gitlab-ci.yml, git_push.sh)
- Update installation instructions in README.md
- Bump version to 3.1.6
@Subterrane Subterrane requested a review from Copilot May 9, 2025 18:17
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR modernizes the package by consolidating configuration into pyproject.toml, removing legacy files, and updating CI workflows.

  • Remove outdated packaging files (setup.py, setup.cfg, test-requirements.txt, .travis.yml, .gitlab-ci.yml, git_push.sh)
  • Update tox.ini environment configuration and GitHub Actions workflows
  • Bump the version to 3.1.6 and update the README with new installation instructions

Reviewed Changes

Copilot reviewed 14 out of 14 changed files in this pull request and generated no comments.

Show a summary per file
File Description
tox.ini Expanded environment list and enabled isolated builds
test-requirements.txt Removed redundant test requirements file
setup.py Removed in favor of pyproject.toml consolidation
setup.cfg Removed in favor of pyproject.toml consolidation
pyproject.toml Consolidated project metadata and dependency declarations
onelogin/init.py Updated version to 3.1.6
git_push.sh Removed outdated git push script
README.md Updated installation and testing instructions
.travis.yml Removed CI configuration
.gitlab-ci.yml Removed CI configuration
.github/workflows/python-publish.yml Updated build command to a condensed one
.github/workflows/continuous-integration.yml Updated test command from unittest to pytest

@Subterrane Subterrane merged commit ac11148 into master May 9, 2025
6 checks passed
@Subterrane Subterrane deleted the refactor_setup branch May 9, 2025 18:19
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.

2 participants