Skip to content

Commit fae5ca5

Browse files
authored
Merge pull request #195 from hakonanes/python-3-11-support
List explicit support for Python 3.11 and remove for 3.6
2 parents 7e510e7 + f8749e3 commit fae5ca5

File tree

6 files changed

+23
-21
lines changed

6 files changed

+23
-21
lines changed

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33

44
#### Progress of the PR
5-
65
- [ ] [Docstrings for all functions](https://github.com/numpy/numpy/blob/master/doc/example.py)
76
- [ ] Unit tests with pytest for all lines
87
- [ ] Clean code style by [running black](https://diffsims.readthedocs.io/en/latest/contributing.html#get-the-style-right)

.github/workflows/build.yml

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,12 @@ jobs:
2424
- uses: actions/setup-python@v4
2525

2626
- name: Install dependencies
27-
run: pip install manifix
27+
run: |
28+
pip install manifix
2829
2930
- name: Check MANIFEST.in file
30-
run: python setup.py manifix
31+
run: |
32+
python setup.py manifix
3133
3234
build-with-pip:
3335
name: ${{ matrix.os }}-py${{ matrix.python-version }}${{ matrix.LABEL }}
@@ -37,13 +39,13 @@ jobs:
3739
fail-fast: false
3840
matrix:
3941
os: [ubuntu-latest, windows-latest, macos-latest]
40-
python-version: [3.9, '3.10']
42+
python-version: ['3.10', '3.11']
4143
include:
42-
# Oldest supported version of main dependencies on Python 3.6
43-
- os: ubuntu-20.04
44-
python-version: 3.6
44+
# Oldest supported version of main dependencies
45+
- os: ubuntu-latest
46+
python-version: 3.7
4547
OLDEST_SUPPORTED_VERSION: true
46-
DEPENDENCIES: diffpy.structure==3.0.0 matplotlib==3.3 numpy==1.17 orix==0.9.0 scipy==1.0 tqdm==4.9
48+
DEPENDENCIES: diffpy.structure==3.0.0 matplotlib==3.3 numpy==1.17 orix==0.9.0 scipy==1.1 tqdm==4.9
4749
LABEL: -oldest
4850
steps:
4951
- uses: actions/checkout@v3
@@ -76,7 +78,8 @@ jobs:
7678
pytest --doctest-modules --doctest-continue-on-failure --ignore-glob=diffsims/tests/*
7779
7880
- name: Run tests
79-
run: pytest -n 2 --cov=diffsims --pyargs diffsims
81+
run: |
82+
pytest -n 2 --cov=diffsims --pyargs diffsims
8083
8184
- name: Generate line coverage
8285
if: ${{ matrix.os == 'ubuntu-latest' }}

.github/workflows/python-publish.yml

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,14 @@ on:
1818
jobs:
1919
deploy:
2020
runs-on: ubuntu-latest
21+
permissions:
22+
# IMPORTANT: this permission is mandatory for trusted publishing
23+
id-token: write
2124
steps:
22-
- uses: actions/checkout@v2
25+
- uses: actions/checkout@v3
2326

2427
- name: Set up Python
25-
uses: actions/setup-python@v2
28+
uses: actions/setup-python@v4
2629
with:
2730
python-version: '3.x'
2831

@@ -36,14 +39,9 @@ jobs:
3639
python -m build
3740
3841
- name: Publish package to TestPyPI
39-
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
42+
uses: pypa/gh-action-pypi-publish@release/v1
4043
with:
41-
user: __token__
42-
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
4344
repository_url: https://test.pypi.org/legacy/
4445

4546
- name: Publish package to PyPI
46-
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
47-
with:
48-
user: __token__
49-
password: ${{ secrets.PYPI_API_TOKEN }}
47+
uses: pypa/gh-action-pypi-publish@release/v1

CHANGELOG.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ Unreleased
1212

1313
Added
1414
-----
15+
- Explicit support for Python 3.11.
1516

1617
Changed
1718
-------
@@ -22,6 +23,7 @@ Deprecated
2223

2324
Removed
2425
-------
26+
- Removed support for Python 3.6, leaving 3.7 as the oldest supported version.
2527

2628
Fixed
2729
-----

readthedocs.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ sphinx:
1313
build:
1414
os: ubuntu-22.04
1515
tools:
16-
python: "3.10"
16+
python: "3.11"
1717

1818
# Build doc in all formats (HTML, PDF and ePub)
1919
formats:

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,11 @@
5656
long_description=open("README.rst").read(),
5757
classifiers=[
5858
"Programming Language :: Python :: 3",
59-
"Programming Language :: Python :: 3.6",
6059
"Programming Language :: Python :: 3.7",
6160
"Programming Language :: Python :: 3.8",
6261
"Programming Language :: Python :: 3.9",
6362
"Programming Language :: Python :: 3.10",
63+
"Programming Language :: Python :: 3.11",
6464
"Development Status :: 4 - Beta",
6565
"Intended Audience :: Science/Research",
6666
(
@@ -81,7 +81,7 @@
8181
"numpy >= 1.17",
8282
"orix >= 0.9",
8383
"psutil",
84-
"scipy >= 1.0",
84+
"scipy >= 1.1",
8585
"tqdm >= 4.9",
8686
"transforms3d",
8787
],

0 commit comments

Comments
 (0)