Skip to content

Commit

Permalink
Move source to src/ (#110)
Browse files Browse the repository at this point in the history
* Move source to src/

Resolves #109

* Update PR number in change log.

* Fix path in pre-commit config

* Update CI matrix

* Update README and tox.ini
  • Loading branch information
sgillies authored Dec 30, 2024
1 parent ab03421 commit b08075e
Show file tree
Hide file tree
Showing 12 changed files with 14 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
runs-on: ubuntu-22.04
strategy:
matrix:
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11']
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']

steps:
- uses: actions/checkout@v3
Expand Down
6 changes: 6 additions & 0 deletions CHANGES.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
CHANGES
=======

3.0a1 (2024-12-27)
------------------

- Source was moved to src/ and Python version support was changed to 3.9+
(#110).

2.4.0 (2023-01-19)
------------------

Expand Down
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Matrices describing 2D affine transformation of the plane.
:alt: Documentation Status

The Affine package is derived from Casey Duncan's Planar package. Please see
the copyright statement in `affine/__init__.py <affine/__init__.py>`__.
the copyright statement in `src/affine/__init__.py <src/affine/__init__.py>`__.

Usage
-----
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ classifiers = [
"Topic :: Scientific/Engineering :: GIS",
]
license = {text = "BSD-3-Clause"}
requires-python = ">=3.7"
requires-python = ">=3.9"

[project.optional-dependencies]
test = [
Expand Down Expand Up @@ -59,7 +59,7 @@ ignore = [
]

[tool.ruff.lint.per-file-ignores]
"affine/tests/**.py" = ["B", "D"]
"src/affine/tests/**.py" = ["B", "D"]
"docs/**.py" = ["D"]

[tool.ruff.lint.isort]
Expand Down
2 changes: 1 addition & 1 deletion affine/__init__.py → src/affine/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@

__all__ = ["Affine"]
__author__ = "Sean Gillies"
__version__ = "2.4.1dev"
__version__ = "3.0dev"

EPSILON: float = 1e-5

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
[tox]
envlist =
py37,py38,py39,py310,py311
py39,py310,py311,py312,py313

[testenv]
usedevelop = true
deps =
numpy
pytest-cov
responses
commands =
python -m pytest affine/tests --cov affine --cov-report term-missing
python -m pytest --cov affine --cov-report term-missing

0 comments on commit b08075e

Please sign in to comment.