Skip to content

Commit fddce40

Browse files
committed
updated build process to exclude tests but to add pimitives and shaders
1 parent 1e2dc75 commit fddce40

3 files changed

Lines changed: 543 additions & 9 deletions

File tree

MANIFEST.in

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# Include package data
2+
include src/ncca/ngl/shaders/*
3+
include src/ncca/ngl/PrimData/Primitives.npz
4+
5+
# Include license and readme
6+
include LICENSE.txt
7+
include README.md
8+
9+
# Exclude tests and test-related files
10+
exclude tests/*
11+
global-exclude tests/*
12+
global-exclude *test*
13+
global-exclude __pycache__/*
14+
global-exclude *.pyc
15+
global-exclude *.pyo
16+
17+
# Exclude development and build files
18+
exclude .gitignore
19+
exclude .pre-commit-config.yaml
20+
exclude pyproject.toml.bak
21+
exclude *.log
22+
exclude TODO.md
23+
exclude sonar-project.properties
24+
exclude uv.lock
25+
26+
# Exclude directories
27+
prune tests
28+
prune .pytest_cache
29+
prune .ruff_cache
30+
prune .venv
31+
prune dist
32+
prune tmp
33+
prune .github

pyproject.toml

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "ncca-ngl"
3-
version = "0.1.0"
3+
version = "0.1.2"
44
description = "A Python version of the NGL graphics library."
55
authors = [{ name = "Jon Macey", email = "jmacey@bournemouth.ac.uk" }]
66
requires-python = ">=3.13"
@@ -13,29 +13,34 @@ dependencies = [
1313
"glfw>=2.9.0",
1414
"freetype-py>=2.5.1",
1515
"pyside6>=6.9.2",
16+
"hatch>=1.14.2",
1617
]
1718

1819
[project.urls]
1920
Homepage = "https://github.com/NCCA/PyNGL"
2021
Issues = "https://github.com/NCCA/PyNGL/issues"
2122

22-
[tool.setuptools.packages.find]
23-
where = ["src"]
24-
include = ["ncca.*"]
2523

2624
[tool.pytest.ini_options]
2725
pythonpath = ["src","tests"]
2826

29-
# [build-system]
30-
# requires = ["uv_build>=0.8.14,<0.9.0"]
31-
# build-backend = "uv_build"
32-
# module-name = ["ncca.ngl"]
33-
# module-root = "src/ncca/"
3427

3528
[build-system]
3629
requires = ["setuptools>=61.0"]
3730
build-backend = "setuptools.build_meta"
3831

32+
[tool.setuptools.packages.find]
33+
where = ["src"]
34+
include = ["ncca.*"]
35+
36+
[tool.setuptools.package-data]
37+
"ncca.ngl" = ["shaders/*", "PrimData/Primitives.npz"]
38+
39+
[tool.setuptools]
40+
include-package-data = true
41+
42+
43+
3944
[dependency-groups]
4045
dev = [
4146
"coverage>=7.10.6",

0 commit comments

Comments
 (0)