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 20
20
from typing import Any
21
21
22
22
import 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
24
26
__author__ ,
25
27
__copyright__ ,
26
28
__email__ ,
27
29
__license__ ,
28
30
__title__ ,
29
31
__version__ ,
30
32
)
31
- from gitlab .client import Gitlab , GitlabList # noqa: F401
32
- from gitlab .exceptions import * # noqa: F401,F403
33
33
34
34
warnings .filterwarnings ("default" , category = DeprecationWarning , module = "^gitlab" )
35
35
Original file line number Diff line number Diff line change 15
15
# You should have received a copy of the GNU Lesser General Public License
16
16
# along with this program. If not, see <http://www.gnu.org/licenses/>.
17
17
18
- from gitlab .__version__ import __title__ , __version__
18
+ from gitlab .version import __title__ , __version__
19
19
20
20
# NOTE(jlvillal): '_DEPRECATED' only affects users accessing constants via the
21
21
# 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
38
38
39
39
[tool .semantic_release ]
40
40
branch = " main"
41
- version_variable = " gitlab/__version__ .py:__version__"
41
+ version_variable = " gitlab/version .py:__version__"
42
42
commit_subject = " chore: release v{version}"
43
43
commit_message = " "
44
44
Original file line number Diff line number Diff line change 6
6
7
7
def get_version () -> str :
8
8
version = ""
9
- with open ("gitlab/__version__ .py" ) as f :
9
+ with open ("gitlab/version .py" ) as f :
10
10
for line in f :
11
11
if line .startswith ("__version__" ):
12
12
version = eval (line .split ("=" )[- 1 ])
You can’t perform that action at this time.
0 commit comments