Skip to content

Clean up project config files and version #788

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

Merged
merged 1 commit into from
Jun 2, 2025
Merged
Show file tree
Hide file tree
Changes from all 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
2 changes: 2 additions & 0 deletions kaggle/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,7 @@
from __future__ import absolute_import
from kaggle.api.kaggle_api_extended import KaggleApi

__version__ = "1.7.5.0.dev0"

api = KaggleApi()
api.authenticate()
3 changes: 2 additions & 1 deletion kaggle/api/kaggle_api_extended.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
from urllib3.util.retry import Retry
from google.protobuf import field_mask_pb2

import kaggle
from kaggle.configuration import Configuration
from kagglesdk import KaggleClient, KaggleEnv # type: ignore[attr-defined]
from kagglesdk.admin.types.inbox_file_service import CreateInboxFileRequest
Expand Down Expand Up @@ -361,7 +362,7 @@ def __repr__(self):


class KaggleApi:
__version__ = '1.7.5.0.dev0'
__version__ = kaggle.__version__

CONFIG_NAME_PROXY = 'proxy'
CONFIG_NAME_COMPETITION = 'competition'
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ Homepage = "https://github.com/Kaggle/kaggle-api"
Issues = "https://github.com/Kaggle/kaggle-api/issues"

[tool.hatch.version]
path = "src/__init__.py"
path = "src/kaggle/__init__.py"

[tool.hatch.envs.default]
dependencies = [
Expand Down
2 changes: 0 additions & 2 deletions setup.cfg

This file was deleted.

46 changes: 0 additions & 46 deletions setup.py

This file was deleted.

1 change: 0 additions & 1 deletion src/__init__.py

This file was deleted.

15 changes: 9 additions & 6 deletions src/kaggle/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# coding=utf-8
from __future__ import absolute_import
from kaggle.api.kaggle_api_extended import KaggleApi

api = KaggleApi()
api.authenticate()
# coding=utf-8
from __future__ import absolute_import
from kaggle import configuration
from kaggle.api.kaggle_api_extended import KaggleApi

__version__ = kaggle.__version__

api = KaggleApi()
api.authenticate()
3 changes: 2 additions & 1 deletion src/kaggle/api/kaggle_api_extended.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
from urllib3.util.retry import Retry
from google.protobuf import field_mask_pb2

import kaggle
from kaggle.configuration import Configuration
from kagglesdk import KaggleClient, KaggleEnv # type: ignore[attr-defined]
from kagglesdk.admin.types.inbox_file_service import CreateInboxFileRequest
Expand Down Expand Up @@ -361,7 +362,7 @@ def __repr__(self):


class KaggleApi:
__version__ = '1.7.5.0.dev0'
__version__ = kaggle.__version__

CONFIG_NAME_PROXY = 'proxy'
CONFIG_NAME_COMPETITION = 'competition'
Expand Down