Skip to content

Commit

Permalink
add pyproject.toml, remove setup.py, remove older python versions fro…
Browse files Browse the repository at this point in the history
…m test matrix (#40)

* remove older python versions from test matrix

also simplify tox.ini

* create pyproject.toml

add pyproject.toml

* remove setup.py
  • Loading branch information
alexdej authored Sep 20, 2024
1 parent c12e99b commit 564fc09
Show file tree
Hide file tree
Showing 6 changed files with 55 additions and 45 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.8","3.9", "3.10", "3.11", "3.12"]
python-version: ["3.10", "3.11", "3.12"]

steps:
- uses: actions/checkout@v4
Expand All @@ -25,7 +25,7 @@ jobs:
with:
python-version: ${{ matrix.python-version }}
cache: pip
- name: Install requirements
run: pip install -r requirements.txt
- name: Install tox
run: pip install tox
- name: Run tox
run: tox -e py
39 changes: 39 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
[project]
name = "puzpy"
description = "python crossword puzzle library"
readme = { file = "README.rst", content-type = "text/x-rst" }
license = { file = "LICENSE" }
version = "0.2.6"
keywords = [ "puz", "crosswords", "crossword", "puzzle", "acrosslite", "xword", "xwords" ]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Games/Entertainment :: Puzzle Games",
]
authors = [
{ name = "Alex Dejarnatt", email = "adejarnatt@gmail.com" },
]
maintainers = [
{ name = "Simeon Visser", email = "simeonvisser@gmail.com" },
]


[project.urls]
Repository = "https://github.com/alexdej/puzpy.git"
Issues = "https://github.com/alexdej/puzpy/issues"


[build-system]
requires = ["setuptools >= 61.0"]
build-backend = "setuptools.build_meta"

2 changes: 0 additions & 2 deletions requirements.txt

This file was deleted.

2 changes: 0 additions & 2 deletions setup.cfg

This file was deleted.

34 changes: 0 additions & 34 deletions setup.py

This file was deleted.

17 changes: 13 additions & 4 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,14 +1,23 @@
[tox]
envlist = py27, py38, py39, py310, py311, py312
requires = virtualenv<20.22.0
requires =
tox>=4

envlist = lint, py{310,311,312}, coverage

[testenv]
commands =
description = run unit tests
commands =
python tests.py

[testenv:lint]
description = run flake8 on source code
commands =
flake8 . --count --show-source --max-line-length=127 --statistics
deps = flake8
skip_install = true

[testenv:py36]
[testenv:coverage]
description = generate coverage report for unit tests
commands =
coverage run tests.py
coverage html
Expand Down

0 comments on commit 564fc09

Please sign in to comment.