Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitb740994

Browse files
chore: rename __version__.py to version.py
It was confusing having __version__.py as we were importing the__version__ variable from __version__.py into the top-level namespacewhile also having __version__.py. So depending where we were in theimport chain __version__ could refer to the module __version__.py orit could refer to the variable __version__
1 parent7799cb9 commitb740994

File tree

5 files changed

+4
-4
lines changed

5 files changed

+4
-4
lines changed

‎gitlab/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
fromtypingimportAny
2121

2222
importgitlab.config# noqa: F401
23-
fromgitlab.__version__import (# noqa: F401
23+
fromgitlab.versionimport (# noqa: F401
2424
__author__,
2525
__copyright__,
2626
__email__,

‎gitlab/const.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# You should have received a copy of the GNU Lesser General Public License
1616
# along with this program. If not, see <http://www.gnu.org/licenses/>.
1717

18-
fromgitlab.__version__import__title__,__version__
18+
from.versionimport__title__,__version__
1919

2020
# NOTE(jlvillal): '_DEPRECATED' only affects users accessing constants via the
2121
# top-level gitlab.* namespace. See 'gitlab/__init__.py:__getattr__()' for the
File renamed without changes.

‎pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ ignore_errors = true
3838

3939
[tool.semantic_release]
4040
branch ="main"
41-
version_variable ="gitlab/__version__.py:__version__"
41+
version_variable ="gitlab/version.py:__version__"
4242
commit_subject ="chore: release v{version}"
4343
commit_message =""
4444

‎setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
defget_version()->str:
88
version=""
9-
withopen("gitlab/__version__.py")asf:
9+
withopen("gitlab/version.py")asf:
1010
forlineinf:
1111
ifline.startswith("__version__"):
1212
version=eval(line.split("=")[-1])

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp