forked from SpockBotMC/python-minecraft-data
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
56 lines (52 loc) · 2.54 KB
/
pyproject.toml
File metadata and controls
56 lines (52 loc) · 2.54 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# -----------------------------------------------------------------------------
# Metadata
# https://packaging.python.org/en/latest/specifications/declaring-project-metadata/
[project]
name = "minecraft-data-latest"
version = "0.2"
maintainers = [
]
authors = [
]
description = "Python bindings to easily access latest minecraft-data database"
license = {text = "MIT"} # Free text, using SPDX
urls."Source Code" = "https://github.com/MestreLion/python-minecraft-data-latest"
urls."Issue Tracker" = "https://github.com/MestreLion/python-minecraft-data-latest/issues"
readme = {file = "README.rst", content-type = "text/x-rst"}
keywords = [ "minecraft", "game", "data" ]
classifiers = [
# https://pypi.org/classifiers/
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7", # oldest supported
"Programming Language :: Python :: 3.13", # latest tested
"Topic :: Games/Entertainment",
"Topic :: Software Development :: Libraries :: Python Modules",
]
# -----------------------------------------------------------------------------
# Requirements
requires-python = ">=3.7" # from setuptools >= 61.0
# -----------------------------------------------------------------------------
# Building
# https://setuptools.pypa.io/en/latest/userguide/pyproject_config.html
[build-system]
requires = ["setuptools >= 62.3"] # Allow recursive globs (**) in 'package-data'
build-backend = "setuptools.build_meta"
[tool.setuptools]
# Do NOT use bare 'packages'! It won't handle the minecraft_data subdirs, not
# even as implicit namespace (sub-)packages, as they contain no python file.
# So either setuptools' "Automatic Package Discovery" or explicit 'packages.find'
# with globbing seems to be *required* for this project.
packages.find.include = ["minecraft_data", "minecraft_data.*"]
# If not using MANIFEST.in or setuptools_scm, 'package-data' seems to be
# *required* for including non-Python data files, at least in a flat layout, as
# 'include-package-data' alone is *very* misleading and will not work as intended:
# It only affects wheel, NOT sdist! And since `python3 -m build` creates wheel
# from sdist (not source tree), BOTH sdist and wheel end up without data files.
package-data = {"minecraft_data" = ["data/**/*"]}