Skip to content

Commit

Permalink
improves versioning setup
Browse files Browse the repository at this point in the history
  • Loading branch information
SandyRogers committed Jun 29, 2023
1 parent 0ad0de0 commit 89fbc23
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
1 change: 1 addition & 0 deletions emgcli/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
__version__: str = "2.4.23"
14 changes: 12 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
[project]
name = "emgcli"
version = "2.4.23"
readme = "README.md"
authors = [
{name = "MGnify team", email = "[email protected]"},
]
license = {file = "LICENSE"}
keywords = ["django", "api", "resource", "django-rest-framework", "jsonapi", "metagenomics"]
dynamic = ["version"]

dependencies = [
# deployment
Expand Down Expand Up @@ -58,6 +58,9 @@ requires-python = ">=3.8"
[tool.setuptools.packages]
find = {}

[tool.setuptools.dynamic]
version = {attr = "emgcli.__version__"}

[project.scripts]
emgcli = "emgcli.manage:main"
emgdeploy = "gunicorn.app.wsgiapp:run"
Expand All @@ -80,7 +83,8 @@ tests = [
dev = [
"django-debug-toolbar==3.8.1",
"django-extensions==3.2.1",
"django-grappelli==2.15.1"
"django-grappelli==2.15.1",
"bump-my-version==0.6.0",
]

admin = [
Expand Down Expand Up @@ -110,3 +114,9 @@ exclude =
max-complexity = 10
max-line-length = 119
"""

[tool.bumpversion]
current_version = "2.4.23"

[[tool.bumpversion.files]]
filename = "emgcli/__init__.py"

0 comments on commit 89fbc23

Please sign in to comment.