Skip to content

Commit

Permalink
Merge pull request #17 from neptune-ai/rj/poetry
Browse files Browse the repository at this point in the history
Moved to Poetry with package building
  • Loading branch information
Raalsky committed Nov 7, 2022
2 parents d45ac7c + 8168526 commit f6b5faa
Show file tree
Hide file tree
Showing 11 changed files with 108 additions and 2,517 deletions.
1 change: 0 additions & 1 deletion .gitattributes

This file was deleted.

12 changes: 9 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,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.6
- 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/gh-action-pypi-publish@v1.5.1
with:
Expand Down
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
## [UNRELEASED] neptune-xgboost 0.10.1
## neptune-xgboost 0.10.1

### Changes
- Moved `neptune-xgboost` package to `src` directory ([#12](https://github.com/neptune-ai/neptune-xgboost/pull/12))
- Moved to Poetry with package building ([#17](https://github.com/neptune-ai/neptune-xgboost/pull/17))

### Fixes
- Fixed import issue for callback - now it is possible to import as `from neptune_xgboost import NeptuneCallback`
Expand Down
2 changes: 0 additions & 2 deletions MANIFEST.in

This file was deleted.

77 changes: 76 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,81 @@
[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.6"

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

# Base requirements
neptune-client = ">=0.16.7"
xgboost = ">=1.3.0"
matplotlib = "*"
graphviz = "*"

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

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

[tool.poetry]
authors = ["neptune.ai <contact@neptune.ai>"]
description = "Neptune.ai XGBoost integration library"
repository = "https://github.com/neptune-ai/neptune-xgboost"
homepage = "https://neptune.ai/"
documentation = "https://docs.neptune.ai/integrations/xgboost/"
include = ["CHANGELOG.md"]
license = "Apache License 2.0"
name = "neptune-xgboost"
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 = "neptune_xgboost", from = "src" },
]

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

[tool.black]
line-length = 120
target-version = ['py37', 'py38', 'py39', 'py310']
target-version = ['py36', 'py37', 'py38', 'py39', 'py310']
include = '\.pyi?$'
exclude = '''
/(
Expand Down
7 changes: 0 additions & 7 deletions setup.cfg

This file was deleted.

83 changes: 0 additions & 83 deletions setup.py

This file was deleted.

Loading

0 comments on commit f6b5faa

Please sign in to comment.