v2.1.0: Package restructure, bflib expansion, PyPI fix#5
Merged
Conversation
- Restructure from single brainfuck.py to brainfuck/ package with __init__.py, __main__.py, and core.py - Move bflib/ into brainfuck/bflib/ for installed-package compatibility - Add setuptools package-data config for bflib/*.bf inclusion in wheel - Add 16 new bflib programs: div, mod, zero, move, swap, not, and, or, eq, if, sqrt, p5, p32, p48, p65, newline (31 total) - Fix library import path resolution to use __file__-relative paths - Add python -m brainfuck entry point via __main__.py - Update pyproject.toml: version 2.1.0, setuptools config, remove agents-smith - Fix pytest config to discover *_test.py files in features/ - Auto-fix lint formatting in core.py and test files - Fixes #2: Large programs can now be loaded via -f FILE flag
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
v2.1.0 fixes the broken PyPI package and adds 16 new bflib programs.
Key Changes
brainfuck.py→brainfuck/package with__init__.py,__main__.py,core.pybrainfuck/bflib/now ships inside the wheel for installed-package compatibility-fflag documented: Fixes Only small programs allowed. #2 — large programs can be loaded via file instead of shell argumentsetuptools.packages.find,package-datafor*.bffiles,python -m brainfuckentry pointBreaking Changes
from brainfuck import BrainFuckstill works via__init__.pyre-exportspython -m brainfucknow works as entry point__file__-relative resolution for wheel compatibilityTest Results
python -m brainfuckworks-f FILEflag works for large programs