Skip to content

Conversation

@squahtx
Copy link
Contributor

@squahtx squahtx commented Dec 1, 2021

@squahtx squahtx requested a review from a team as a code owner December 1, 2021 18:16
[metadata]
name = matrix_common
description = "Common utilities for Synapse, Sydent and Sygnal"
description = Common utilities for Synapse, Sydent and Sygnal
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The quotation marks get included verbatim otherwise

Comment on lines +12 to +13
packages =
matrix_common
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Is this the right way to not publish an empty package?

Copy link
Member

Choose a reason for hiding this comment

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

I'm not really sure what you mean by this? I think usually you can either specify the packages manually, as you did, or use find: (and potentially exclude any tests, etc.)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I was uncertain at the time because I was expecting synapse-module-cookiecutter-template to work out of the box.
I've PRed an equivalent change into the template so it's all okay now.

@squahtx squahtx requested a review from clokep December 2, 2021 16:02
setup.cfg Outdated
[options]
packages =
matrix_common
python_requires = >= 3.7
Copy link
Member

Choose a reason for hiding this comment

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

Synapse still supports 3.6, but only for a few more weeks. Not sure of your plan for when we intend to use this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good point. I'm hoping to use this sooner rather than later, so we really ought to support 3.6 for now.

Copy link
Member

@clokep clokep left a comment

Choose a reason for hiding this comment

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

Seems reasonable. I'm surprised that we need aiounittest installed for tests, but we can deal with that in the future.

@squahtx
Copy link
Contributor Author

squahtx commented Dec 2, 2021

That last commit should say "3.6".

As for aiounittest, I wasn't sure if we'd need it later, so I left it in for now.

@clokep
Copy link
Member

clokep commented Dec 2, 2021

As for aiounittest, I wasn't sure if we'd need it later, so I left it in for now.

I figured it was something like that, we'll figure that out as we go I suppose!

Changes look good

@squahtx
Copy link
Contributor Author

squahtx commented Dec 2, 2021

I'm going to merge this, but won't release yet.
The package needs to be made PEP 561 compliant, otherwise mypy doesn't pick up types when importing it.

@squahtx squahtx merged commit 55b6851 into main Dec 2, 2021
@clokep clokep deleted the squah/prep_for_release branch December 3, 2021 12:14
@reivilibre
Copy link
Collaborator

As for aiounittest, I wasn't sure if we'd need it later, so I left it in for now.

We should really write this down, but it seems like we should be using Twisted-specific stuff instead of aiounittest anyway — it's fairly likely you'll just want to cut it out (though we should figure out an equivalent for Twisted)

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.

4 participants