Eli Bendersky | 8dbd149 | 2013-08-03 06:07:08 -0700 | [diff] [blame] | 1 | Todo |
| 2 | ---- |
| 3 | |
Eli Bendersky | 8dbd149 | 2013-08-03 06:07:08 -0700 | [diff] [blame] | 4 | Version Update |
| 5 | -------------- |
| 6 | |
Eli Bendersky | 40af8bd | 2015-04-21 14:48:45 -0700 | [diff] [blame] | 7 | setup.py, __init__.py, README, CHANGES |
Eli Bendersky | 978ad7a | 2015-04-21 17:04:53 -0700 | [diff] [blame] | 8 | - Make sure _build_tables was run in pycparser/ |
Eli Bendersky | 8dbd149 | 2013-08-03 06:07:08 -0700 | [diff] [blame] | 9 | - If PLY version changes, note it in README and ply/LICENSE |
Eli Bendersky | 40af8bd | 2015-04-21 14:48:45 -0700 | [diff] [blame] | 10 | - Run tox tests |
Eli Bendersky | 8dbd149 | 2013-08-03 06:07:08 -0700 | [diff] [blame] | 11 | |
Eli Bendersky | f29f92a | 2016-10-27 20:15:49 -0700 | [diff] [blame] | 12 | python setup.py sdist |
Eli Bendersky | 8dbd149 | 2013-08-03 06:07:08 -0700 | [diff] [blame] | 13 | |
Eli Bendersky | 37648df | 2016-10-27 20:20:38 -0700 | [diff] [blame] | 14 | Copy the newly created tarball and untar it; check that the permissions of |
| 15 | Python files in the pycparser/ directory are OK. Check to see that lextab.py and |
| 16 | yacctab.py are there. |
| 17 | |
| 18 | Now create a new virtualenv and in it install the tarball with |
| 19 | `pip install <tarballname>`. See that pycparser is importable in the Python |
| 20 | interpreter of this virtualenv; run pycparser tests from this virtualenv. |
| 21 | |
Eli Bendersky | 0055fac | 2020-03-04 06:19:43 -0800 | [diff] [blame] | 22 | After this it's OK to rerun `python3.6 -m twine upload dist/*` to push to PyPI |
Eli Bendersky | 3c86ff4 | 2017-07-04 15:19:24 -0700 | [diff] [blame] | 23 | (older Pythons use a deprecated API for PyPI uploading). |
Eli Bendersky | 37648df | 2016-10-27 20:20:38 -0700 | [diff] [blame] | 24 | |
| 25 | - Tag in git. When pushing to GitHub, git push --tags |
| 26 | |
Eli Bendersky | 8dbd149 | 2013-08-03 06:07:08 -0700 | [diff] [blame] | 27 | Misc |
| 28 | ---- |
| 29 | |
Eli Bendersky | dfeac9e | 2017-01-28 07:08:43 -0800 | [diff] [blame] | 30 | yacc optimization: |
Eli Bendersky | 2660ca9 | 2013-08-03 06:35:09 -0700 | [diff] [blame] | 31 | - If parsetab.py/pyc doesn't exist in the path, the table will be reconstructed |
| 32 | anyway, regardless of the optimize parameter |
Eli Bendersky | 8dbd149 | 2013-08-03 06:07:08 -0700 | [diff] [blame] | 33 | - If it does exist: |
| 34 | - If optimize=True, the table will be loaded unconditionally |
Eli Bendersky | f29f92a | 2016-10-27 20:15:49 -0700 | [diff] [blame] | 35 | - If optimize=False, the table will be loaded only if it's older than the |
| 36 | grammar |
Eli Bendersky | 8dbd149 | 2013-08-03 06:07:08 -0700 | [diff] [blame] | 37 | |
| 38 | lex optimization: |
Eli Bendersky | f29f92a | 2016-10-27 20:15:49 -0700 | [diff] [blame] | 39 | - If optimize=False, the lexical table is re-computed and is not saved to a |
| 40 | lextab file |
Eli Bendersky | 8dbd149 | 2013-08-03 06:07:08 -0700 | [diff] [blame] | 41 | - If optimize=True: |
| 42 | - If lextab.py/pyc exists in the path, it will be loaded unconditionally |
| 43 | - If lextab.py/pyc doesn't exist, it will be created and loaded |