-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add missing support for preprocessor
- Loading branch information
Showing
4 changed files
with
39 additions
and
13 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
language: python | ||
python: | ||
- 3.8 | ||
|
||
stages: | ||
# Only execute deployment stage on tagged release commits in the form of "v1.2.3" | ||
# and from your repository (e.g. not PRs). | ||
# Also allows alpha/beta releases such as "v1.2.3b2" | ||
- name: deploy | ||
if: repo = SystemRDL/pygments-systemrdl AND tag =~ ^v\d+\.\d+\.\w+$ | ||
|
||
jobs: | ||
include: | ||
# Deploy source distribution | ||
- stage: deploy | ||
name: Deploy source distribution | ||
install: python -m pip install twine | ||
script: python setup.py sdist --formats=gztar | ||
after_success: python -m twine upload --skip-existing dist/*.tar.gz |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
__version__ = "1.2.0" |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,9 +4,14 @@ | |
with open("README.md", "r") as fh: | ||
long_description = fh.read() | ||
|
||
with open(os.path.join("rdl_pygments", "__about__.py")) as f: | ||
v_dict = {} | ||
exec(f.read(), v_dict) | ||
version = v_dict['__version__'] | ||
|
||
setuptools.setup ( | ||
name='pygments-systemrdl', | ||
version="1.1.0", | ||
version=version, | ||
author="Alex Mykyta", | ||
author_email="[email protected]", | ||
description="SystemRDL 2.0 lexer extension for Pygments", | ||
|