-
-
Notifications
You must be signed in to change notification settings - Fork 0
Merge release v1.9.3 into main
#7
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
Changes from 41 commits
Commits
Show all changes
45 commits
Select commit
Hold shift + click to select a range
6d148b7
version bump
xulbux c4eaad7
everything as described in the `CHANGELOG.md` for `v1.9.3`
xulbux 1a8cb4f
OS specific functionality fixes
xulbux 54e9c04
define class-properties using `metaclass` and unnest simple nested me…
xulbux f266f43
made some internal methods private & made internal classmethods stati…
xulbux a72f946
- make all internal classes and methods be prefixed using only a sing…
xulbux fdf9dea
adjust CHANGELOG changes order
xulbux f8390f1
adjust CHANGELOG change descriptions
xulbux 549817f
unnest all nested methods in the `format_codes` module & linting
xulbux 47b460e
adjust docstrings and rename certain internal params to clarify their…
xulbux ec71076
remove pointless TypeAlias' & unnest remaining nested methods in the …
xulbux 3a201a9
fix type error
xulbux 89efc34
add new attribute `is_positional` to `ArgResult` & correct internal m…
xulbux 337d272
linting
xulbux 9a85f2e
fix `AttributeError`s from GitHub Actions test run
xulbux b0b6448
fix GitHub Actions run #2
xulbux d20a046
fix GitHub Actions run #3
xulbux c695572
fix GitHub Actions run #4
xulbux d0859b6
fix GitHub Actions run #5
xulbux 3398c27
fix GitHub Actions run #6
xulbux 2525efd
fix GitHub Actions run #7
xulbux 68b53ec
fix GitHub Actions run #8
xulbux 5000103
fix GitHub Actions run #9
xulbux d73e71b
fix GitHub Actions run #10
xulbux e1a6890
fix GitHub Actions run #11
xulbux b7df19a
remove redundant `@mypyc_attr(…)` decorators
xulbux 7ad3c68
add back `@mypyc_attr(…)` decorators that apparently aren't redundant…
xulbux c9ea8dc
add missing import
xulbux 692e6ba
adjust `console` module tests mocking/patching to work with the `Cons…
xulbux b4669b6
adjust `console` module tests mocking/patching to work with the `Cons…
xulbux 250232e
fix `'Console.get_args' is too complex` and other linting
xulbux 4b34217
add benchmarking results to `CHANGELOG.md` & adjust license file patt…
xulbux 3decd1c
make type corrections, add docstrings to dunder methods, rename const…
xulbux a7c0e65
fix: no backslashes in f-string expression part
xulbux 0d8f478
fix `C901 '_ConsoleArgsParseHelper.process_positional_args' is too co…
xulbux 7ddb5ed
fix `C901 too complex` linting errors
xulbux 50696cb
fix `… == None` comparison
xulbux 0f25964
fix `E741 ambiguous variable name` where logical
xulbux 2a92d5c
fix release date
xulbux 451a7dc
adjust `CHANGELOG.md`
xulbux eb84dc7
add build and publish workflow
xulbux f4192f7
Merge branch 'main' of https://github.com/XulbuX/PythonLibraryXulbuX …
xulbux 1db61a5
Merge branch 'main' of https://github.com/XulbuX/PythonLibraryXulbuX …
xulbux c8d8280
adjust build-and-publish workflow description
xulbux 9e53cd4
configure workflow to work as trusted published
xulbux 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 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 |
|---|---|---|
| @@ -0,0 +1,58 @@ | ||
| name: Build and Publish to PyPI | ||
|
|
||
| on: | ||
| push: | ||
| tags: | ||
| - "v1.[0-9]+.[0-9]+" | ||
| workflow_dispatch: # ALLOW MANUAL TRIGGER | ||
|
|
||
| jobs: | ||
| build_wheels: | ||
| name: Build wheels on ${{ matrix.os }} | ||
| runs-on: ${{ matrix.os }} | ||
| strategy: | ||
| matrix: | ||
| os: [ubuntu-latest, windows-latest, macos-latest] | ||
|
|
||
| steps: | ||
| - uses: actions/checkout@v4 | ||
|
|
||
| - name: Build wheels | ||
| uses: pypa/cibuildwheel@v2.16.5 | ||
| env: | ||
| CIBW_BUILD: cp310-* cp311-* cp312-* cp313-* cp314-* | ||
| CIBW_SKIP: "*-musllinux_*" | ||
|
|
||
| - uses: actions/upload-artifact@v4 | ||
| with: | ||
| name: wheels-${{ matrix.os }} | ||
| path: ./wheelhouse/*.whl | ||
|
|
||
| build_sdist: | ||
| name: Build source distribution | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
|
|
||
| - name: Build sdist | ||
| run: pipx run build --sdist | ||
|
|
||
| - uses: actions/upload-artifact@v4 | ||
| with: | ||
| name: sdist | ||
| path: dist/*.tar.gz | ||
|
|
||
| upload_pypi: | ||
|
|
||
| needs: [build_wheels, build_sdist] | ||
| runs-on: ubuntu-latest | ||
| if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') | ||
| steps: | ||
| - uses: actions/download-artifact@v4 | ||
| with: | ||
| pattern: "*" | ||
| merge-multiple: true | ||
| path: dist | ||
|
|
||
| - uses: pypa/gh-action-pypi-publish@release/v1 | ||
| with: | ||
| password: ${{ secrets.PYPI_API_TOKEN }} | ||
|
|
||
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,33 +1,15 @@ | ||
| # IDE & EDITOR SETTINGS | ||
| .vscode/ | ||
| .python-version | ||
|
|
||
| # CREDENTIALS & CONFIGURATION | ||
| .env | ||
| .npmrc | ||
| .pypirc | ||
|
|
||
| # COMPILED FILES & CACHES | ||
| __pycache__/ | ||
| __pypackages__/ | ||
| .mypy_cache/ | ||
| .pytest_cache/ | ||
| *.py[cod] | ||
| *$py.class | ||
|
|
||
| # BUILD ARTIFACTS | ||
| *.egg-info/ | ||
| build/ | ||
| dist/ | ||
| target/ | ||
| wheels/ | ||
| *.egg-info/ | ||
| .Python | ||
| .pybuilder/ | ||
| .pytype/ | ||
| cython_debug/ | ||
| __pypackages__/ | ||
|
|
||
| # TESTING | ||
| .venv/ | ||
| .pytest_cache/ | ||
|
|
||
| # MISCELLANEOUS | ||
| .DS_Store | ||
| Thumbs.db |
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 |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| from mypyc.build import mypycify | ||
| from setuptools import setup | ||
| import os | ||
|
|
||
|
|
||
| def find_python_files(directory: str) -> list[str]: | ||
| python_files: list[str] = [] | ||
| for root, _, files in os.walk(directory): | ||
| for file in files: | ||
| if file.endswith(".py"): | ||
| python_files.append(os.path.join(root, file)) | ||
| return python_files | ||
|
|
||
|
|
||
| source_files = find_python_files("src/xulbux") | ||
|
|
||
| setup( | ||
| name="xulbux", | ||
| ext_modules=mypycify(source_files), | ||
| ) |
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,4 +1,4 @@ | ||
| __version__ = "1.9.2" | ||
| __version__ = "1.9.3" | ||
|
|
||
| __author__ = "XulbuX" | ||
| __email__ = "xulbux.real@gmail.com" | ||
|
|
||
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.