-
Notifications
You must be signed in to change notification settings - Fork 0
Compatibility with Django 4.2 #40
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
14 commits
Select commit
Hold shift + click to select a range
b2d268d
update ugettext_lazy references
248848e
Merge branch 'master' into fix/compatibility_with_django4
7050ca3
minor cleanup
87f896a
tests structure
93c02b5
replace setup.py to pyproject.toml
0f2dd6b
implement github actions
c3c26f4
linting fixes
ae49521
fix tests
0b90943
drop explicit six usage
dda7109
loosen dependency restrictions
2918fbe
loosen restrictions for deps
05ac2ba
folder rename
6c8971e
revert pyyaml requirement
500ea14
regen lock file
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 |
|---|---|---|
| @@ -1,19 +1,28 @@ | ||
| # EditorConfig is awesome: http://EditorConfig.org | ||
| # Defines the coding style for different editors and IDEs. | ||
| # http://editorconfig.org | ||
|
|
||
| # top-most EditorConfig file | ||
| root = true | ||
|
|
||
| # Unix-style newlines with a newline ending every file | ||
| # Rules for source code. | ||
| [*] | ||
| charset = utf-8 | ||
| end_of_line = lf | ||
| insert_final_newline = true | ||
| indent_size = 2 | ||
| indent_style = space | ||
| trim_trailing_whitespace = true | ||
|
|
||
| # Rules for Python code. | ||
| [*.py] | ||
| charset = utf-8 | ||
| indent_style = space | ||
| indent_size = 4 | ||
|
|
||
| # Rules for markdown documents. | ||
| [*.md] | ||
| indent_size = 4 | ||
| trim_trailing_whitespace = false | ||
|
|
||
| # Rules for makefile | ||
| [Makefile] | ||
| charset = utf-8 | ||
| indent_style = tab | ||
| indent_size = 8 | ||
| indent_size = 4 |
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,11 @@ | ||
| ### Summary | ||
| - Write a quick summary of what this PR is for | ||
|
|
||
|
|
||
| ##### Related Links | ||
| - Paste link to ticket or any other related sites here | ||
|
|
||
| ##### Ready for QA Checklist | ||
| - [ ] Code Review | ||
| - [ ] Dev QA | ||
| - [ ] Rebase and Squash |
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,32 @@ | ||
| name: Release | ||
|
|
||
| on: | ||
| push: | ||
| tags: | ||
| - '*' | ||
| workflow_dispatch: | ||
|
|
||
| jobs: | ||
| publish: | ||
| runs-on: ubuntu-latest | ||
| strategy: | ||
| matrix: | ||
| python-version: ["3.12"] | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - name: Set up Python ${{ matrix.python-version }} | ||
| uses: actions/setup-python@v5 | ||
| with: | ||
| python-version: ${{ matrix.python-version }} | ||
| - name: Install dependencies | ||
| run: | | ||
| python -m pip install --upgrade pip setuptools poetry tox-gh-actions | ||
| poetry install | ||
| - name: Build wheels and source tarball | ||
| run: poetry build | ||
| - name: publish to PyPi | ||
| uses: pypa/gh-action-pypi-publish@release/v1 | ||
| with: | ||
| user: __token__ | ||
| password: ${{ secrets.PYPI_API_TOKEN }} | ||
| skip_existing: true |
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,39 @@ | ||
| name: Validate | ||
|
|
||
| on: | ||
| push: | ||
| branches: | ||
| - develop | ||
| - master | ||
| - main | ||
| - 'release/**' | ||
| pull_request: | ||
| branches: | ||
| - '*' | ||
| workflow_dispatch: | ||
|
|
||
| jobs: | ||
| validate: | ||
| runs-on: ubuntu-latest | ||
| strategy: | ||
| matrix: | ||
| python-version: ["3.12"] | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - name: Set up Python ${{ matrix.python-version }} | ||
| uses: actions/setup-python@v5 | ||
| with: | ||
| python-version: ${{ matrix.python-version }} | ||
| - name: Install dependencies | ||
| run: | | ||
| python -m pip install --upgrade pip setuptools poetry | ||
| poetry install | ||
| - name: Linting | ||
| run: | | ||
| poetry run isort . | ||
| poetry run black . | ||
| poetry run flake8 . --extend-ignore=D,E501,W601 --extend-exclude=docs/ --statistics --count | ||
| - name: Security | ||
| run: poetry run bandit -c pyproject.toml -r . | ||
| - name: Testing | ||
| run: poetry run python ./runtests.py |
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,15 +1,58 @@ | ||
| *.py[co] | ||
| .project | ||
| .pydevproject | ||
| *~ | ||
| *.db | ||
| *.orig | ||
| *.DS_Store | ||
| *.swp | ||
| *.bak | ||
|
|
||
| # docs | ||
| _build | ||
|
|
||
| # Packages | ||
| *.egg | ||
| *.egg-info | ||
| dist | ||
| build | ||
| eggs | ||
| parts | ||
| bin | ||
| var | ||
| sdist | ||
| develop-eggs | ||
| .installed.cfg | ||
|
|
||
| # Installer logs | ||
| pip-log.txt | ||
|
|
||
| # Unit test / coverage reports | ||
| .coverage | ||
| .idea | ||
| .tox | ||
| *.egg-info/* | ||
| docs/_build/* | ||
| dist/* | ||
| *.swp | ||
| .vscode/* | ||
|
|
||
| .idea | ||
|
|
||
| .DS_Store | ||
|
|
||
| #Translations | ||
| *.mo | ||
|
|
||
| #Mr Developer | ||
| .mr.developer.cfg | ||
|
|
||
| # Configuration | ||
| sdelint.cnf | ||
|
|
||
| #generated data | ||
| usecases/output.csv | ||
|
|
||
| # Test files | ||
| info.log | ||
| htmlcov/ | ||
|
|
||
| #ides | ||
| .idea | ||
| .vscode | ||
|
|
||
| #custom cert bundle | ||
| my_root_certs.crt | ||
|
|
||
| # symbolic links | ||
| .flake8 | ||
|
|
||
| conf/ |
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,37 @@ | ||
| repos: | ||
| - repo: https://github.com/Lucas-C/pre-commit-hooks | ||
| rev: v1.1.13 | ||
| hooks: | ||
| - id: forbid-crlf | ||
| - id: remove-crlf | ||
| - id: forbid-tabs | ||
| exclude_types: [csv] | ||
| - id: remove-tabs | ||
| exclude_types: [csv] | ||
|
|
||
| - repo: https://github.com/pre-commit/pre-commit-hooks | ||
| rev: v4.1.0 | ||
| hooks: | ||
| - id: trailing-whitespace | ||
| - id: end-of-file-fixer | ||
| - id: check-merge-conflict | ||
| - id: check-yaml | ||
| args: [--unsafe] | ||
|
|
||
| - repo: https://github.com/pre-commit/mirrors-isort | ||
| rev: v5.10.1 | ||
| hooks: | ||
| - id: isort | ||
|
|
||
| - repo: https://github.com/ambv/black | ||
| rev: 22.3.0 | ||
| hooks: | ||
| - id: black | ||
| language_version: python3.12 | ||
|
|
||
| - repo: https://github.com/pycqa/flake8 | ||
| rev: 3.9.2 | ||
| hooks: | ||
| - id: flake8 | ||
| additional_dependencies: [flake8-typing-imports==1.10.0] | ||
| exclude: ^tests |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,11 +1,7 @@ | ||
| init: | ||
| pip install -r requirements.txt | ||
|
|
||
| lint: | ||
| flake8 --max-line-length 120 --extend-ignore=D | ||
| poetry run black . | ||
| poetry run isort . | ||
| poetry run flake8 . --extend-ignore=D,E501,W601 --extend-exclude=docs/ --statistics --count | ||
|
|
||
| test: | ||
| ./runtests.py | ||
|
|
||
| coverage: | ||
| coverage run --source=multi_import runtests.py && coverage report | ||
| poetry run python ./runtests.py |
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,13 @@ | ||
| # django-multi-import | ||
|
|
||
| Import/export multi Django resources together atomically. | ||
|
|
||
| ## Usage | ||
|
|
||
| You can run the tests with via:: | ||
|
|
||
| python setup.py test | ||
|
|
||
| or:: | ||
|
|
||
| python runtests.py |
This file was deleted.
Oops, something went wrong.
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.