-
Notifications
You must be signed in to change notification settings - Fork 2
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
Modernize project #181
Merged
Merged
Modernize project #181
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
965ea99
Add support for bookworm/3.10 runtime
sandre35 4d19bbb
Add support for bookworm/3.12 runtime
sandre35 b19a8ef
Drop all runtime behind Python 3.9
sandre35 f9a3bf1
github.worflows: update action to latest version available
sandre35 10d4c6d
Drop support for Python 3.7
sandre35 57ce939
Add support for Python 3.11
sandre35 595fa78
Add support for Python 3.12
sandre35 bce3f00
github: Add workflow to publish release on PyPI
sandre35 9a50f3a
Execute tests workflow on push
sandre35 227ff21
builders.op: provide timeout for requests
sandre35 8a84ea3
tox: fix tests and quality jobs
sandre35 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
There are no files selected for viewing
This file contains 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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: Publish Python distribution to PyPI | ||
|
||
on: push | ||
|
||
jobs: | ||
publish-to-pypi: | ||
name: Publish Python distribution to PyPI | ||
if: startsWith(github.ref, 'refs/tags/') # only publish to PyPI on tag pushes | ||
runs-on: ubuntu-latest | ||
environment: | ||
name: pypi | ||
url: https://pypi.org/p/grocker | ||
permissions: | ||
id-token: write # IMPORTANT: mandatory for trusted publishing | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.12" | ||
- name: Install pypa/build | ||
run: pip install build | ||
- name: Build a binary wheel and a source tarball | ||
run: python3 -m build | ||
- name: Publish distribution to PyPI | ||
uses: pypa/gh-action-pypi-publish@release/v1 |
This file contains 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 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 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 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 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 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,24 +1,6 @@ | ||
# Copyright (c) Polyconseil SAS. All rights reserved. | ||
|
||
import sys | ||
import warnings | ||
|
||
try: | ||
from importlib import metadata | ||
except ImportError: | ||
# Python<3.8: use importlib-metadata package | ||
import importlib_metadata as metadata # type: ignore | ||
from importlib import metadata | ||
|
||
__version__ = metadata.version('grocker') | ||
__copyright__ = '2015, Polyconseil' | ||
|
||
|
||
class GrockerDeprecationWarning(Warning): | ||
pass | ||
|
||
|
||
if tuple(sys.version_info[:2]) in ((3, 5)): | ||
warnings.warn( | ||
"Support for 3.5 will be dropped in next major version", | ||
category=GrockerDeprecationWarning, | ||
) |
This file contains 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 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 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 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,23 +1,22 @@ | ||
[tox] | ||
envlist = py37, py38, py39, py310, docs, quality | ||
envlist = py38, py39, py310, py311, py312, docs, quality | ||
skip_missing_interpreters = True | ||
|
||
[testenv:docs] | ||
deps = -rrequirements-dev.txt | ||
commands = make docs | ||
|
||
[testenv:quality] | ||
deps = -rrequirements-dev.txt | ||
commands = make quality | ||
|
||
[testenv] | ||
deps = pytest | ||
whitelist_externals = make | ||
deps = -rrequirements-dev.txt | ||
allowlist_externals = make | ||
commands = make tests | ||
|
||
[gh-actions] | ||
python = | ||
3.7: py37 | ||
3.8: py38 | ||
3.9: py39 | ||
3.10: py310, docs, quality | ||
3.10: py310 | ||
3.11: py311 | ||
3.12: py312, docs, quality |
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The following line can also be removed?