Skip to content

Commit

Permalink
chore: upgrade to python3.11 (#78)
Browse files Browse the repository at this point in the history
There is one dependency (pyscss) that doesn't support 3.11 at the
moment. To work around it, we'll use the GitHub repo at the
SHA that the bug was fixed.
  • Loading branch information
toumorokoshi authored May 15, 2023
1 parent 9c27871 commit a9b6e5a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
jobs:
tests:
runs-on: ubuntu-latest
container: python:3.10
container: python:3.11
steps:
- uses: actions/checkout@v3
- name: Install package.
Expand All @@ -17,7 +17,7 @@ jobs:
run: pytest
build:
runs-on: ubuntu-latest
container: python:3.10
container: python:3.11
steps:
- uses: actions/checkout@v3
- name: Install package.
Expand All @@ -26,7 +26,7 @@ jobs:
run: aip-site-gen tests/test_data/ /out/
lint:
runs-on: ubuntu-latest
container: python:3.10
container: python:3.11
steps:
- uses: actions/checkout@v3
- name: Install the linter (flake8).
Expand All @@ -35,7 +35,7 @@ jobs:
run: flake8 aip_site/ tests/
mypy:
runs-on: ubuntu-latest
container: python:3.10
container: python:3.11
steps:
- uses: actions/checkout@v3
- name: Install package.
Expand Down
12 changes: 7 additions & 5 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# Licensed under the Apache License, Version 2.0 (the 'License');
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# distributed under the License is distributed on an 'AS IS' BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
Expand Down Expand Up @@ -37,10 +37,10 @@
description='Static site generator for aip.dev and forks.',
long_description=long_description,
long_description_content_type='text/markdown',
entry_points="""[console_scripts]
entry_points='''[console_scripts]
aip-site-gen=aip_site.cli:publish
aip-site-serve=aip_site.cli:serve
""",
''',
platforms='Posix; MacOS X',
include_package_data=True,
install_requires=(
Expand All @@ -52,7 +52,9 @@
'markupsafe==2.1.1',
'pygments==2.13.0',
'pymdown-extensions==9.7',
'pyscss==1.4.0',
# pinning via GitHub release until https://github.com/Kronuz/pyScss/pull/426
# is released on PyPi.
'pyscss @ git+https://github.com/Kronuz/pyScss.git@73559d047706ccd4593cf6aa092de71f35164723',
'pyyaml==6.0',
'six==1.16.0',
'types-Markdown==3.4.2.1',
Expand Down

0 comments on commit a9b6e5a

Please sign in to comment.