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

Migrate to pyproject toml #947

Merged
merged 4 commits into from
Sep 30, 2024
Merged

Conversation

jjaakola-aiven
Copy link
Contributor

@jjaakola-aiven jjaakola-aiven commented Sep 13, 2024

About this change - What it does

First commit migrates to use pyproject.toml. Build backend is still the setuptools.
Karapace install: pip install .
Editable install for development: pip install -e .[dev,typing] Building the wheel: python -m buildPinning of dependencies to:make pin-requirements. Pinning runs the pip-compilein a Python 3.8 container. Version is now created bysetuptools-scm` from git state and is PEP compliant.

The second commit migrates to source layout.
The third commit cleans the Github links from aiven organization to Aiven-Open.
The fourth commit removes the pyenv requirement. Proposal is to implement and use tox later on for multiversion testing locally.

References: #xxxxx

Why this way

.dockerignore Outdated Show resolved Hide resolved
GNUmakefile Outdated Show resolved Hide resolved
@jjaakola-aiven jjaakola-aiven force-pushed the jjaakola-aiven-migrate-to-pyproject-toml branch from 0d8bec6 to e51b148 Compare September 13, 2024 11:46
CONTRIBUTING.md Outdated Show resolved Hide resolved
aiven-anton
aiven-anton previously approved these changes Sep 13, 2024
.github/workflows/lint.yml Outdated Show resolved Hide resolved
@jjaakola-aiven jjaakola-aiven force-pushed the jjaakola-aiven-migrate-to-pyproject-toml branch from e51b148 to f928bde Compare September 13, 2024 12:12
@jjaakola-aiven jjaakola-aiven marked this pull request as draft September 13, 2024 12:38
@jjaakola-aiven jjaakola-aiven force-pushed the jjaakola-aiven-migrate-to-pyproject-toml branch 11 times, most recently from 8cf0213 to cca1197 Compare September 13, 2024 14:20
container/Dockerfile Outdated Show resolved Hide resolved
GNUmakefile Outdated Show resolved Hide resolved
@jjaakola-aiven jjaakola-aiven force-pushed the jjaakola-aiven-migrate-to-pyproject-toml branch from cca1197 to 03cb394 Compare September 17, 2024 06:24
@Claudenw
Copy link

The JSON serialization tests failed. This seems, to me, like an odd one to fail. Does this change impact JSON serialization or is the JSON serialization test flaky?

@jjaakola-aiven
Copy link
Contributor Author

@Claudenw config file reading and parsing failed. The file (fixture) is created here: https://github.com/Aiven-Open/karapace/blob/main/tests/conftest.py#L163

@jjaakola-aiven jjaakola-aiven force-pushed the jjaakola-aiven-migrate-to-pyproject-toml branch 3 times, most recently from fc23c8c to 0a4e8d2 Compare September 24, 2024 10:01
@jjaakola-aiven jjaakola-aiven force-pushed the jjaakola-aiven-migrate-to-pyproject-toml branch 17 times, most recently from 00e7ae9 to 9989b50 Compare September 27, 2024 12:14
@jjaakola-aiven jjaakola-aiven marked this pull request as ready for review September 27, 2024 13:08
pip install -r ./requirements/requirements-dev.txt
pip install -e .
pip install .
pip install -e .[dev,typing]
Copy link
Contributor

Choose a reason for hiding this comment

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

In my zsh terminal I had to add quotes because of the squared brackets:

pip install -e ".[dev,typing]"

README.rst Outdated Show resolved Hide resolved
keejon
keejon previously approved these changes Sep 30, 2024
Copy link
Contributor

@keejon keejon left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@keejon keejon merged commit 7b7a3cc into main Sep 30, 2024
10 checks passed
@keejon keejon deleted the jjaakola-aiven-migrate-to-pyproject-toml branch September 30, 2024 09:22
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.

5 participants