Skip to content

Move to Poetry for Python#1586

Closed
taddes wants to merge 12 commits intomasterfrom
SYNC-4293_poetry_deps_mgmt
Closed

Move to Poetry for Python#1586
taddes wants to merge 12 commits intomasterfrom
SYNC-4293_poetry_deps_mgmt

Conversation

@taddes
Copy link
Collaborator

@taddes taddes commented Jul 15, 2024

Description

Update to Poetry for Python dependency management.

This puts all the tools, dependencies, and commands in place. However, we won't spin our wheels right now converting over in CI, moving from venv and whatnot, since we're not prioritizing Sync modernization atm. We will address down the road, but for the time being increases developer speed and experience for checks and makes some improvements to the python utilities.

Benefits:

  • Simpler management of scoped dependencies within subdirectories
  • Faster build times
  • Better auditing of out-of-date packages
  • Modern Python standard

Testing

How should reviewers test?

Issue(s)

Closes 4293.

@taddes taddes self-assigned this Jul 15, 2024
[tool.poetry]
name = "syncstorage-rs"
version = "0.1.0"
description = "sync storage server in rust"
Copy link
Member

Choose a reason for hiding this comment

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

There's a potential that folk might discover this package while looking for a stand-alone Sync storage server. Let's be exceptionally clear about what this is and how it's being used.

Suggested change
description = "sync storage server in rust"
description = "Support package for the Mozilla Sync storage server, written in rust. This is not a 'stand alone' server and is not meant for general use to run your own Sync storage server. Please see [the wiki page](https://github.com/mozilla-services/syncstorage-rs/wiki/overview) for further details."

@taddes taddes force-pushed the SYNC-4293_poetry_deps_mgmt branch from b8c0ff2 to 2aa78e2 Compare July 18, 2024 18:57
@taddes taddes force-pushed the SYNC-4293_poetry_deps_mgmt branch from d7af2bd to fa1df48 Compare August 11, 2024 19:40
@taddes taddes changed the title WIP: Move to Poetry for Python Move to Poetry for Python Sep 4, 2024
@taddes taddes force-pushed the SYNC-4293_poetry_deps_mgmt branch from a3673b2 to c20fcb1 Compare September 4, 2024 19:38
@taddes taddes marked this pull request as ready for review September 4, 2024 19:52
)
writer = DataFileWriter(
open(out_file_name, "wb"), DatumWriter(), schema)
for chunk in range(max(1, math.trunc(math.ceil(row_count / MAX_ROWS)))):
Copy link
Member

Choose a reason for hiding this comment

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

Yeah, i'd have words with the folk behind black and why they want python to look like perl, but 🤷🏻

@taddes taddes force-pushed the SYNC-4293_poetry_deps_mgmt branch from c20fcb1 to 8d649a8 Compare September 19, 2024 21:24
@taddes taddes requested a review from jrconlin September 19, 2024 21:41
@taddes
Copy link
Collaborator Author

taddes commented Sep 19, 2024

Thanks for the comments @jrconlin . I shelved this one before MozWeek, but I don't think it hurts to merge in now, we can pick up the steps later once we've finished our priority tasks. All the parts are there to utilize the tooling with some format improvements, we'll just make the move to Poetry (officially, should we wish) down the road.

@jrconlin jrconlin marked this pull request as draft September 19, 2024 22:44
@taddes taddes force-pushed the SYNC-4293_poetry_deps_mgmt branch from 57c08e2 to 3bd2a93 Compare September 20, 2024 19:03
@taddes taddes marked this pull request as ready for review September 20, 2024 19:29
@taddes taddes force-pushed the SYNC-4293_poetry_deps_mgmt branch from 3bd2a93 to d2ff740 Compare November 29, 2024 20:53
@taddes taddes force-pushed the SYNC-4293_poetry_deps_mgmt branch from d2ff740 to 217b226 Compare May 1, 2025 16:32
@taddes
Copy link
Collaborator Author

taddes commented Aug 27, 2025

Superseded by #1706

@taddes taddes closed this Aug 27, 2025
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