Skip to content

Commit

Permalink
Merge pull request #129 from clbarnes/pyversions2023
Browse files Browse the repository at this point in the history
CI: Update python versions
  • Loading branch information
clbarnes authored Jan 9, 2024
2 parents df95912 + 5d3d8a1 commit 9a1956d
Show file tree
Hide file tree
Showing 5 changed files with 55 additions and 51 deletions.
48 changes: 24 additions & 24 deletions .github/workflows/publish-to-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,27 +10,27 @@ jobs:
name: Build and publish Python 🐍 distributions 📦 to PyPI
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Set up Python 3.8
uses: actions/setup-python@v1
with:
python-version: 3.8
- name: Install wheel and setuptools
run: >-
python -m
pip install
wheel
setuptools
extreqs
--user
--upgrade
- name: Build a binary wheel and a source tarball
run: >-
python3
setup.py
sdist
bdist_wheel
- name: Publish distribution 📦 to PyPI
uses: pypa/gh-action-pypi-publish@master
with:
password: ${{ secrets.pypi_password }}
- uses: actions/checkout@master
- name: Set up Python 3.10
uses: actions/setup-python@v1
with:
python-version: 3.10
- name: Install wheel and setuptools
run: >-
python -m
pip install
wheel
setuptools
extreqs
--user
--upgrade
- name: Build a binary wheel and a source tarball
run: >-
python3
setup.py
sdist
bdist_wheel
- name: Publish distribution 📦 to PyPI
uses: pypa/gh-action-pypi-publish@master
with:
password: ${{ secrets.pypi_password }}
47 changes: 24 additions & 23 deletions .github/workflows/test-install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,31 +16,32 @@ jobs:
matrix:
os: [ubuntu-latest, macos-latest]
python-version:
- "3.8"
- "3.9"
- "3.10"
- "3.11"
# - "3.12"
runs-on: ${{ matrix.os }}
steps:
# This cancels any such job that is still runnning
- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.6.0
with:
access_token: ${{ github.token }}
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install Linux libraries
run: |
sudo apt-get install -y libdbus-1-3 libxkbcommon-x11-0 libxcb-icccm4 \
libxcb-image0 libxcb-keysyms1 libxcb-randr0 libxcb-render-util0 \
libxcb-xinerama0 libxcb-xinput0 libxcb-xfixes0
if: ${{ matrix.os == 'ubuntu-latest' }}
- name: Install dependencies
run: |
pip install --upgrade pip wheel
- name: Install navis from Github
run: pip install git+https://github.com/navis-org/navis@master
- name: Test import
run: python3 -c "import navis"
- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.6.0
with:
access_token: ${{ github.token }}
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install Linux libraries
run: |
sudo apt-get install -y libdbus-1-3 libxkbcommon-x11-0 libxcb-icccm4 \
libxcb-image0 libxcb-keysyms1 libxcb-randr0 libxcb-render-util0 \
libxcb-xinerama0 libxcb-xinput0 libxcb-xfixes0
if: ${{ matrix.os == 'ubuntu-latest' }}
- name: Install dependencies
run: |
pip install --upgrade pip wheel
- name: Install navis from Github
run: pip install git+https://github.com/navis-org/navis@master
- name: Test import
run: python3 -c "import navis"
3 changes: 2 additions & 1 deletion .github/workflows/test-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@ jobs:
strategy:
matrix:
python-version:
- "3.8"
- "3.9"
- "3.10"
- "3.11"
# - "3.12"
igraph: ["igraph", "no-igraph"]
steps:
# This cancels any such job that is still runnning
Expand Down
3 changes: 2 additions & 1 deletion docs/source/whats_new.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ repository.
-
* - dev
- ongoing
- - Additions:
- - BREAKING: dropped support for Python 3.8, per `NEP 29 <https://numpy.org/neps/nep-0029-deprecation_policy.html>`_
- Additions:
- new property ``Treenode.surface_area``
- new functions :func:`navis.read_parquet` and :func:`navis.write_parquet`
store skeletons and dotprops in parquet files (see
Expand Down
5 changes: 3 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,15 +66,16 @@
'License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)',

'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
# 'Programming Language :: Python :: 3.12',
],
install_requires=install_requires,
extras_require=dict(extras_require),
tests_require=extras_require["dev"],
# CI runs against >=3.8
python_requires='>=3.8',
python_requires='>=3.9,<4.0',
zip_safe=False,

include_package_data=True
Expand Down

0 comments on commit 9a1956d

Please sign in to comment.