-
Notifications
You must be signed in to change notification settings - Fork 29
Set default python version 3.9 and fix strenum problem #135
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
Merged
Merged
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
4eee56e
Update ruff pre-commit
jacomago 2a74765
Add pyproject formatter
jacomago 449ee56
Set ruff target version
jacomago 35dc8d2
Fix usage of StrEnum
jacomago db348a1
Update repo link
jacomago df7ed33
Update the description
jacomago fe80984
Update the version number to match latest tag
jacomago d377dfa
fix ruff usage
jacomago 080e948
Move ci logging to ci
jacomago beba255
Update description in pyproject.toml
jacomago 7368eb7
fix typo
jacomago 89f47b9
Testing only 3.9
jacomago 7536646
Use dynamic port for cf in tests
jacomago File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,45 +1,50 @@ | ||
| [build-system] | ||
| requires = ["setuptools"] | ||
| build-backend = "setuptools.build_meta" | ||
| requires = [ "setuptools" ] | ||
|
|
||
| [project] | ||
| name="recceiver" | ||
| name = "recceiver" | ||
| version = "1.8dev" | ||
| description = "recCeiver is a server component of the recsync protocol. It receives record updates from recsync clients (e.g., recCasters) and forwards them to a configurable backend such as ChannelFinder." | ||
| readme = "README.md" | ||
| authors = [ | ||
| {name = "Michael Davidsaver", email = "mdavidsaver@gmail.com"}, | ||
| { name = "Michael Davidsaver", email = "mdavidsaver@gmail.com" }, | ||
| ] | ||
| description="resync server" | ||
| version="1.5" | ||
| readme = "README.md" | ||
| requires-python = ">=3.6" | ||
| classifiers = [ | ||
jacomago marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| "Programming Language :: Python :: 3 :: Only", | ||
| "Programming Language :: Python :: 3.6", | ||
| "Programming Language :: Python :: 3.7", | ||
| "Programming Language :: Python :: 3.8", | ||
| "Programming Language :: Python :: 3.9", | ||
| "Programming Language :: Python :: 3.10", | ||
| "Programming Language :: Python :: 3.11", | ||
| "Programming Language :: Python :: 3.12", | ||
| "Programming Language :: Python :: 3.13", | ||
| "Programming Language :: Python :: 3.14", | ||
| ] | ||
| dependencies = [ | ||
jacomago marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| "dataclasses; python_version < '3.7'", | ||
| "requests", | ||
| "twisted", | ||
| "channelfinder @ https://github.com/ChannelFinder/pyCFClient/archive/refs/tags/v3.0.0.zip" | ||
| "channelfinder @ https://github.com/ChannelFinder/pyCFClient/archive/refs/tags/v3.0.0.zip", | ||
| "dataclasses; python_version<'3.7'", | ||
| "requests", | ||
| "twisted", | ||
| ] | ||
|
|
||
| [project.optional-dependencies] | ||
| test = ["pytest", "testcontainers>=4"] | ||
|
|
||
| [project.urls] | ||
| Repository="https://github.com/mdavidsaver/recsync" | ||
| optional-dependencies.test = [ "pytest", "testcontainers>=4" ] | ||
| urls.Repository = "https://github.com/ChannelFinder/recsync" | ||
|
|
||
| [tool.setuptools] | ||
| packages = ["recceiver", "twisted.plugins"] | ||
| packages = [ "recceiver", "twisted.plugins" ] | ||
| include-package-data = true | ||
|
|
||
| [tool.setuptools.package-data] | ||
| twisted = ["plugins/recceiver_plugin.py"] | ||
|
|
||
| [tool.pytest.ini_options] | ||
| log_cli = true | ||
| log_cli_level = "DEBUG" | ||
| twisted = [ "plugins/recceiver_plugin.py" ] | ||
|
|
||
| [tool.ruff] | ||
| line-length = 120 | ||
| target-version = "py39" | ||
jacomago marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| [tool.ruff.lint] | ||
| line-length = 120 | ||
| # Enable Pyflakes (`F`) and a subset of the pycodestyle (`E`) codes by default. | ||
| # Unlike Flake8, Ruff doesn't enable pycodestyle warnings (`W`) or | ||
| # McCabe complexity (`C901`) by default. | ||
| select = ["E", "F", "I"] | ||
| lint.select = [ "E", "F", "I" ] | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,4 @@ | ||
| from requests import HTTPError | ||
|
|
||
| from twisted.internet.address import IPv4Address | ||
|
|
||
|
|
||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -67,7 +67,7 @@ def create_client_and_wait(compose: DockerCompose, expected_channel_count) -> Ch | |
|
|
||
|
|
||
| def create_client_from_compose(compose: DockerCompose) -> ChannelFinderClient: | ||
| cf_host, cf_port = compose.get_service_host_and_port("cf") | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Magic value - should be moved to variable |
||
| cf_host, cf_port = compose.get_service_host_and_port("cf", 8080) | ||
| cf_url = f"http://{cf_host if cf_host else 'localhost'}:{cf_port}/ChannelFinder" | ||
| # wait for channels to sync | ||
| LOG.info("CF URL: %s", cf_url) | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.