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
10 changes: 5 additions & 5 deletions .github/workflows/build_docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,23 +12,23 @@ on:
jobs:
build:

runs-on: ubuntu-latest
runs-on: ubuntu-26.04

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v7
with:
ssh-key: "${{ secrets.NIPREPS_BOT }}"
- name: Fetch all tags (for setuptools_scm to work)
if: github.ref == 'refs/heads/master'
run: |
/usr/bin/git -c protocol.version=2 fetch --tags --prune --unshallow origin
- name: Set up Python
uses: actions/setup-python@v1
uses: actions/setup-python@v7
with:
python-version: 3.7
python-version: '3.12'
- name: Build in confined environment and interpolate version
run: |
python -m pip install -U pip "setuptools >= 42.0" "setuptools_scm[toml] >= 3.4"
python -m pip install -U pip "setuptools >= 42.0" "setuptools_scm[toml] >= 8"
python setup.py --version
python -m pip install -r docs/requirements.txt
make -C docs/ html
14 changes: 7 additions & 7 deletions .github/workflows/pythonapp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,28 +12,28 @@ on:
jobs:
build:

runs-on: ubuntu-latest
runs-on: ubuntu-26.04
strategy:
matrix:
python-version: [3.7, 3.8, 3.9]
python-version: ['3.10', '3.11', '3.12']

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v7
with:
ssh-key: "${{ secrets.NIPREPS_BOT }}"
- name: Fetch all tags (for setuptools_scm to work)
if: github.ref == 'refs/heads/master'
run: |
/usr/bin/git -c protocol.version=2 fetch --tags --prune --unshallow origin
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
uses: actions/setup-python@v7
with:
python-version: ${{ matrix.python-version }}
- name: Build in confined environment and interpolate version
run: |
python -m venv /tmp/buildenv
source /tmp/buildenv/bin/activate
python -m pip install "setuptools ~= 42.0" wheel "setuptools_scm[toml] >= 3.4" \
python -m pip install "setuptools >= 64" wheel "setuptools_scm[toml] >= 8" \
setuptools_scm_git_archive "pip>=10.0.1" twine docutils
python setup.py sdist bdist_wheel
python -m twine check dist/tfmanager*
Expand All @@ -49,7 +49,7 @@ jobs:
run: |
python -m venv /tmp/install_sdist
source /tmp/install_sdist/bin/activate
python -m pip install "setuptools ~= 42.0" "pip>=10.0.1"
python -m pip install "setuptools >= 64" "pip>=10.0.1"
python -m pip install dist/tfmanager*.tar.gz
INSTALLED_VERSION=$( tfmgr --version )
INSTALLED_VERSION=${INSTALLED_VERSION##* }
Expand All @@ -61,7 +61,7 @@ jobs:
python -m venv /tmp/install_wheel
source /tmp/install_wheel/bin/activate
# CRUCIAL: pip does not install console scripts from wheels before 20.1b1
python -m pip install "setuptools ~= 42.0" "pip>=20.1b1"
python -m pip install "setuptools >= 64" "pip>=20.1b1"
python -m pip install dist/tfmanager*.whl
INSTALLED_VERSION=$( tfmgr --version )
INSTALLED_VERSION=${INSTALLED_VERSION##* }
Expand Down
13 changes: 13 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
Unreleased
==========
Farewell to OSF: OSF no longer accepts uploads, and the TemplateFlow submission
pipeline now stores the data of new templates on GIN (https://gin.g-node.org).

* ``tfmgr add`` creates a GIN sibling (``--gin-token`` / ``GIN_TOKEN``), publishes it
as the dataset's common data source (``gin-src``), and pushes the data there before
publishing the dataset on GitHub. The OSF options are gone.
* The OSF-only commands ``push``, ``get`` and ``geturls`` are removed, together with
the ``datalad-osf`` and ``osfclient`` dependencies.
* ``pkg_resources`` (removed from recent setuptools) is replaced by ``importlib``.
* CI runs on pinned ``ubuntu-26.04`` runners with Python 3.10 to 3.12.

20.0.0a0 (April 24, 2020)
=========================
First Alpha release.
8 changes: 3 additions & 5 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"sphinx.ext.viewcode",
"sphinx_click.ext",
"sphinxcontrib.apidoc",
"sphinxcontrib.napoleon",
"sphinx.ext.napoleon",
]

autodoc_mock_imports = [
Expand All @@ -54,9 +54,7 @@
]

# Accept custom section names to be parsed for numpy-style docstrings
# of parameters.
# Requires pinning sphinxcontrib-napoleon to a specific commit while
# https://github.com/sphinx-contrib/napoleon/pull/10 is merged.
# of parameters (supported by Sphinx's built-in napoleon).
napoleon_use_param = False
napoleon_custom_sections = [
("Inputs", "Parameters"),
Expand Down Expand Up @@ -216,7 +214,7 @@
# -- Options for intersphinx extension ---------------------------------------

# Example configuration for intersphinx: refer to the Python standard library.
intersphinx_mapping = {"https://docs.python.org/": None}
intersphinx_mapping = {"python": ("https://docs.python.org/3", None)}

# -- Options for versioning extension ----------------------------------------
scv_show_banner = True
2 changes: 0 additions & 2 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
git+https://github.com/AleksandarPetrov/napoleon.git@0dc3f28a309ad602be5f44a9049785a1026451b3#egg=sphinxcontrib-napoleon
git+https://github.com/rwblair/sphinxcontrib-versioning.git@39b40b0b84bf872fc398feff05344051bbce0f63#egg=sphinxcontrib-versioning
nbsphinx
packaging
pydot>=1.2.3
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[build-system]
requires = ["setuptools >= 42.0", "wheel", "setuptools_scm[toml] >= 3.4"]
requires = ["setuptools >= 64", "wheel", "setuptools_scm[toml] >= 8"]

[tool.setuptools_scm]
write_to = "tfmanager/_version.py"
Expand Down
20 changes: 9 additions & 11 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ classifiers =
Intended Audience :: Science/Research
Topic :: Scientific/Engineering :: Image Recognition
License :: OSI Approved :: BSD License
Programming Language :: Python :: 3.7
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
Programming Language :: Python :: 3.10
Programming Language :: Python :: 3.11
Programming Language :: Python :: 3.12
description = TemplateFlow Manager eases the process of contributing to the Archive
license = Apache-2.0
long_description = file:README.rst
Expand All @@ -19,16 +19,16 @@ project_urls =
url = https://github.com/templateflow/python-manager

[options]
python_requires = >= 3.7
python_requires = >= 3.10
setup_requires =
setuptools >= 42.0
setuptools_scm >= 3.4
setuptools >= 64
setuptools_scm >= 8
toml
install_requires =
click
datalad >= 0.14
datalad_osf >= 0.2
osfclient
datalad >= 0.16
nibabel
numpy
templateflow >= 0.4.2
toml
packages = find:
Expand Down Expand Up @@ -56,8 +56,6 @@ doc =
sphinx_rtd_theme
sphinx-click
sphinxcontrib-apidoc ~= 0.3.0
sphinxcontrib-napoleon
sphinxcontrib-versioning
docs =
%(doc)s

Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
extra_args = {}
if "bdist_wheel" in sys.argv:
extra_args["setup_requires"] = [
"setuptools >= 42.0",
"setuptools >= 64",
"wheel",
"setuptools_scm[toml] >= 3.4",
"setuptools_scm[toml] >= 8",
]
setup(**extra_args)
10 changes: 5 additions & 5 deletions tfmanager/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@
try:
from ._version import __version__
except ModuleNotFoundError:
from pkg_resources import get_distribution, DistributionNotFound
from importlib.metadata import PackageNotFoundError, version

try:
__version__ = get_distribution(__packagename__).version
except DistributionNotFound:
__version__ = version(__packagename__)
except PackageNotFoundError:
__version__ = "unknown"
del get_distribution
del DistributionNotFound
del version
del PackageNotFoundError

__all__ = [
"__copyright__",
Expand Down
Loading