Skip to content

Commit

Permalink
switch to poetry
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-yin committed Nov 7, 2023
1 parent 45d921e commit 60fe207
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 33 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ jobs:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build
python -m pip install poetry
- name: Build package
run: python -m build
run: poetry build
9 changes: 9 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
build:
poetry build

publish:
poetry publish

# poetry config repositories.testpypi https://test.pypi.org/legacy/
publish-test:
poetry publish -r testpypi
25 changes: 25 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
[tool.poetry]
name = "django-turbo-response"
version = "1.0.1"
description = "Hotwired/Turbo response helpers for Django"
authors = ["Michael Yin <[email protected]>"]
license = "MIT"
homepage = "https://github.com/hotwire-django/django-turbo-response"
readme = "README.md"
packages = [{ include = "turbo_response", from = "src" }]

[tool.poetry.urls]
Changelog = "https://github.com/hotwire-django/django-turbo-response/releases"

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

[tool.poetry.dev-dependencies]

[build-system]
requires = [
"setuptools >= 61.0.0",
"wheel"
]
build-backend = "setuptools.build_meta"
30 changes: 0 additions & 30 deletions setup.py

This file was deleted.

0 comments on commit 60fe207

Please sign in to comment.