Skip to content

Commit 3ea628d

Browse files
committed
Switch to pyproject.toml
1 parent c7f2277 commit 3ea628d

6 files changed

Lines changed: 67 additions & 51 deletions

File tree

.github/workflows/build.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@ jobs:
2020
python-version: ${{ matrix.python }}
2121
- name: Install dependencies
2222
run: |
23-
pip install pytest
24-
pip install -r requirements.txt
23+
pip install -e .[dev]
2524
- name: Test with pytest
2625
run: |
2726
pytest -vv

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ __pypackages__/
77
/dist/
88
/todo.txt
99
/copy_programs.fish
10+
/.venv/

pyproject.toml

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
[build-system]
2+
requires = ["setuptools", "setuptools-scm"]
3+
build-backend = "setuptools.build_meta"
4+
5+
[project]
6+
requires-python = ">=3.8"
7+
name = "computercraft"
8+
version = "0.4.0"
9+
description = "Pythonization of ComputerCraft Minecraft mod. Write Python instead Lua!"
10+
readme = "README.md"
11+
authors = [{name = "Vitalik Verhovodov", email = "knifeslaughter@gmail.com"}]
12+
license = {file = "LICENSE"}
13+
classifiers = [
14+
"Development Status :: 3 - Alpha",
15+
"Intended Audience :: Education",
16+
"Programming Language :: Python :: 3.8",
17+
"Programming Language :: Python :: 3.9",
18+
"Programming Language :: Python :: 3.10",
19+
"Programming Language :: Python :: 3.11",
20+
"Programming Language :: Python :: 3.12",
21+
"Programming Language :: Python :: 3.13",
22+
"Programming Language :: Python :: 3.14",
23+
"Topic :: Games/Entertainment",
24+
]
25+
keywords = [
26+
"computercraft",
27+
"minecraft",
28+
"cc:tweaked",
29+
]
30+
dependencies = [
31+
"aiohttp",
32+
"greenlet",
33+
]
34+
35+
[project.optional-dependencies]
36+
dev = [
37+
"pytest",
38+
]
39+
40+
[project.urls]
41+
Repository = "https://github.com/neumond/python-computer-craft"
42+
43+
[project.scripts]
44+
computercraft = "computercraft.server:main"
45+
46+
[tool.setuptools]
47+
packages = [
48+
"computercraft",
49+
"computercraft.cc",
50+
"computercraft.cc_peripherals",
51+
"computercraft.oc",
52+
"computercraft.oc_components",
53+
]
54+
55+
[tool.setuptools.package-data]
56+
computercraft = ["back.lua"]
57+
58+
[tool.pytest.ini_options]
59+
addopts = "--import-mode=importlib"
60+
testpaths = ["tests"]
61+
pythonpath = "."
62+
63+
[tool.flake8]
64+
max-line-length = 120
65+
ignore = ["I", "C812", "N802", "N803", "N815", "N816", "W503"]

requirements.txt

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

setup.cfg

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

setup.py

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

0 commit comments

Comments
 (0)