Skip to content

Commit

Permalink
Upgrade to python 3.8 min (mne-tools#140)
Browse files Browse the repository at this point in the history
* Upgrade to python3.8 min

Signed-off-by: Adam Li <adam2392@gmail.com>

* Upgrade to python3.8 min

Signed-off-by: Adam Li <adam2392@gmail.com>

---------

Signed-off-by: Adam Li <adam2392@gmail.com>
  • Loading branch information
adam2392 committed Jul 14, 2023
1 parent 8a80033 commit 95f2f31
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 3 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/publish_release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: PyPi Release

on:
release:
types:
- published

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.10

- name: Checkout code
uses: actions/checkout@v2

- name: Install dependencies
run: |
pip install -r requirements.txt
pip install twine wheel
- name: Build and publish to PyPi
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
python setup.py sdist bdist_wheel
python -m twine upload --repository pypi dist/*
2 changes: 1 addition & 1 deletion doc/install.rst
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ simply run the following at the root of the repository:

.. code-block:: bash
# with python>=3.7 at least
# with python>=3.8 at least
conda create -n mne
conda activate mne
conda install -c conda-forge mne-connectivity
Expand Down
5 changes: 3 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,10 @@
'Operating System :: POSIX',
'Operating System :: Unix',
'Operating System :: MacOS',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
]
EXTRAS_REQUIRE = {
'optional': [
Expand Down Expand Up @@ -79,6 +80,6 @@
zip_safe=False, # the package can run out of an .egg file
classifiers=CLASSIFIERS,
packages=find_packages(),
python_requires='>=3.7',
python_requires='>=3.8',
install_requires=INSTALL_REQUIRES,
extras_require=EXTRAS_REQUIRE)

0 comments on commit 95f2f31

Please sign in to comment.