From 3a708b2f46deb2c3ca2cf64d245d67edf0357462 Mon Sep 17 00:00:00 2001 From: seanzhangkx8 <106214464+seanzhangkx8@users.noreply.github.com> Date: Mon, 4 Nov 2024 17:13:21 -0500 Subject: [PATCH] Towards Newer Version of Python (#235) --- .github/workflows/continuous-integration.yml | 2 +- README.md | 4 ++-- docs/source/troubleshooting.rst | 4 ++-- setup.py | 3 ++- 4 files changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index c49c2e63..0fb5db5d 100644 --- a/.github/workflows/continuous-integration.yml +++ b/.github/workflows/continuous-integration.yml @@ -7,7 +7,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: [3.7, 3.8, 3.9, '3.10'] + python-version: [3.9, '3.10', '3.11', '3.12'] mongodb-version: [5.0.2] steps: diff --git a/README.md b/README.md index cf8f06fb..d1adc214 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ [![pypi](https://img.shields.io/pypi/v/convokit.svg)](https://pypi.org/pypi/convokit/) -[![py\_versions](https://img.shields.io/badge/python-3.8%2B-blue)](https://pypi.org/pypi/convokit/) +[![py\_versions](https://img.shields.io/badge/python-3.9%2B-blue)](https://pypi.org/pypi/convokit/) [![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black) [![license](https://img.shields.io/badge/license-MIT-green)](https://github.com/CornellNLP/ConvoKit/blob/master/LICENSE.md) [![Discord Community](https://img.shields.io/static/v1?logo=discord&style=flat&color=red&label=discord&message=community)](https://discord.gg/WMFqMWgz6P) @@ -180,7 +180,7 @@ Name for download: `spolin-corpus` In addition to the provided datasets, you may also use ConvoKit with your own custom datasets by loading them into a `convokit.Corpus` object. [This example script](https://github.com/CornellNLP/ConvoKit/blob/master/examples/converting_movie_corpus.ipynb) shows how to construct a Corpus from custom data. ## Installation -This toolkit requires Python >= 3.8. +This toolkit requires Python >= 3.9. 1. Download the toolkit: `pip3 install convokit` 2. Download Spacy's English model: `python3 -m spacy download en` diff --git a/docs/source/troubleshooting.rst b/docs/source/troubleshooting.rst index 61ee8ec7..b475fcb0 100644 --- a/docs/source/troubleshooting.rst +++ b/docs/source/troubleshooting.rst @@ -65,9 +65,9 @@ The two recommended fixes are to run: and if that doesn't fix the issue, then run: ->>> open /Applications/Python\ 3.8/Install\ Certificates.command +>>> open /Applications/Python\ 3.9/Install\ Certificates.command -(Substitute 3.8 in the above command with your current Python version (e.g. 3.9 or 3.10) if necessary.) +(Substitute 3.9 in the above command with your current Python version (e.g. 3.10 or 3.11 or 3.12) if necessary.) Immutability of Metadata Fields ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/setup.py b/setup.py index ca7ed562..259a1121 100644 --- a/setup.py +++ b/setup.py @@ -62,8 +62,9 @@ }, classifiers=[ "Programming Language :: Python", - "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", ], )