Skip to content

Commit

Permalink
Switch to setuptools_scm
Browse files Browse the repository at this point in the history
  • Loading branch information
lordmauve committed Jan 18, 2025
1 parent 5b68f3d commit c4c70e0
Show file tree
Hide file tree
Showing 28 changed files with 34 additions and 55 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,5 @@ examples_dev
/venv*/
/notebooks
/test/failed-image
__pycache__
src/pgzero/_version.py
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ repos:
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
- repo: https://github.com/PyCQA/flake8
rev: "4.0.1"
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: "v0.9.2"
hooks:
- id: flake8
- id: ruff
exclude: "^(doc|examples)/"
5 changes: 0 additions & 5 deletions MANIFEST.in

This file was deleted.

25 changes: 25 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
[project]
name = "pgzero"
description = "A zero-boilerplate 2D games framework"
readme = "README.rst"
requires-python = ">=3.6"
dependencies = [
"pygame>=2.1",
"numpy",
"pyfxr",
]
dynamic = ["version"]

[project.urls]
Documentation = "https://pygame-zero.readthedocs.io/"
Source = "https://github.com/lordmauve/pgzero"

[project.scripts]
pgzrun = "pgzero.runner:main"

[build-system]
requires = ["setuptools>=64", "setuptools-scm>=8"]
build-backend = "setuptools.build_meta"

[tool.setuptools_scm]
write_to = "src/pgzero/_version.py"
2 changes: 0 additions & 2 deletions setup.cfg

This file was deleted.

43 changes: 0 additions & 43 deletions setup.py

This file was deleted.

4 changes: 3 additions & 1 deletion pgzero/__init__.py → src/pgzero/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,6 @@
"""

__version__ = '1.3.dev0'
from ._version import __version__

__all__ = ['__version__']
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion pgzero/screen.py → src/pgzero/screen.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def rect(self, rect, color, width=1):
c = make_color(color)

hw = width / 2
l, t, w, h = rect
l, t, w, h = rect # noqa: E741
l1, l2 = round(l - hw), round(l + hw)
r1, r2 = round(l + w - hw), round(l + w + hw)
t1, t2 = round(t - hw), round(t + hw)
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit c4c70e0

Please sign in to comment.