Skip to content

Commit c4c70e0

Browse files
committed
Switch to setuptools_scm
1 parent 5b68f3d commit c4c70e0

28 files changed

+34
-55
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,5 @@ examples_dev
1717
/venv*/
1818
/notebooks
1919
/test/failed-image
20+
__pycache__
21+
src/pgzero/_version.py

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ repos:
88
- id: end-of-file-fixer
99
- id: check-yaml
1010
- id: check-added-large-files
11-
- repo: https://github.com/PyCQA/flake8
12-
rev: "4.0.1"
11+
- repo: https://github.com/astral-sh/ruff-pre-commit
12+
rev: "v0.9.2"
1313
hooks:
14-
- id: flake8
14+
- id: ruff
1515
exclude: "^(doc|examples)/"

MANIFEST.in

Lines changed: 0 additions & 5 deletions
This file was deleted.

pyproject.toml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
[project]
2+
name = "pgzero"
3+
description = "A zero-boilerplate 2D games framework"
4+
readme = "README.rst"
5+
requires-python = ">=3.6"
6+
dependencies = [
7+
"pygame>=2.1",
8+
"numpy",
9+
"pyfxr",
10+
]
11+
dynamic = ["version"]
12+
13+
[project.urls]
14+
Documentation = "https://pygame-zero.readthedocs.io/"
15+
Source = "https://github.com/lordmauve/pgzero"
16+
17+
[project.scripts]
18+
pgzrun = "pgzero.runner:main"
19+
20+
[build-system]
21+
requires = ["setuptools>=64", "setuptools-scm>=8"]
22+
build-backend = "setuptools.build_meta"
23+
24+
[tool.setuptools_scm]
25+
write_to = "src/pgzero/_version.py"

setup.cfg

Lines changed: 0 additions & 2 deletions
This file was deleted.

setup.py

Lines changed: 0 additions & 43 deletions
This file was deleted.

pgzero/__init__.py renamed to src/pgzero/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,6 @@
55
66
"""
77

8-
__version__ = '1.3.dev0'
8+
from ._version import __version__
9+
10+
__all__ = ['__version__']
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)