Skip to content

Commit

Permalink
fix scm version in workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
theOehrly committed Dec 27, 2023
1 parent 2456252 commit 8362396
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 14 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ jobs:
python-version: '3.9'

- name: Checkout repo
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0 # fetch the complete repo history (for setuptools-scm)

- name: Cache pip
uses: actions/cache@v3
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0 # fetch the complete repo history (for setuptools-scm)
- uses: actions/setup-python@v4
with:
python-version: '3.12'
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
python-version: ${{ matrix.python-version }}

- name: Checkout repo
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Cache pip
uses: actions/cache@v3
Expand Down Expand Up @@ -78,7 +78,7 @@ jobs:
python-version: '3.12'

- name: Checkout repo
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Cache pip
uses: actions/cache@v3
Expand Down Expand Up @@ -112,7 +112,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: '3.12'
Expand Down
11 changes: 3 additions & 8 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,14 @@

from datetime import datetime
import os.path
import re
import sys
import warnings

import plotly.io as pio
from plotly.io._sg_scraper import plotly_sg_scraper

import fastf1

sys.path.append(os.path.abspath('extensions'))


Expand All @@ -33,16 +34,10 @@

# -- Project information -----------------------------------------------------

# load version number from file in sources dir without importing
with open('../fastf1/version.py') as vfobj:
vstring = str(vfobj.read())
version = re.search(r"(\d+.\d+.\d+[-\w]*)", vstring)[0]


project = 'FastF1'
# copyright = 'MIT'
# author = 'Oehrly'
version = version
version = fastf1.__version__
release = version
copyright = f'{datetime.now().year}, theOehrly'
html_title = f"{project} <small>{release}</small>"
Expand Down
2 changes: 1 addition & 1 deletion fastf1/ergast/sphinx.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
import json
from typing import get_type_hints

from fastf1 import __version__
from fastf1.ergast.interface import ErgastResultFrame
import fastf1.ergast.structure
from fastf1.version import __version__


class ApiMappingDirective(Directive):
Expand Down

0 comments on commit 8362396

Please sign in to comment.