Skip to content

Commit

Permalink
Update xcookie with cp312
Browse files Browse the repository at this point in the history
  • Loading branch information
Erotemic committed Nov 2, 2023
1 parent 075b5c4 commit 2f7aa28
Show file tree
Hide file tree
Showing 3 changed files with 72 additions and 31 deletions.
60 changes: 36 additions & 24 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout source
uses: actions/checkout@v3
- name: Set up Python 3.11 for linting
uses: actions/setup-python@v4.6.1
uses: actions/checkout@v4
- name: Set up Python 3.12 for linting
uses: actions/setup-python@v4.7.1
with:
python-version: '3.11'
python-version: '3.12'
- name: Install dependencies
run: |-
python -m pip install --upgrade pip
Expand All @@ -48,11 +48,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout source
uses: actions/checkout@v3
- name: Set up Python 3.11
uses: actions/setup-python@v4.6.1
uses: actions/checkout@v4
- name: Set up Python 3.12
uses: actions/setup-python@v4.7.1
with:
python-version: '3.11'
python-version: '3.12'
- name: Upgrade pip
run: |-
python -m pip install --upgrade pip
Expand Down Expand Up @@ -127,17 +127,17 @@ jobs:
- auto
steps:
- name: Checkout source
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Enable MSVC 64bit
uses: ilammy/msvc-dev-cmd@v1
if: matrix.os == 'windows-latest' && ${{ contains(matrix.cibw_skip, '*-win32') }}
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
uses: docker/setup-qemu-action@v3
if: runner.os == 'Linux' && matrix.arch != 'auto'
with:
platforms: all
- name: Build binary wheels
uses: pypa/cibuildwheel@v2.13.1
uses: pypa/cibuildwheel@v2.16.2
with:
output-dir: wheelhouse
config-file: pyproject.toml
Expand All @@ -147,11 +147,11 @@ jobs:
- name: Show built files
shell: bash
run: ls -la wheelhouse
- name: Set up Python 3.11 to combine coverage
uses: actions/setup-python@v4.6.1
- name: Set up Python 3.12 to combine coverage
uses: actions/setup-python@v4.7.1
if: runner.os == 'Linux'
with:
python-version: '3.11'
python-version: '3.12'
- name: Combine coverage Linux
if: runner.os == 'Linux'
run: |-
Expand Down Expand Up @@ -203,23 +203,23 @@ jobs:
install-extras: tests-strict,runtime-strict
os: windows-latest
arch: auto
- python-version: '3.11'
- python-version: '3.12'
install-extras: tests-strict,runtime-strict,optional-strict
os: ubuntu-latest
arch: auto
- python-version: '3.11'
- python-version: '3.12'
install-extras: tests-strict,runtime-strict,optional-strict
os: macOS-latest
arch: auto
- python-version: '3.11'
- python-version: '3.12'
install-extras: tests-strict,runtime-strict,optional-strict
os: windows-latest
arch: auto
- python-version: '3.11'
- python-version: '3.12'
install-extras: tests
os: windows-latest
arch: auto
- python-version: '3.11'
- python-version: '3.12'
install-extras: tests
os: windows-latest
arch: auto
Expand Down Expand Up @@ -247,6 +247,10 @@ jobs:
install-extras: tests,optional
os: windows-latest
arch: auto
- python-version: '3.12'
install-extras: tests,optional
os: windows-latest
arch: auto
- python-version: '3.6'
install-extras: tests,optional
os: windows-latest
Expand All @@ -271,6 +275,10 @@ jobs:
install-extras: tests,optional
os: windows-latest
arch: auto
- python-version: '3.12'
install-extras: tests,optional
os: windows-latest
arch: auto
- python-version: '3.6'
install-extras: tests,optional
os: windows-latest
Expand All @@ -295,19 +303,23 @@ jobs:
install-extras: tests,optional
os: windows-latest
arch: auto
- python-version: '3.12'
install-extras: tests,optional
os: windows-latest
arch: auto
steps:
- name: Checkout source
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Enable MSVC 64bit
uses: ilammy/msvc-dev-cmd@v1
if: matrix.os == 'windows-latest'
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
uses: docker/setup-qemu-action@v3
if: runner.os == 'Linux' && matrix.arch != 'auto'
with:
platforms: all
- name: Setup Python
uses: actions/setup-python@v4.6.1
uses: actions/setup-python@v4.7.1
with:
python-version: ${{ matrix.python-version }}
- uses: actions/download-artifact@v3
Expand Down Expand Up @@ -388,7 +400,7 @@ jobs:
- test_binpy_wheels
steps:
- name: Checkout source
uses: actions/checkout@v3
uses: actions/checkout@v4
- uses: actions/download-artifact@v3
name: Download wheels and sdist
with:
Expand Down Expand Up @@ -432,7 +444,7 @@ jobs:
- test_binpy_wheels
steps:
- name: Checkout source
uses: actions/checkout@v3
uses: actions/checkout@v4
- uses: actions/download-artifact@v3
name: Download wheels and sdist
with:
Expand Down
5 changes: 4 additions & 1 deletion .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,14 @@

