Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
cstub committed Jan 13, 2025
1 parent bbeb917 commit 25757ac
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 4 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Publish Package

on: [push]

jobs:
build and publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
fetch-tags: true

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'

- name: Install Poetry
uses: abatilo/actions-poetry@v3
with:
poetry-version: 1.8.5

- name: Install Poetry plugins
run: |
poetry self add poetry-plugin-export
- name: Build package
run: |
poetry build
ls -la dist/
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Test Package Installation

on: [push, pull_request]
on: workflow_dispatch #[push, pull_request]

jobs:
build:
Expand Down
11 changes: 8 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
requires = ["poetry-core>=1.0.0", "poetry-dynamic-versioning>=1.0.0,<2.0.0"]
build-backend = "poetry_dynamic_versioning.backend"

[tool.poetry]
name = "ipybox"
version = "0.3.1"
version = "0.0.0"
description = "Python code execution sandbox based on IPython and Docker"
homepage = "https://github.com/gradion-ai/ipybox"
readme = "README.md"
Expand Down Expand Up @@ -60,3 +60,8 @@ module = [
"aiofiles.os",
]
ignore_missing_imports = true

[tool.poetry-dynamic-versioning]
enable = true
vcs = "git"
pattern = '(?P<base>\d+\.\d+\.\d+)'

0 comments on commit 25757ac

Please sign in to comment.