Skip to content

Commit d451c56

Browse files
committed
build: clean up what goes into a build wheel for distribution
1 parent bfafe49 commit d451c56

File tree

3 files changed

+10
-8
lines changed

3 files changed

+10
-8
lines changed

MANIFEST.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
graft test
22
include README.md
3-
global-include *.exr *.ext *.jpg *.py
3+
global-include *.exr *.ext *.jpg
44
prune .venv/
55
prune docs/
66
prune test/.pytest_cache/

pyproject.toml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ dynamic = ["version"]
88
description = "A Python library for parsing frame ranges and file sequences commonly used in VFX and Animation applications."
99
readme = "README.md"
1010
requires-python = ">=3.8"
11-
license = {text = "MIT"}
11+
license = "MIT"
1212
authors = [
1313
{name = "Justin Israel", email = "justinisrael@gmail.com"},
1414
{name = "Matt Chambers", email = "yougotrooted@gmail.com"},
@@ -17,7 +17,6 @@ keywords = ["vfx", "visual effects", "file sequence", "frames", "image"]
1717
classifiers = [
1818
"Development Status :: 5 - Production/Stable",
1919
"Intended Audience :: Developers",
20-
"License :: OSI Approved :: MIT License",
2120
"Programming Language :: Python :: 3",
2221
"Programming Language :: Python :: 3.8",
2322
"Programming Language :: Python :: 3.9",
@@ -51,6 +50,9 @@ Issues = "https://github.com/justinfx/fileseq/issues"
5150
[tool.pylint.main]
5251
py-version = "3.8"
5352

53+
[tool.setuptools]
54+
include-package-data = false
55+
5456
[tool.setuptools.packages.find]
5557
where = ["src"]
5658

@@ -74,7 +76,7 @@ dependencies = [
7476
test = "pytest test/ -v"
7577
test-cov = "pytest test/ --cov=fileseq --cov-report=html"
7678
# Requires Java 11+ in PATH. macOS: export PATH="/opt/homebrew/opt/openjdk@21/bin:$PATH"
77-
generate = "python src/fileseq/grammar/generate.py"
79+
generate = "python scripts/generate.py"
7880

7981
[tool.hatch.envs.docs]
8082
dependencies = [
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
import sys
66
from pathlib import Path
77

8-
# Project root (this file is in src/fileseq/grammar/)
9-
ROOT = Path(__file__).parent.parent.parent.parent
10-
GRAMMAR_DIR = Path(__file__).parent # Current directory
11-
OUTPUT_DIR = GRAMMAR_DIR.parent / "parser" # ../parser
8+
# Project root (this file is in scripts/)
9+
ROOT = Path(__file__).parent.parent
10+
GRAMMAR_DIR = ROOT / "src" / "fileseq" / "grammar"
11+
OUTPUT_DIR = ROOT / "src" / "fileseq" / "parser"
1212
ANTLR_JAR = ROOT / "tools" / "antlr-4.13.1-complete.jar"
1313
GRAMMAR_FILE = "fileseq.g4"
1414

0 commit comments

Comments
 (0)