Skip to content

Commit

Permalink
3.12.0
Browse files Browse the repository at this point in the history
  • Loading branch information
dtamayo committed Oct 25, 2023
1 parent ab19392 commit eea28f0
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 10 deletions.
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.. image:: https://img.shields.io/badge/REBOUNDx-v3.11.3-green.svg?style=flat
.. image:: https://img.shields.io/badge/REBOUNDx-v3.12.0-green.svg?style=flat
:target: https://reboundx.readthedocs.org
.. image:: https://badge.fury.io/py/reboundx.svg
:target: https://badge.fury.io/py/reboundx
Expand Down
4 changes: 2 additions & 2 deletions doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,9 +200,9 @@ def cleanline(line):
# built documents.
#
# The short X.Y version.
version = '3.11'
version = '3.12'
# The full version, including alpha/beta/rc tags.
release = '3.11.3'
release = '3.12.0'

# General information about the project.
project = u"REBOUNDx ({0})".format(release)
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
ghash = subprocess.check_output(["git", "rev-parse", "HEAD"]).decode("ascii")
ghash_arg = "-DREBXGITHASH="+ghash.strip()
except:
ghash_arg = "-DREBXGITHASH=3c460422864a7a908bec421a53cf532c090a6ffe" #GITHASHAUTOUPDATE
ghash_arg = "-DREBXGITHASH=ab19392285fdb802ce1b8c78e9bac8678c47bd9f" #GITHASHAUTOUPDATE

class build_ext(_build_ext):
def finalize_options(self):
Expand Down Expand Up @@ -86,7 +86,7 @@ def finalize_options(self):
long_description = f.read()

setup(name='reboundx',
version='3.11.3',
version='3.12.0',
description='A library for including additional forces in REBOUND',
long_description=long_description,
url='https://github.com/dtamayo/reboundx',
Expand Down
2 changes: 1 addition & 1 deletion src/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
#define str(s) #s

const char* rebx_build_str = __DATE__ " " __TIME__; // Date and time build string.
const char* rebx_version_str = "3.11.3"; // **VERSIONLINE** This line gets updated automatically. Do not edit manually.
const char* rebx_version_str = "3.12.0"; // **VERSIONLINE** This line gets updated automatically. Do not edit manually.
const char* rebx_githash_str = STRINGIFY(REBXGITHASH); // This line gets updated automatically. Do not edit manually.


Expand Down
28 changes: 25 additions & 3 deletions update_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,33 @@
with open("doc/conf.py", "w") as f:
f.writelines(conflines)

# find changelog
with open("changelog.md") as f:
found_start = 0
changelog = ""
cl = f.readlines()
for l in cl:
if found_start == 0 and l.startswith("### Version"):
if reboundxversion in l:
found_start = 1
continue
if found_start == 1 and l.startswith("### Version"):
found_start = 2
if found_start == 1:
changelog += l

if found_start != 2 or len(changelog.strip())<5:
raise RuntimeError("Changelog not found")

with open("_changelog.tmp", "w") as f:
f.writelines(changelog.strip()+"\n")


print("----")
print("Changelog:\n")
print(changelog.strip())
print("----")
print("Next:")
print("\ngit commit -a -m \""+reboundversion+"\"")
print("git tag "+reboundversion+" && git push --tags")
print("gh release create "+reboundversion+" --notes-file _changelog.tmp")
print("\ngit commit -a -m \""+reboundxversion+"\"")
print("git tag "+reboundxversion+" && git push --tags")
print("gh release create "+reboundxversion+" --notes-file _changelog.tmp")
2 changes: 1 addition & 1 deletion version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.11.3
3.12.0

0 comments on commit eea28f0

Please sign in to comment.