Skip to content

Commit

Permalink
Fix pygame version on Python 3.11
Browse files Browse the repository at this point in the history
  • Loading branch information
meme8383 committed Dec 29, 2022
1 parent 67366c7 commit caa934b
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ Linesim is available on [PyPI](https://pypi.org/project/linesim/).
pip install linesim
```

Note: If you are having difficulty installing pygame 2.1.2 and you are using Python 3.11, first run `pip install pygame==2.1.3-dev8` before installing.
## Usage
First, import the `LineSimulation` class.

Expand Down
2 changes: 1 addition & 1 deletion linesim/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
Line simulation made with pygame for testing
Line simulation made with pygame for testing
a robot's pathfinding abilities.
"""

Expand Down
5 changes: 3 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "linesim"
version = "0.1.2"
version = "0.1.3"
authors = [
{ name="Eduard Tanase", email="[email protected]" },
]
Expand All @@ -17,7 +17,8 @@ classifiers = [
"Operating System :: OS Independent",
]
dependencies = [
"pygame>=2.1.2"
"pygame>=2.1.2; python_version<'3.11'",
"pygame>=2.1.3-dev8; python_version>='3.11'"
]

[project.urls]
Expand Down
3 changes: 2 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
pygame>=2.1.2
pygame>=2.1.2; python_version<'3.11'
pygame>=2.1.3-dev8; python_version>='3.11'

0 comments on commit caa934b

Please sign in to comment.