Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: "3.7"
python-version: "3.11"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand Down
9 changes: 4 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,18 @@ on: [push, pull_request]

jobs:
test:

runs-on: ${{ matrix.os }}

strategy:
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]

steps:
- uses: actions/checkout@v2
- name: Set up Python 3.7
uses: actions/setup-python@v2
- uses: actions/checkout@v4
- name: Set up Python 3.11
uses: actions/setup-python@v4
with:
python-version: 3.7
python-version: 3.11
- name: Install dependencies
run: |
pip install -r requirements.txt
Expand Down
2 changes: 1 addition & 1 deletion nttt/tidyup.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def revert_untranslatable_meta_elements(content, english_content):
parsed_md = yaml_parser.load(content)
english_parsed_md = yaml_parser.load(english_content)

translatable_keys = ["title", "description", "steps"]
translatable_keys = ["title", "description", "steps", "meta_title", "meta_description"]
for key in parsed_md:
if key not in translatable_keys and key in english_parsed_md:
parsed_md[key] = english_parsed_md[key]
Expand Down
5 changes: 3 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
numpy==1.26.4
eol==0.7.5
pandas==1.5.0
ruamel.yaml==0.17.21
pandas==2.2.0
ruamel.yaml==0.18.6
8 changes: 4 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
import setuptools

if sys.version_info[0] == 2:
raise ValueError('This package requires Python 3.7 or newer')
raise ValueError('This package requires Python 3.11 or newer')
elif sys.version_info[0] == 3:
if not sys.version_info >= (3, 7):
raise ValueError('This package requires Python 3.7 or newer')
if not sys.version_info >= (3, 11):
raise ValueError('This package requires Python 3.11 or newer')
else:
raise ValueError('Unrecognized major version of Python')

Expand Down Expand Up @@ -40,6 +40,6 @@
'eol',
'ruamel.yaml',
],
python_requires='>=3.7',
python_requires='>=3.11',
zip_safe=False
)