Skip to content

Commit

Permalink
[CHORE] argilla: Move version to specific file (#5169)
Browse files Browse the repository at this point in the history
# Description
<!-- Please include a summary of the changes and the related issue.
Please also include relevant motivation and context. List any
dependencies that are required for this change. -->

This PR aligns how the package version is defined with the rest of the
packages. A new `_version.py` module is defined including the version.
This can help when bumping versions automatically.


**Type of change**
<!-- Please delete options that are not relevant. Remember to title the
PR according to the type of change -->

- Refactor (change restructuring the codebase without changing
functionality)

**How Has This Been Tested**
<!-- Please add some reference about how your feature has been tested.
-->

**Checklist**
<!-- Please go over the list and make sure you've taken everything into
account -->

- I added relevant documentation
- I followed the style guidelines of this project
- I did a self-review of my code
- I made corresponding changes to the documentation
- I confirm My changes generate no new warnings
- I have added tests that prove my fix is effective or that my feature
works
- I have added relevant notes to the CHANGELOG.md file (See
https://keepachangelog.com/)
  • Loading branch information
frascuchon authored Jul 9, 2024
1 parent 82be749 commit c6b2065
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 4 deletions.
2 changes: 1 addition & 1 deletion argilla/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ distribution = true

[tool.pdm.version]
source = "file"
path = "src/argilla/__init__.py"
path = "src/argilla/_version.py"

[tool.pdm.dev-dependencies]
dev = [
Expand Down
4 changes: 1 addition & 3 deletions argilla/src/argilla/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
from argilla._version import __version__ # noqa

from argilla.client import * # noqa
from argilla.datasets import * # noqa
Expand All @@ -21,6 +22,3 @@
from argilla.responses import * # noqa
from argilla.records import * # noqa
from argilla.vectors import * # noqa


__version__ = "2.0.0dev0"
15 changes: 15 additions & 0 deletions argilla/src/argilla/_version.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Copyright 2024-present, Argilla, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

__version__ = "2.0.0dev0"

0 comments on commit c6b2065

Please sign in to comment.