Skip to content

Commit

Permalink
Switch to pyproject.toml based build and distribution approach
Browse files Browse the repository at this point in the history
  • Loading branch information
benmoran56 committed Nov 21, 2023
1 parent 6fa0fb6 commit 234c89f
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 40 deletions.
9 changes: 9 additions & 0 deletions RELEASE_NOTES
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
esper 3.1
=========
Maintenance release

Changes
-------
- modernization of build process


esper 3.0
=========
Major release
Expand Down
4 changes: 2 additions & 2 deletions esper/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""esper is an Entity Component System library.
"""esper is a lightweight Entity System (ECS) for Python, with a focus on performance
More information is available at https://github.com/benmoran56/esper
"""
Expand All @@ -24,7 +24,7 @@
from itertools import count as _count


version = '3.0'
version = '3.1'
__version__ = version


Expand Down
7 changes: 1 addition & 6 deletions make.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,7 @@ def clean():

def dist():
"""Create sdist and wheels, then upload to PyPi."""
sdist_cmd = "python setup.py sdist --formats=zip"
wheel_cmd = "python setup.py bdist_wheel"
twine_cmd = "twine upload dist/esper*"
call(shlex.split(sdist_cmd))
call(shlex.split(wheel_cmd))
call(shlex.split(twine_cmd))
call(shlex.split("flit publish"))


if __name__ == '__main__':
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ readme = "README.md"
license = {file = "LICENSE"}
classifiers = ["License :: OSI Approved :: MIT License"]
dynamic = ["version", "description"]
requires-python = ">=3.8"

[project.urls]
Home = "https://github.com/benmoran56/esper"
32 changes: 0 additions & 32 deletions setup.py

This file was deleted.

0 comments on commit 234c89f

Please sign in to comment.