-
-
Notifications
You must be signed in to change notification settings - Fork 937
Improve Python version and OS compatibility, fixing deprecations #1654
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
17 commits
Select commit
Hold shift + click to select a range
dba4245
Fix installation test for Python 3.12 and Windows
EliahKagan 72e48aa
Update installation instructions in readme
EliahKagan b095aa9
Use more compatible hashbangs
EliahKagan 63c4624
Don't duplicate packages across requirements files
EliahKagan 3aacb37
Use a "test" extra instead of tests_require
EliahKagan e1d8b40
Use "build" for building
EliahKagan b9b6d8c
Ungroup and sort test_requirements.txt
EliahKagan 21c5f87
Don't preinstall dependencies in test_installation
EliahKagan 6b54890
Test changed setup, and Python 3.12, on CI
EliahKagan 055355d
Don't use "set -x" for "pytest" command on Cygwin
EliahKagan a352404
List Python 3.12 as supported in setup.py
EliahKagan 415a8eb
Small clarity improvements in setup.py
EliahKagan 4eef3ec
Have actions/checkout do the full fetch
EliahKagan 5f128e8
Move effect of "set -x" into default shell command
EliahKagan d99b2d4
prepare next release
Byron f86f09e
Make publish process possible on MacOS
Byron 5343aa0
Let "make" install build and twine if in a virtual environment
EliahKagan 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 |
---|---|---|
|
@@ -12,38 +12,53 @@ jobs: | |
SHELLOPTS: igncr | ||
TMP: "/tmp" | ||
TEMP: "/tmp" | ||
defaults: | ||
run: | ||
shell: bash.exe --noprofile --norc -exo pipefail -o igncr "{0}" | ||
|
||
steps: | ||
- name: Force LF line endings | ||
run: git config --global core.autocrlf input | ||
|
||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 9999 | ||
fetch-depth: 0 | ||
submodules: recursive | ||
|
||
- uses: cygwin/cygwin-install-action@v4 | ||
with: | ||
packages: python39 python39-pip python39-virtualenv git | ||
|
||
- name: Show python and git versions | ||
run: | | ||
/usr/bin/python --version | ||
/usr/bin/git version | ||
|
||
- name: Tell git to trust this repo | ||
shell: bash.exe -eo pipefail -o igncr "{0}" | ||
run: | | ||
/usr/bin/git config --global --add safe.directory "$(pwd)" | ||
- name: Install dependencies and prepare tests | ||
shell: bash.exe -eo pipefail -o igncr "{0}" | ||
/usr/bin/git config --global --add safe.directory "$(pwd)" | ||
|
||
- name: Prepare this repo for tests | ||
run: | | ||
set -x | ||
/usr/bin/python -m pip install --upgrade pip setuptools wheel | ||
/usr/bin/python --version; /usr/bin/git --version | ||
/usr/bin/git submodule update --init --recursive | ||
/usr/bin/git fetch --tags | ||
/usr/bin/python -m pip install -r requirements.txt | ||
/usr/bin/python -m pip install -r test-requirements.txt | ||
TRAVIS=yes ./init-tests-after-clone.sh | ||
|
||
- name: Further prepare git configuration for tests | ||
run: | | ||
/usr/bin/git config --global user.email "[email protected]" | ||
/usr/bin/git config --global user.name "Travis Runner" | ||
# If we rewrite the user's config by accident, we will mess it up | ||
# and cause subsequent tests to fail | ||
cat test/fixtures/.gitconfig >> ~/.gitconfig | ||
|
||
- name: Update PyPA packages | ||
run: | | ||
/usr/bin/python -m pip install --upgrade pip setuptools wheel | ||
|
||
- name: Install project and test dependencies | ||
run: | | ||
/usr/bin/python -m pip install ".[test]" | ||
|
||
- name: Test with pytest | ||
shell: bash.exe -eo pipefail -o igncr "{0}" | ||
run: | | ||
set +x | ||
/usr/bin/python -m pytest | ||
continue-on-error: false |
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 |
---|---|---|
|
@@ -15,51 +15,70 @@ jobs: | |
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: [3.7, 3.8, 3.9, "3.10", "3.11"] | ||
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"] | ||
include: | ||
- experimental: false | ||
- python-version: "3.12" | ||
experimental: true | ||
defaults: | ||
run: | ||
shell: /bin/bash --noprofile --norc -exo pipefail {0} | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 9999 | ||
fetch-depth: 0 | ||
submodules: recursive | ||
|
||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install dependencies and prepare tests | ||
run: | | ||
set -x | ||
allow-prereleases: ${{ matrix.experimental }} | ||
|
||
python -m pip install --upgrade pip setuptools wheel | ||
python --version; git --version | ||
git submodule update --init --recursive | ||
git fetch --tags --force | ||
- name: Show python and git versions | ||
run: | | ||
python --version | ||
git version | ||
|
||
pip install -r requirements.txt | ||
pip install -r test-requirements.txt | ||
- name: Prepare this repo for tests | ||
run: | | ||
TRAVIS=yes ./init-tests-after-clone.sh | ||
|
||
- name: Prepare git configuration for tests | ||
run: | | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "Travis Runner" | ||
# If we rewrite the user's config by accident, we will mess it up | ||
# and cause subsequent tests to fail | ||
cat test/fixtures/.gitconfig >> ~/.gitconfig | ||
|
||
- name: Update PyPA packages | ||
run: | | ||
python -m pip install --upgrade pip | ||
if pip freeze --all | grep --quiet '^setuptools=='; then | ||
# Python prior to 3.12 ships setuptools. Upgrade it if present. | ||
python -m pip install --upgrade setuptools | ||
fi | ||
python -m pip install --upgrade wheel | ||
|
||
- name: Install project and test dependencies | ||
run: | | ||
pip install ".[test]" | ||
|
||
- name: Check types with mypy | ||
# With new versions of pypi new issues might arise. This is a problem if there is nobody able to fix them, | ||
# so we have to ignore errors until that changes. | ||
continue-on-error: true | ||
run: | | ||
set -x | ||
mypy -p git | ||
# With new versions of mypy new issues might arise. This is a problem if there is nobody able to fix them, | ||
# so we have to ignore errors until that changes. | ||
continue-on-error: true | ||
|
||
- name: Test with pytest | ||
run: | | ||
set -x | ||
pytest | ||
continue-on-error: false | ||
|
||
- name: Documentation | ||
run: | | ||
set -x | ||
pip install -r doc/requirements.txt | ||
make -C doc html |
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 +1 @@ | ||
3.1.35 | ||
3.1.36 |
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
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.