# Required
version: 2
build:
os: "ubuntu-22.04"
tools:
python: "3.11"
sphinx:
configuration: docs/source/conf.py
formats: all
python:
version: 3.7
install:
- requirements: requirements/docs.txt
- method: pip
Expand Down
38 changes: 32 additions & 6 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
https://docs.readthedocs.io/en/stable/guides/autobuild-docs-for-pull-requests.html
https://readthedocs.org/dashboard/kernprof/advanced/
https://readthedocs.org/dashboard/line-profiler/advanced/
ensure your github account is connected to readthedocs
https://readthedocs.org/accounts/social/connections/
Expand All @@ -45,11 +45,13 @@
Set the Repository NAME: line_profiler
Set the Repository URL: https://github.com/pyutils/line_profiler
For gitlab you also need to setup an integrations and add gitlab
incoming webhook
For gitlab you also need to setup an integrations. Navigate to:
https://readthedocs.org/dashboard/line-profiler/integrations/create/
Then add gitlab incoming webhook and copy the URL (make sure
you copy the real url and not the text so https is included).
Then go to
https://github.com/pyutils/line_profiler/hooks
Expand Down Expand Up @@ -112,7 +114,7 @@ def visit_Assign(self, node):
author = 'Robert Kern'
modname = 'line_profiler'

modpath = join(dirname(dirname(dirname(__file__))), modname, '__init__.py')
modpath = join(dirname(dirname(dirname(__file__))), 'line_profiler', '__init__.py')
release = parse_version(modpath)
version = '.'.join(release.split('.')[0:2])

Expand All @@ -127,13 +129,18 @@ def visit_Assign(self, node):
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
# ones.
extensions = [
# 'autoapi.extension',
'sphinx.ext.autodoc',
'sphinx.ext.autosummary',
'sphinx.ext.intersphinx',
'sphinx.ext.napoleon',
'sphinx.ext.todo',
'sphinx.ext.viewcode',
# 'myst_parser', # TODO

'sphinx.ext.githubpages',
# 'sphinxcontrib.redirects',
'sphinx_reredirects',
]

todo_include_todos = True
Expand All @@ -147,6 +154,15 @@ def visit_Assign(self, node):
autoclass_content = 'both'
# autodoc_mock_imports = ['torch', 'torchvision', 'visdom']

# autoapi_modules = {
# modname: {
# 'override': False,
# 'output': 'auto'
# }
# }
# autoapi_dirs = [f'../../src/{modname}']
# autoapi_keep_files = True

intersphinx_mapping = {
# 'pytorch': ('http://pytorch.org/docs/master/', None),
'python': ('https://docs.python.org/3', None),
Expand All @@ -163,9 +179,14 @@ def visit_Assign(self, node):
'xdoctest': ('https://xdoctest.readthedocs.io/en/latest/', None),
'networkx': ('https://networkx.org/documentation/stable/', None),
'scriptconfig': ('https://scriptconfig.readthedocs.io/en/latest/', None),
'xdev': ('https://xdev.readthedocs.io/en/latest/', None),
'rich': ('https://rich.readthedocs.io/en/latest/', None),

'pytest': ('https://docs.pytest.org/en/latest/', None),
# 'pytest._pytest.doctest': ('https://docs.pytest.org/en/latest/_modules/_pytest/doctest.html', None),
# 'colorama': ('https://pypi.org/project/colorama/', None),
# 'numpy': ('http://docs.scipy.org/doc/numpy/', None),
# 'cv2' : ('http://docs.opencv.org/2.4/', None),
# 'h5py' : ('http://docs.h5py.org/en/latest/', None)
}
__dev_note__ = """
python -m sphinx.ext.intersphinx https://docs.python.org/3/objects.inv
Expand All @@ -175,6 +196,11 @@ def visit_Assign(self, node):
python -m sphinx.ext.intersphinx https://kwimage.readthedocs.io/en/latest/objects.inv
python -m sphinx.ext.intersphinx https://ubelt.readthedocs.io/en/latest/objects.inv
python -m sphinx.ext.intersphinx https://networkx.org/documentation/stable/objects.inv
sphobjinv suggest -t 90 -u https://readthedocs.org/projects/pytest/reference/objects.inv
"signal.convolve2d"
python -m sphinx.ext.intersphinx https://pygments-doc.readthedocs.io/en/latest/objects.inv
"""


Expand Down Expand Up @@ -244,7 +270,7 @@ def visit_Assign(self, node):
# -- Options for HTMLHelp output ---------------------------------------------

# Output file base name for HTML help builder.
htmlhelp_basename = 'line_profilerdoc'
htmlhelp_basename = project + 'doc'


# -- Options for LaTeX output ------------------------------------------------
Expand Down

0 comments on commit 2f7aa28

Please sign in to comment.