File tree Expand file tree Collapse file tree 5 files changed +6
-6
lines changed
Expand file tree Collapse file tree 5 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 2020from typing import Any
2121
2222import gitlab .config # noqa: F401
23- from gitlab .__version__ import ( # noqa: F401
23+ from gitlab .client import Gitlab , GitlabList # noqa: F401
24+ from gitlab .exceptions import * # noqa: F401,F403
25+ from gitlab .version import ( # noqa: F401
2426 __author__ ,
2527 __copyright__ ,
2628 __email__ ,
2729 __license__ ,
2830 __title__ ,
2931 __version__ ,
3032)
31- from gitlab .client import Gitlab , GitlabList # noqa: F401
32- from gitlab .exceptions import * # noqa: F401,F403
3333
3434warnings .filterwarnings ("default" , category = DeprecationWarning , module = "^gitlab" )
3535
Original file line number Diff line number Diff line change 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- from gitlab .__version__ import __title__ , __version__
18+ from gitlab .version import __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.
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ ignore_errors = true
3838
3939[tool .semantic_release ]
4040branch = " main"
41- version_variable = " gitlab/__version__ .py:__version__"
41+ version_variable = " gitlab/version .py:__version__"
4242commit_subject = " chore: release v{version}"
4343commit_message = " "
4444
Original file line number Diff line number Diff line change 66
77def get_version () -> str :
88 version = ""
9- with open ("gitlab/__version__ .py" ) as f :
9+ with open ("gitlab/version .py" ) as f :
1010 for line in f :
1111 if line .startswith ("__version__" ):
1212 version = eval (line .split ("=" )[- 1 ])
You can’t perform that action at this time.
0 commit comments