Skip to content

Commit

Permalink
Update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
ObserverOfTime committed Sep 28, 2024
1 parent 50140bb commit ea7ddc6
Show file tree
Hide file tree
Showing 7 changed files with 435 additions and 397 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Install Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Install Poetry
uses: abatilo/actions-poetry@v2.3.0
uses: abatilo/actions-poetry@v3
with:
poetry-version: 1.6.1
poetry-version: 1.8.3
- name: Deploy to PyPI
run: poetry publish --build
env:
Expand Down
18 changes: 10 additions & 8 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,30 +9,32 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python: ['3.10', '3.11']
python: ['3.10', '3.11', '3.12']
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Set up cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/.cache/pypoetry/virtualenvs
key: ${{runner.os}}-poetry-${{hashFiles('poetry.lock')}}
- name: Set up Python ${{matrix.python}}
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{matrix.python}}
- name: Install Poetry
uses: abatilo/actions-poetry@v2.3.0
uses: abatilo/actions-poetry@v3
with:
poetry-version: 1.6.1
poetry-version: 1.8.3
- name: Install dependencies
run: poetry install
- name: Lint project
run: >-
poetry run ruff yaenv &&
poetry run ruff check yaenv &&
poetry run mypy -p yaenv
- name: Run tests
run: poetry run pytest --cov-report=xml
- name: Upload coverage to codecov
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4
with:
token: ${{secrets.CODECOV_TOKEN}}
7 changes: 3 additions & 4 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,10 @@ build:
tools:
python: '3.10'
jobs:
post_create_environment:
- pip install poetry
- poetry config virtualenvs.create false
post_install:
- poetry install --with docs
- pip install --no-cache-dir poetry
- pip uninstall -y sphinx
- VIRTUAL_ENV=$READTHEDOCS_VIRTUALENV_PATH poetry install --with docs
sphinx:
builder: html
configuration: docs/conf.py
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (c) 2019-2023 ObserverOfTime
Copyright (c) 2019-2024 ObserverOfTime

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
Expand Down
19 changes: 14 additions & 5 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
# -- Project information -----------------------------------------------------

project = 'yaenv'
copyright = '2019-2023, ObserverOfTime, BSD 3-Clause License'
copyright = '2019-2024, ObserverOfTime, BSD 3-Clause License'
author = 'ObserverOfTime'

# The full version, including alpha/beta/rc tags
Expand Down Expand Up @@ -68,14 +68,16 @@
'_build', 'Thumbs.db', '.DS_Store', 'desktop.ini', '.directory'
]

source_suffix = '.rst'
source_suffix = {
'.rst': 'restructuredtext'
}

master_doc = 'index'

needs_sphinx = '6.2'
needs_sphinx = '7.4'

extlinks = {
'dj': ('https://docs.djangoproject.com/en/4.2/ref/settings/#%s', '%s'),
'dj': ('https://docs.djangoproject.com/en/5.1/ref/settings/#%s', '%s'),
'os': ('https://docs.python.org/3.10/library/os.html#os.%s', 'os.%s')
}

Expand All @@ -95,4 +97,11 @@
# Add any paths that contain custom static files (such as style sheets) here,
# relative to this directory. They are copied after the builtin static files,
# so a file named "default.css" will overwrite the builtin "default.css".
html_static_path = []
html_static_path: list[str] = []

# Define the canonical URL if you are using a custom domain on Read the Docs
html_baseurl = os.environ.get('READTHEDOCS_CANONICAL_URL', '')

# Tell Jinja2 templates the build is running on Read the Docs
if os.environ.get('READTHEDOCS', '') == 'True':
html_context = {'READTHEDOCS': True}
Loading

0 comments on commit ea7ddc6

Please sign in to comment.