| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
|
|
|
| |
* Remove Python 2 compatibility
* remove 2/3 shims in pygments.util
* update setup.py metadata
* Remove unneeded object inheritance.
* Remove unneeded future imports.
|
| |
|
| |
|
|
|
|
| |
This should fix PR#1316 properly.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
While `pip3 install .` still works, `python3 setup.py install` does not (and
ditto for Python2), because subpackages of `pygments` don't get installed. Even
running `find_packages` on its own has consistent behavior:
```
$ python3
>>> from setuptools import setup, find_packages
>>> find_packages(exclude=['tests'])
['pygments', 'pygments.filters', 'pygments.lexers', 'pygments.formatters', 'pygments.styles']
>>> find_packages(include=['pygments'])
['pygments']
```
The bug seems to have been introduced in
8d0828bbfc5b8deb7525a19e1037704f644563da.
Tested on macOS 10.14 with Homebrew Python 2.7.17 and 3.7.5.
|
| |
|
|
|
|
| |
The tests package is found as a package due to presence of __init__.py. Use include to ensure only pygments gets installed.
|
| |
|
|
|
|
|
|
|
| |
On modern Python installations, setuptools should always be available
and should always be preferred. Can remove the fallback to distutils.
Replace the pygmentize script with a __main__.py in the package.
|
|
|
|
|
| |
Document support for Python 3.8 (released October 14th, 2019) and PyPy
and add them to the test matrix.
|
| |
|
| |
|
|
|
|
| |
The long description failed to parse due to whitespace issues.
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
This introduces support for some missing features to the Handlebars lexer:
Partials and path segments. Partials mostly appeared to work before, but the
`>` in `{{> ... }}` would appear as a syntax error, as could other
components of the partial. This change introduces support for:
* Standard partials: `{{> partialName}}`
* Partials with parameters: `{{> partialName varname="value"}}`
* Ddynamic partials: `{{> (partialFunc)}}`
* Ddynamic partials with lookups: `{{> (lookup ../path "partialName")}}`
* Partial blocks: `{{> @partial-block}}`
* Inline partials: `{{#*inline}}..{{/inline}}`
It also introduces support for path segments, which can reference content in
the current context or in a parent context. For instance, `this.name`,
`this/name`, `./name`, `../name`, `this/name`, etc. These are all now tracked
as variables.
|