Skip to content

Commit fc781d2

Browse files
authored
Merge pull request #193 from cclauss/pyproject.toml
PEP 621: Migrate from setup.py to pyproject.toml
2 parents f3744fe + bc73f65 commit fc781d2

File tree

2 files changed

+72
-48
lines changed

2 files changed

+72
-48
lines changed

pyproject.toml

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
[build-system]
2+
build-backend = "setuptools.build_meta"
3+
requires = [
4+
"setuptools>=61.2",
5+
]
6+
7+
[project]
8+
name = "sc2reader"
9+
description = "Utility for parsing Starcraft II replay files"
10+
keywords = [
11+
"parser",
12+
"replay",
13+
"sc2",
14+
"starcraft 2",
15+
]
16+
license = {text = "MIT"}
17+
authors = [{name = "Kevin Leung", email = "[email protected]"}]
18+
requires-python = ">=3.7"
19+
classifiers = [
20+
"Development Status :: 5 - Production/Stable",
21+
"Environment :: Console",
22+
"Intended Audience :: Developers",
23+
"License :: OSI Approved :: MIT License",
24+
"Natural Language :: English",
25+
"Operating System :: OS Independent",
26+
"Programming Language :: Python",
27+
"Programming Language :: Python :: 3 :: Only",
28+
"Programming Language :: Python :: 3.7",
29+
"Programming Language :: Python :: 3.8",
30+
"Programming Language :: Python :: 3.9",
31+
"Programming Language :: Python :: 3.10",
32+
"Programming Language :: Python :: 3.11",
33+
"Programming Language :: Python :: Implementation :: CPython",
34+
"Programming Language :: Python :: Implementation :: PyPy",
35+
"Topic :: Games/Entertainment",
36+
"Topic :: Games/Entertainment :: Real Time Strategy",
37+
"Topic :: Software Development",
38+
"Topic :: Software Development :: Libraries",
39+
"Topic :: Utilities",
40+
]
41+
dynamic = [
42+
"readme",
43+
"version",
44+
]
45+
dependencies = [
46+
"mpyq",
47+
"pillow",
48+
]
49+
[project.optional-dependencies]
50+
testing = [
51+
"pytest",
52+
]
53+
[project.urls]
54+
Homepage = "https://github.com/ggtracker/sc2reader"
55+
[project.scripts]
56+
sc2attributes = "sc2reader.scripts.sc2attributes:main"
57+
sc2json = "sc2reader.scripts.sc2json:main"
58+
sc2parse = "sc2reader.scripts.sc2parse:main"
59+
sc2printer = "sc2reader.scripts.sc2printer:main"
60+
sc2replayer = "sc2reader.scripts.sc2replayer:main"
61+
62+
[tool.setuptools]
63+
include-package-data = true
64+
zip-safe = true
65+
platforms = ["any"]
66+
67+
[tool.setuptools.dynamic]
68+
readme = {file = ["README.rst", "CHANGELOG.rst"]}
69+
version = {attr = "sc2reader.__version__"}
70+
71+
[tool.setuptools.packages]
72+
find = {namespaces = false}

setup.py

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

0 commit comments

Comments
 (0)