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

Refactoring: Migrate to Poetry dependency management, packaging and PyPI distribution #244

Merged
merged 23 commits into from
Jun 30, 2022

Conversation

priitlatt
Copy link
Contributor

@priitlatt priitlatt commented Jun 22, 2022

Motivation

The main goal of this pull request is to migrate the project to unified PEP 518 compliant build system by using Poetry dependency management and packaging tool.

Current situation

Up until now

  • project dependencies were managed by Pipenv,
  • builds were run using setuptools and
  • PyPI distribution was done using Twine.

What was done

Old project configuration files setup.cfg, Pipenv and setup.py were replaced by pyproject.toml and .flake8.

Testing, building and distribution workflows in CI scripts were updated to use Poetry. New release-test CI workflow was added to publish test releases to PyPI test environment which adds options to test distribution related changes.

Single code change renaming Ruby script bin/code_signing_manager.rb to src/codemagic/scripts/code_signing_manager.rb, accompanied by minor edit to code_signing_settings_manager.py, was required by the fact that there is no easy way to define non-Python shell scripts using Poetry.

pre-commit hooks were introduced to ensure unified code style from all contributors without running unnecessary CI jobs.

Examples in readme file were brough up to date and information on how to set up development environment was added.

@priitlatt priitlatt marked this pull request as ready for review June 28, 2022 12:35
@priitlatt priitlatt changed the title Refactoring: Migrate to Poetry from Pipenv for dependency management Refactoring: Migrate to Poetry dependency management, packaging and PyPI distribution Jun 28, 2022
CHANGELOG.md Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
Co-authored-by: helinanever <36853001+helinanever@users.noreply.github.com>
@priitlatt priitlatt requested a review from remarkov June 30, 2022 07:25
@priitlatt priitlatt merged commit 9f867de into master Jun 30, 2022
@priitlatt priitlatt deleted the refactoring/poetry branch June 30, 2022 08:59
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.

3 participants