Skip to content

Commit

Permalink
Moved to Poetry with package building (#56)
Browse files Browse the repository at this point in the history
  • Loading branch information
Raalsky authored Nov 7, 2022
1 parent 6b21a43 commit 02c6ab3
Show file tree
Hide file tree
Showing 11 changed files with 119 additions and 2,536 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,11 @@ jobs:
python-version: [3.7, 3.8, 3.9]
steps:
- uses: actions/checkout@v2

- uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}

- name: Test
env:
NEPTUNE_API_TOKEN: ${{ secrets.E2E_NEPTUNE_API_TOKEN }}
Expand All @@ -24,12 +26,18 @@ jobs:
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
steps:
- uses: actions/checkout@v2

- uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Build and test
python-version: 3.9

- name: Install build dependencies
run: pip install poetry poetry-dynamic-versioning

- name: Build package
run : |
python setup.py sdist
poetry build
- name: Publish package
uses: pypa/[email protected]
with:
Expand Down
3 changes: 0 additions & 3 deletions .gitignore

This file was deleted.

4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
## [UNRELEASED] kedro-neptune 0.1.4
## kedro-neptune 0.1.4

### Changes
- Moved `kedro_neptune` package to `src` directory ([#50](https://github.com/neptune-ai/kedro-neptune/pull/50))

- Poetry as a package builder ([#56](https://github.com/neptune-ai/kedro-neptune/pull/56))

## kedro-neptune 0.1.3

Expand Down
2 changes: 0 additions & 2 deletions MANIFEST.in

This file was deleted.

84 changes: 84 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,87 @@
[build-system]
requires = ["poetry-core>=1.0.0", "poetry-dynamic-versioning"]
build-backend = "poetry_dynamic_versioning.backend"

[tool.poetry-dynamic-versioning]
enable = true
vcs = "git"
style = "semver"
pattern = "default-unprefixed"

[tool.poetry.dependencies]
python = "^3.7"

# Python lack of functionalities from future versions
importlib-metadata = { version = "*", python = "<3.8" }

# Base requirements
neptune-client = ">=0.16.7"
kedro = ">=0.18.0"
"ruamel.yaml" = "^0.17.0"

# dev
pre-commit = { version = "*", optional = true }
pytest = { version = ">=5.0", optional = true }
pytest-cov = { version = "2.10.1", optional = true }
neptune-optuna = { version = "*", optional = true }
neptune-fastai = { version = "*", optional = true }

[tool.poetry.extras]
dev = [
"pre-commit",
"pytest",
"pytest-cov",
"neptune-optuna",
"neptune-fastai",
]

[tool.poetry]
authors = ["neptune.ai <[email protected]>"]
description = "Neptune.ai integration with Kedro"
repository = "https://github.com/neptune-ai/kedro-neptune"
homepage = "https://neptune.ai/"
documentation = "https://docs.neptune.ai/integrations/kedro/"
include = ["CHANGELOG.md"]
license = "Apache License 2.0"
name = "kedro-neptune"
readme = "README.md"
version = "0.0.0"
classifiers = [
"Development Status :: 4 - Beta",
"Environment :: Console",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: Apache Software License",
"Natural Language :: English",
"Operating System :: MacOS",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX",
"Operating System :: Unix",
"Topic :: Software Development :: Libraries :: Python Modules",
"Programming Language :: Python :: Implementation :: CPython",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
]
keywords = [
"MLOps",
"ML Experiment Tracking",
"ML Model Registry",
"ML Model Store",
"ML Metadata Store",
]
packages = [
{ include = "kedro_neptune", from = "src" },
]

[tool.poetry.urls]
"Tracker" = "https://github.com/neptune-ai/kedro-neptune/issues"
"Documentation" = "https://docs.neptune.ai/integrations/kedro/"

[tool.poetry.plugins."kedro.project_commands"]
neptune = "kedro_neptune:commands"

[tool.poetry.plugins."kedro.hooks"]
neptune_hooks = "kedro_neptune:neptune_hooks"

[tool.black]
line-length = 120
target-version = ['py37', 'py38', 'py39', 'py310']
Expand Down
7 changes: 0 additions & 7 deletions setup.cfg

This file was deleted.

96 changes: 0 additions & 96 deletions setup.py

This file was deleted.

6 changes: 2 additions & 4 deletions src/kedro_neptune/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
# limitations under the License.
#

__all__ = ["NeptuneRunDataSet", "NeptuneFileDataSet", "neptune_hooks", "init"]
__all__ = ["NeptuneRunDataSet", "NeptuneFileDataSet", "neptune_hooks", "init", "__version__"]

import hashlib
import json
Expand Down Expand Up @@ -47,8 +47,8 @@
from kedro.pipeline.node import Node
from ruamel.yaml import YAML

from kedro_neptune._version import get_versions
from kedro_neptune.config import get_neptune_config
from kedro_neptune.version import __version__

try:
# neptune-client=0.9.0+ package structure
Expand All @@ -65,8 +65,6 @@

INTEGRATION_VERSION_KEY = "source_code/integrations/kedro-neptune"

__version__ = get_versions()["version"]


@click.group(name="Neptune")
def commands():
Expand Down
Loading

0 comments on commit 02c6ab3

Please sign in to comment.