Skip to content

Commit

Permalink
Merge pull request #15 from lumicks/14-publish-using-poetry
Browse files Browse the repository at this point in the history
Publish using poetry
  • Loading branch information
radao committed Jul 19, 2023
2 parents a171896 + dea5f34 commit 22f63fc
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 20 deletions.
19 changes: 9 additions & 10 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,18 @@ jobs:
- uses: actions/checkout@v3
with:
lfs: true
- name: Set up python 3.10
- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Install build dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -r requirements/build.txt
- uses: Gr1N/setup-poetry@v8
- name: Install Poetry dependencies
run: poetry install
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
- name: Create Python package
run: python -m build
run: poetry build
- name: Publish package to PyPi
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
run: poetry publish -u __token__ -p $token
env:
token: ${{ secrets.PYPI_API_TOKEN }}

20 changes: 10 additions & 10 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,19 +1,20 @@
[project]
[tool.poetry]
name = "lumicks-doltcli"
version = "0.2.0"
license = {file = "LICENSE"}
packages = [{ include = "doltcli" }]
description = "Slim Python interface for Dolt's CLI API."
long_description_content_type = "text/markdown"
authors = [
{name = "Max Hoffman", email = "[email protected]"},
{name = "Oscar Batori", email = "[email protected]"},
{name = "LUMICKS ml-team", email = "[email protected]"}
]
requires-python = ">=3.8"
readme = "README.md"
authors = ["Max Hoffman <[email protected]>", "Oscar Batori <[email protected]>", "LUMICKS AI Team <[email protected]"]
classifiers = [
"Programming Language :: Python"
]

[tool.poetry.dependencies]
python = ">=3.8"

[build-system]
requires = ["poetry-core>=1.0.0a5"]
build-backend = "poetry.core.masonry.api"

[tool.isort]
profile = "black"
Expand Down Expand Up @@ -43,5 +44,4 @@ per-file-ignores = ['**/__init__.py:F401']
[tool.mypy]
python_version = "3.8"
warn_unused_configs = true

ignore_missing_imports = true

0 comments on commit 22f63fc

Please sign in to comment.