From 302f2f9c58f7dc40407293835a22af5a20e875ff Mon Sep 17 00:00:00 2001 From: Adam Tyson Date: Tue, 13 Jul 2021 18:42:35 +0100 Subject: [PATCH] Release (#18) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Update setup.py * add bump2version config * Bump version: 0.0.1 → 0.0.2-rc0 --- brainreg_napari/__init__.py | 2 +- setup.cfg | 65 +++++++++++++++---------------------- setup.py | 12 +++++-- 3 files changed, 37 insertions(+), 42 deletions(-) diff --git a/brainreg_napari/__init__.py b/brainreg_napari/__init__.py index f102a9c..c1c4778 100644 --- a/brainreg_napari/__init__.py +++ b/brainreg_napari/__init__.py @@ -1 +1 @@ -__version__ = "0.0.1" +__version__ = "0.0.2-rc0" diff --git a/setup.cfg b/setup.cfg index d72a17c..542d4ea 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,42 +1,31 @@ -[metadata] -name = brainreg-napari -version = 0.0.1 -author = Stephen Lenzi -author_email = s.lenzi@ucl.ac.uk -license = MIT -url = https://github.com/brainglobe/brainreg-napari -description = A simple plugin for running and viewing brainreg results -long_description = file: README.md -long_description_content_type = text/markdown -classifiers = - Development Status :: 2 - Pre-Alpha - Intended Audience :: Developers - Framework :: napari - Topic :: Software Development :: Testing - Programming Language :: Python - Programming Language :: Python :: 3 - Programming Language :: Python :: 3.6 - Programming Language :: Python :: 3.7 - Programming Language :: Python :: 3.8 - Programming Language :: Python :: 3.9 - Operating System :: OS Independent - License :: OSI Approved :: MIT License -project_urls = - Bug Tracker = https://github.com/brainglobe/brainreg-napari/issues - Documentation = https://github.com/brainglobe/brainreg-napari#README.md - Source Code = https://github.com/brainglobe/brainreg-napari - User Support = https://forum.image.sc/tag/brainglobe +[bumpversion] +current_version = 0.0.2-rc0 +commit = True +tag = True +tag_name = {new_version} +parse = (?P\d+)\.(?P\d+)\.(?P\d+)(\-(?P[a-z]+)(?P\d+))? +serialize = + {major}.{minor}.{patch}-{release}{rc} + {major}.{minor}.{patch} -[options] -packages = find: -python_requires = >=3.6 +[bumpversion:part:release] +optional_value = prod +first_value = rc +values = + rc + prod -# add your package requirements here -install_requires = - napari-plugin-engine>=0.1.4 - numpy +[bumpversion:part:rc] +[bumpversion:file:setup.py] +search = version="{current_version}" +replace = version="{new_version}" -[options.entry_points] -napari.plugin = - brainreg-napari = brainreg_napari +[bumpversion:file:brainreg_napari/__init__.py] +search = __version__ = "{current_version}" +replace = __version__ = "{new_version}" + +[flake8] +ignore = E203, E231, W503, E722 +max-line-length = 79 +exclude = __init__.py,build,.eggs diff --git a/setup.py b/setup.py index 0821d3a..a36619f 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ setup( name="brainreg-napari", - version="0.0.1", + version="0.0.2-rc0", author="Stephen Lenzi, Adam Tyson", author_email="code@adamltyson.com", license="BSD-3-Clause", @@ -39,8 +39,14 @@ "check-manifest", ] }, - url="", - project_urls={}, + url="https://brainglobe.info", + project_urls={ + "Source Code": "https://github.com/brainglobe/brainreg-napari", + "Bug Tracker": "https://github.com/brainglobe/brainreg-napari/issues", + "Documentation": "https://docs.brainglobe.info/", + "User Support": "https://forum.image.sc/tag/brainglobe", + "Twitter": "https://twitter.com/brain_globe", + }, classifiers=[ "Development Status :: 4 - Beta", "Framework :: napari",