Skip to content

Commit

Permalink
Switch to Poetry.
Browse files Browse the repository at this point in the history
  • Loading branch information
mmulqueen committed Oct 2, 2024
1 parent 5bf96c9 commit 8f09696
Show file tree
Hide file tree
Showing 5 changed files with 252 additions and 49 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python

name: Python package
name: Python QA

on:
push:
Expand All @@ -10,8 +10,7 @@ on:
branches: [ "main" ]

jobs:
build:

test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
Expand All @@ -27,9 +26,8 @@ jobs:
- name: Install dependencies
run: |
sudo apt-get update && sudo apt-get install -y dmtx-utils
python -m pip install --upgrade pip
python -m pip install pytest
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
python -m pip install --upgrade pip poetry
poetry install --with dev
- name: Test with pytest
run: |
pytest
poetry run pytest
12 changes: 0 additions & 12 deletions .travis.yml

This file was deleted.

198 changes: 198 additions & 0 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

49 changes: 49 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
[tool.poetry]
name = "pyStrich"
version = "0.9"
description = "PyStrich is a Python module to generate 1D and 2D barcodes (Code 39, Code 128, DataMatrix, QRCode and EAN13). Forked from huBarcode."
authors = [
"Michael Mulqueen <[email protected]>"
# Previous authors not listed here. Refer to git log.
]
maintainers = [
"Michael Mulqueen <[email protected]>"
]
readme = "README.md"
license = "Apache-2.0"
include = [
"pystrich/fonts/*.pil",
"pystrich/fonts/*.pbm",
"pystrich/qrcode/qrcode_data/*.dat"
]
homepage = "https://github.com/mmulqueen/pyStrich"
repository = "https://github.com/mmulqueen/pyStrich"
keywords = [
"barcode",
"qrcode",
"datamatrix",
"ean13",
"code39",
"code128"
]
classifiers = [
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Topic :: Multimedia :: Graphics",
"Topic :: Office/Business"
]


[tool.poetry.dependencies]
python = "^3.8"
pillow = ">=10.3"

[tool.poetry.group.dev]
optional = true

[tool.poetry.group.dev.dependencies]
pytest = "^8.2.2"

[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
30 changes: 0 additions & 30 deletions setup.py

This file was deleted.

0 comments on commit 8f09696

Please sign in to comment.