Skip to content

Commit ce09302

Browse files
authored
Upgrades version (#63)
* Adds bump-my-version * Removes citation from bump version * Adds setup.cfg to bump version tracking * Adds dist to gitignore * Facing a weird error with the fastapi version * Removes fastapi dependency * The problem seems to be pydantic * The problem is bump-my-version
1 parent b31d415 commit ce09302

File tree

5 files changed

+56
-7
lines changed

5 files changed

+56
-7
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ __pycache__/
1212
.tox/
1313
build/
1414
oracle/
15+
dist/
1516

1617
examples/05_optimizing_qed_using_latent_space_bo/VAESelfies_TINY-CID-SELFIES-20_latent_dim_2.pt
1718
examples/06_running_lambo2_on_rasp/directed_evolution_rasp*.npz

pyproject.toml

Lines changed: 52 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "poli-baselines"
7-
version = "0.0.1"
7+
version = "1.0.0"
88
description = "poli-baselines, a library of discrete objective optimizers"
99
readme = "README.md"
1010
authors = [{name="Miguel González-Duque", email="[email protected]"}]
@@ -30,6 +30,7 @@ dependencies = [
3030
"cma",
3131
"poli-core @ git+https://github.com/MachineLearningLifeScience/poli.git",
3232
]
33+
requires-python = ">=3.10"
3334

3435
[project.optional-dependencies]
3536
dev = ["black", "tox", "pytest"]
@@ -62,7 +63,7 @@ pr = [
6263
"statsmodels",
6364
"xgboost",
6465
"black",
65-
"bo_pr@git+https://github.com/miguelgondu/bo_pr.git@main"
66+
"bo_pr @ git+https://github.com/miguelgondu/bo_pr.git@main"
6667
]
6768
bounce = [
6869
"torch==2.0.0",
@@ -90,4 +91,52 @@ markers = [
9091
]
9192

9293
[tool.isort]
93-
profile = "black"
94+
profile = "black"
95+
96+
[tool.bumpversion]
97+
current_version = "1.0.0"
98+
parse = """(?x)
99+
(?P<major>0|[1-9]\\d*)\\.
100+
(?P<minor>0|[1-9]\\d*)\\.
101+
(?P<patch>0|[1-9]\\d*)
102+
(?:
103+
. # dash separator for pre-release section
104+
(?P<pre_l>[a-zA-Z-]+) # pre-release label
105+
(?P<pre_n>0|[1-9]\\d*) # pre-release version number
106+
)? # pre-release section is optional
107+
"""
108+
serialize = [
109+
"{major}.{minor}.{patch}.{pre_l}{pre_n}",
110+
"{major}.{minor}.{patch}",
111+
]
112+
search = 'current_version = "{current_version}"'
113+
replace = 'current_version = "{new_version}"'
114+
regex = false
115+
ignore_missing_version = false
116+
ignore_missing_files = false
117+
tag = false
118+
sign_tags = false
119+
tag_name = "v{new_version}"
120+
tag_message = "Bump version: {current_version} → {new_version}"
121+
allow_dirty = false
122+
commit = false
123+
message = "Bump version: {current_version} → {new_version}"
124+
commit_args = ""
125+
126+
[tool.bumpversion.parts.pre_l]
127+
values = ["dev"]
128+
129+
[[tool.bumpversion.files]]
130+
filename = "pyproject.toml"
131+
search = 'version = "{current_version}"'
132+
replace = 'version = "{new_version}"'
133+
134+
[[tool.bumpversion.files]]
135+
filename = "src/poli_baselines/__init__.py"
136+
search = '__version__ = "{current_version}"'
137+
replace = '__version__ = "{new_version}"'
138+
139+
[[tool.bumpversion.files]]
140+
filename = "setup.cfg"
141+
search = 'version = {current_version}'
142+
replace = 'version = {new_version}'

requirements.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,4 @@ poli-core @ git+https://github.com/MachineLearningLifeScience/poli.git
33
pymoo
44
torch
55
botorch
6-
cma
7-
mol_ga
6+
cma

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[metadata]
22
name = poli_baselines
3-
version = 0.0.1
3+
version = 1.0.0
44
author_email = [email protected]
55
description = Baselines for Discrete Sequence Optimization, focusing on proteins
66
long_description = file: readme.md

src/poli_baselines/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "0.0.1"
1+
__version__ = "1.0.0"

0 commit comments

Comments
 (0)