Skip to content

Commit

Permalink
remove versioneer (#615)
Browse files Browse the repository at this point in the history
remove versioneer to more closely follow RAPIDS conventions

Authors:
  - Gregory Lee (https://github.com/grlee77)

Approvers:
  - Ray Douglass (https://github.com/raydouglass)
  - Gigon Bae (https://github.com/gigony)

URL: #615
  • Loading branch information
grlee77 authored Oct 26, 2023
1 parent 5310870 commit 2492a48
Show file tree
Hide file tree
Showing 7 changed files with 4 additions and 2,363 deletions.
1 change: 1 addition & 0 deletions ci/release/update-version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ sed_runner 's/release = .*/release = '"'${NEXT_FULL_TAG}'"'/g' docs/source/conf.

sed_runner "s/${CURRENT_LONG_TAG}/${NEXT_FULL_TAG}/g" VERSION
sed_runner "s/${CURRENT_LONG_TAG}/${NEXT_FULL_TAG}/g" python/cucim/VERSION
sed_runner "s/__version__ = .*/__version__ = \"${NEXT_FULL_TAG}\"/g" python/cucim/src/cucim/__init__.pyi
sed_runner "s/${CURRENT_LONG_TAG}/${NEXT_FULL_TAG}/g" cpp/plugins/cucim.kit.cuslide/VERSION
sed_runner "s/${CURRENT_LONG_TAG}/${NEXT_FULL_TAG}/g" cpp/plugins/cucim.kit.cumed/VERSION
sed_runner "s#\[Version ${CURRENT_LONG_TAG}\](release_notes/v${CURRENT_LONG_TAG}.md)#\[Version ${NEXT_FULL_TAG}\](release_notes/v${NEXT_FULL_TAG}.md)#g" python/cucim/docs/index.md
Expand Down
1 change: 0 additions & 1 deletion python/cucim/MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ include README.md

include tox.ini .travis.yml .appveyor.yml .readthedocs.yml

include versioneer.py
include src/cucim/clara/*.so*

recursive-include src/cucim *.py *.pyi *.cu *.h *.npy *.txt *.md
Expand Down
11 changes: 1 addition & 10 deletions python/cucim/setup.cfg
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
[versioneer]
VCS = git
style = pep440
versionfile_source = src/cucim/_version.py
versionfile_build = cucim/_version.py
tag_prefix = v
parentdir_prefix = cucim-

[bdist_wheel]
universal = 0

Expand All @@ -26,7 +18,6 @@ ignore =
exclude = .tox,.eggs,ci/templates,build,dist,.git,__pycache__,doc/conf.py,doc/sphinxext,build,dist,__init__.py
per-file-ignores =
setup.py:F821
versioneer.py:W605
src/localtest.py:E127
src/cucim/skimage/__init__.py:F401
src/cucim/skimage/measure/tests/test_block.py:E201,E202,E241
Expand Down Expand Up @@ -65,6 +56,6 @@ line_length = 80
known_first_party = cucim
default_section = THIRDPARTY
forced_separate = test_cucim
skip = .tox,.eggs,ci/templates,build,dist,versioneer.py,ndimage.py
skip = .tox,.eggs,ci/templates,build,dist,ndimage.py
sections = FUTURE,STDLIB,THIRDPARTY,FIRSTPARTY,LOCALFOLDER
multi_line_output = GRID
4 changes: 1 addition & 3 deletions python/cucim/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import sys
from os.path import dirname, join

import versioneer
from setuptools import find_packages, setup

# Give setuptools a hint to complain if it's too old a version
Expand All @@ -26,8 +25,7 @@ def read(*names, **kwargs):

opts = dict(
name='cucim',
version=read('VERSION').strip(), # versioneer.get_version(),
cmdclass=versioneer.get_cmdclass(),
version=read('VERSION').strip(),
license='Apache-2.0',
description='cuCIM - an extensible toolkit designed to provide GPU accelerated I/O, computer vision & image processing primitives for N-Dimensional images with a focus on biomedical imaging.', # noqa
long_description='%s\n%s' % (
Expand Down
5 changes: 1 addition & 4 deletions python/cucim/src/cucim/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,6 @@ try:
_is_clara_available = True
submodules += ['clara']
except ImportError:
from ._version import get_versions
__version__ = get_versions()['version']
del get_versions
del _version
__version__ = "23.12.00"

__all__ = submodules + ['__version__', 'is_available']
Loading

0 comments on commit 2492a48

Please sign in to comment.