Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove bumpversion and use bump-my-version #90

Merged
merged 10 commits into from
Mar 5, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 0 additions & 12 deletions MANIFEST.in

This file was deleted.

41 changes: 25 additions & 16 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ classifiers = [
'Topic :: Scientific/Engineering :: Artificial Intelligence',
]
keywords = ['deepecho', 'DeepEcho']
dynamic = ["version"]
version = '0.5.1.dev0'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's follow what we did with Copulas:

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes I was not sure, I checked with @amontanez24. Done in b1fa699

license = { text = 'BSL-1.1' }
requires-python = '>=3.8,<3.12'
readme = 'README.md'
Expand Down Expand Up @@ -103,27 +103,29 @@ namespaces = false

[tool.setuptools.package-data]
"*" = [
'*.txt',
'AUTHORS.rst',
'CONTRIBUTING.rst',
'HISTORY.md',
'LICENSE',
'README.md',
'deepecho/data/demo.csv',
'*.md',
'*.rst',
'README.md',
'docs/*',
'conf.py',
'Makefile',
'make.bat',
'*.jpg',
'*.png',
'*.gif',
'*.gif'
]
"tests" = ["*"]

[tool.setuptools.exclude-package-data]
"*" = [
'* __pycache__',
'*.py[co]',
]

[tool.setuptools.dynamic]
version = {attr = 'deepecho.__version__'}

[tool.isort]
include_trailing_comment = true
line_length = 99
Expand All @@ -136,11 +138,11 @@ use_parentheses = true
collect_ignore = ['pyproject.toml']

[tool.bumpversion]
current_version = '0.5.1'
parse = '(?P<major>\\d+)\\.(?P<minor>\\d+)\\.(?P<patch>\\d+)'
current_version = '0.5.1.dev0'
parse = '(?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)(\.(?P<release>[a-z]+)(?P<candidate>\d+))?'
serialize = [
'{major}.{minor}.{patch}-{release}{candidate}',
'{major}.{minor}.{patch}'
'{major}.{minor}.{patch}.{release}{candidate}',
'{major}.{minor}.{patch}'
]
search = '{current_version}'
replace = '{new_version}'
Expand All @@ -156,15 +158,22 @@ message = 'Bump version: {current_version} → {new_version}'
commit_args = ''

[tool.bumpversion.parts.release]
first_value = 'dev'
optional_value = 'release'
values = [
'dev',
'release'
]
optional_value = 'release'

[tool.bumpversion.files]
pyproject.toml = {search = 'current_version="{current_version}"', replace = 'current_version="{new_version}"'}
"deepecho/__init__.py" = {search = '__version__ = "{current_version}"', replace = '__version__ = "{new_version}"'}
[[tool.bumpversion.files]]
filename = "pyproject.toml"
search = "version = '{current_version}'"
replace = "version = '{new_version}'"

[[tool.bumpversion.files]]
filename = "deepecho/__init__.py"
search = "__version__ = '{current_version}'"
replace = "__version__ = '{new_version}'"

[build-system]
requires = ['setuptools', 'wheel']
Expand Down
Loading