Skip to content

Commit

Permalink
Moved to Poetry with package building (#44)
Browse files Browse the repository at this point in the history
  • Loading branch information
Raalsky authored Nov 7, 2022
1 parent b84cf98 commit 29a4a83
Show file tree
Hide file tree
Showing 11 changed files with 109 additions and 2,543 deletions.
1 change: 0 additions & 1 deletion .gitattributes

This file was deleted.

11 changes: 9 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,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 @@ -42,9 +44,14 @@ jobs:
- uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Build and test

- 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-fastai 0.10.4
## neptune-fastai 0.10.4

### Changes
- moved neptune_fastai package to src dir ([#37](https://github.com/neptune-ai/neptune-fastai/pull/37))
- Poetry as a package builder ([#44](https://github.com/neptune-ai/neptune-fastai/pull/44))

### Fixes
- Fixed NeptuneCallback import error - now possible to directly import with `from neptune_fastai import NeptuneCallback`
Expand Down
2 changes: 0 additions & 2 deletions MANIFEST.in

This file was deleted.

77 changes: 77 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,80 @@
[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"
fastai = ">=2.4"

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

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

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

[tool.poetry.urls]
"Tracker" = "https://github.com/neptune-ai/neptune-fastai/issues"
"Documentation" = "https://docs.neptune.ai/integrations-and-supported-tools/model-training/fastai"

[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.

97 changes: 0 additions & 97 deletions setup.py

This file was deleted.

Loading

0 comments on commit 29a4a83

Please sign in to comment.