Skip to content

Commit 117ef78

Browse files
committed
Switch to pyproject.toml, and to ruff from flake8
1 parent 5a9d215 commit 117ef78

File tree

5 files changed

+96
-109
lines changed

5 files changed

+96
-109
lines changed

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ jobs:
3232
- name: wheel
3333
run: |
3434
python -m pip install -e .[tests]
35-
- name: flake8
35+
- name: ruff
3636
run: |
37-
flake8 pytiled_parser
37+
ruff check pytiled_parser
3838
- name: mypy
3939
if: success() || failure()
4040
run: |

pyproject.toml

Lines changed: 94 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,94 @@
1-
[build-system]
2-
requires = ["setuptools", "wheel"]
3-
build-backend = "setuptools.build_meta"
1+
[project]
2+
name = "pytiled_parser"
3+
version = "2.2.1"
4+
description = "A library for parsing Tiled Map Editor maps and tilesets"
5+
readme = "README.md"
6+
authors = [
7+
{name="Benjamin Kirkbride", email="[email protected]"},
8+
{name="Darren Eberly", email="[email protected]"},
9+
]
10+
maintainers = [
11+
{name="Darren Eberly", email="[email protected]"}
12+
]
13+
license = {file = "LICENSE"}
14+
requires-python = ">=3.6"
15+
classifiers = [
16+
"Development Status :: 5 - Production/Stable",
17+
"Intended Audience :: Developers",
18+
"License :: OSI Approved :: MIT License",
19+
"Operating System :: OS Independent",
20+
"Programming Language :: Python",
21+
"Programming Language :: Python :: 3.7",
22+
"Programming Language :: Python :: 3.8",
23+
"Programming Language :: Python :: 3.9",
24+
"Programming Language :: Python :: 3.10",
25+
"Programming Language :: Python :: 3.11",
26+
"Programming Language :: Python :: Implementation :: CPython",
27+
"Topic :: Software Development :: Libraries :: Python Modules"
28+
]
29+
dependencies = [
30+
"attrs >= 18.2.0",
31+
"typing-extensions"
32+
]
33+
34+
[project.urls]
35+
homepage = "https://github.com/pythonarcade/pytile_parser"
36+
37+
[project.optional-dependencies]
38+
zstd = [
39+
"zstd"
40+
]
41+
42+
dev = [
43+
"pytest",
44+
"pytest-cov",
45+
"black",
46+
"ruff",
47+
"mypy",
48+
"sphinx",
49+
"sphinx-sitemap",
50+
"myst-parser",
51+
"furo"
52+
]
53+
54+
tests = [
55+
"pytest",
56+
"pytest-cov",
57+
"black",
58+
"ruff",
59+
"mypy"
60+
]
61+
62+
build = [
63+
"build"
64+
]
65+
66+
[tool.setuptools.packages.find]
67+
include = ["pytiled-parser", "pytiled-parser.*"]
68+
69+
[build-system]
70+
requires = ["setuptools", "wheel"]
71+
build-backend = "setuptools.build_meta"
72+
73+
[tool.distutils.bdist_wheel]
74+
universal = true
75+
76+
[tool.coverage.run]
77+
branch = true
78+
79+
[tool.coverage.report]
80+
show_missing = true
81+
82+
[tool.mypy]
83+
python_version = 3.11
84+
warn_unused_configs = true
85+
warn_redundant_casts = true
86+
ignore_missing_imports = true
87+
88+
[[tool.mypy.overrides]]
89+
module = "tests.*"
90+
ignore_errors = true
91+
92+
[tool.ruff]
93+
exclude = ["__init__.py"]
94+
ignore = ["E501"]

pytiled_parser/version.py

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

setup.cfg

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

setup.py

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

0 commit comments

Comments
 (0)