From 894f7e86c57b8d34d7907c32458c3e9ae4ea8da8 Mon Sep 17 00:00:00 2001 From: Michael Goerz Date: Mon, 3 Jun 2024 14:05:42 +0200 Subject: [PATCH] Bump version to 1.3.0+dev --- Makefile | 4 ++-- binder/environment.yml | 2 +- docs/09_examples.rst | 2 +- scripts/release.py | 2 ++ src/krotov/__init__.py | 2 +- 5 files changed, 7 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 807d5bbb..e5da591d 100644 --- a/Makefile +++ b/Makefile @@ -68,10 +68,10 @@ shell: ## Open a shell with all development tools hatch -e default shell upload: dist ## Package and upload a release to pypi.org - hatch publish + hatch run release:twine upload dist/* test-upload: dist ## Package and upload a release to test.pypi.org - hatch publish --repo test + hatch run release:twine upload --repository-url https://test.pypi.org/legacy/ dist/* release: ## Create a new version, package and upload it hatch -e release run -- python ./scripts/release.py diff --git a/binder/environment.yml b/binder/environment.yml index f06e46cd..b7ea980f 100644 --- a/binder/environment.yml +++ b/binder/environment.yml @@ -7,4 +7,4 @@ dependencies: - matplotlib - pip: - watermark - - krotov==1.3.0 \ No newline at end of file + - git+https://github.com/qucontrol/krotov.git@master#egg=krotov \ No newline at end of file diff --git a/docs/09_examples.rst b/docs/09_examples.rst index 56fcc8eb..f23ee7ff 100644 --- a/docs/09_examples.rst +++ b/docs/09_examples.rst @@ -6,7 +6,7 @@ Examples .. raw:: html - Render on nbviewer Launch Binder + Render on nbviewer Launch Binder .. toctree:: :maxdepth: 1 diff --git a/scripts/release.py b/scripts/release.py index 7ce5f9e6..14db7b40 100644 --- a/scripts/release.py +++ b/scripts/release.py @@ -116,6 +116,8 @@ def get_package_name(): for name in os.listdir('src'): if 'egg-info' in name: continue + if '__pycache__' in name: + continue if os.path.isdir(os.path.join('src', name)): return name raise ReleaseError("Cannot find package name") diff --git a/src/krotov/__init__.py b/src/krotov/__init__.py index 8f1c0666..b9f0040f 100644 --- a/src/krotov/__init__.py +++ b/src/krotov/__init__.py @@ -13,7 +13,7 @@ """ # fmt: off -__version__ = '1.3.0' +__version__ = '1.3.0+dev' __arxiv__ = '1902.11284'