Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork938
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Merged
Uh oh!
There was an error while loading.Please reload this page.
Merged
Changes fromall commits
Commits
Show all changes
17 commits Select commitHold shift + click to select a range
dba4245
Fix installation test for Python 3.12 and Windows
EliahKagan72e48aa
Update installation instructions in readme
EliahKaganb095aa9
Use more compatible hashbangs
EliahKagan63c4624
Don't duplicate packages across requirements files
EliahKagan3aacb37
Use a "test" extra instead of tests_require
EliahKagane1d8b40
Use "build" for building
EliahKaganb9b6d8c
Ungroup and sort test_requirements.txt
EliahKagan21c5f87
Don't preinstall dependencies in test_installation
EliahKagan6b54890
Test changed setup, and Python 3.12, on CI
EliahKagan055355d
Don't use "set -x" for "pytest" command on Cygwin
EliahKagana352404
List Python 3.12 as supported in setup.py
EliahKagan415a8eb
Small clarity improvements in setup.py
EliahKagan4eef3ec
Have actions/checkout do the full fetch
EliahKagan5f128e8
Move effect of "set -x" into default shell command
EliahKagand99b2d4
prepare next release
Byronf86f09e
Make publish process possible on MacOS
Byron5343aa0
Let "make" install build and twine if in a virtual environment
EliahKaganFile filter
Filter by extension
Conversations
Failed to load comments.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Jump to file
Failed to load files.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
43 changes: 29 additions & 14 deletions.github/workflows/cygwin-test.yml
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
53 changes: 36 additions & 17 deletions.github/workflows/pythonpackage.yml
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", "3.12"] | ||
EliahKagan marked this conversation as resolved. Show resolvedHide resolvedUh oh!There was an error while loading.Please reload this page. | ||
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: 0 | ||
submodules: recursive | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
allow-prereleases: ${{ matrix.experimental }} | ||
- name: Showpythonand git versions | ||
run: | | ||
python --version | ||
gitversion | ||
- 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 "travis@ci.com" | ||
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 | ||
run: | | ||
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: | | ||
pytest | ||
continue-on-error: false | ||
- name: Documentation | ||
run: | | ||
pip install -r doc/requirements.txt | ||
make -C doc html |
6 changes: 4 additions & 2 deletionsMakefile
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
98 changes: 75 additions & 23 deletionsREADME.md
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
2 changes: 1 addition & 1 deletionVERSION
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.36 |
8 changes: 8 additions & 0 deletionsdoc/source/changes.rst
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
8 changes: 5 additions & 3 deletionsinit-tests-after-clone.sh
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,7 +1,9 @@ | ||
#!/usr/bin/env bash | ||
set -e | ||
if [[ -z "$TRAVIS" ]]; then | ||
read -rp "This operation will destroy locally modified files. Continue ? [N/y]: " answer | ||
Byron marked this conversation as resolved. Show resolvedHide resolvedUh oh!There was an error while loading.Please reload this page. | ||
if [[ ! $answer =~ [yY] ]]; then | ||
exit 2 | ||
fi | ||
@@ -13,4 +15,4 @@ git reset --hard HEAD~1 | ||
git reset --hard HEAD~1 | ||
git reset --hard HEAD~1 | ||
git reset --hard __testing_point__ | ||
git submodule update --init --recursive |
2 changes: 1 addition & 1 deletionpyproject.toml
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,5 @@ | ||
[build-system] | ||
requires = ["setuptools"] | ||
build-backend = "setuptools.build_meta" | ||
[tool.pytest.ini_options] | ||
1 change: 0 additions & 1 deletionrequirements-dev.txt
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.
Uh oh!
There was an error while loading.Please reload this page.
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.