Skip to content

Commit

Permalink
1.4.0 finalization
Browse files Browse the repository at this point in the history
  • Loading branch information
KinoxKlark committed Oct 31, 2021
1 parent aa5be3b commit 9e97c24
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 12 deletions.
8 changes: 4 additions & 4 deletions .appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -288,10 +288,10 @@

environment:
matrix:
#- APPVEYOR_BUILD_WORKER_IMAGE: Ubuntu
# APPVEYOR_JOB_NAME: "python37-x64-ubuntu"
#- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
# APPVEYOR_JOB_NAME: "python37-x64-vs2015"
- APPVEYOR_BUILD_WORKER_IMAGE: Ubuntu
APPVEYOR_JOB_NAME: "python37-x64-ubuntu"
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
APPVEYOR_JOB_NAME: "python37-x64-vs2015"
- APPVEYOR_BUILD_WORKER_IMAGE: macos-mojave
APPVEYOR_JOB_NAME: "python37-x64-macos-mojave"

Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
[![completion](https://img.shields.io/badge/completion-81%25%20%28373%20of%20458%29-blue.svg)](https://github.com/swistakm/pyimgui)
[![completion](https://img.shields.io/badge/completion-81%25%20%28375%20of%20460%29-blue.svg)](https://github.com/pyimgui/pyimgui)
[![Coverage Status](https://coveralls.io/repos/github/swistakm/pyimgui/badge.svg?branch=master)](https://coveralls.io/github/swistakm/pyimgui?branch=master)
[![Documentation Status](https://readthedocs.org/projects/pyimgui/badge/?version=latest)](https://pyimgui.readthedocs.io/en/latest/?badge=latest)

Builds:

* [![Build status](https://ci.appveyor.com/api/projects/status/s7pud6on7dww89iv?svg=true)](https://ci.appveyor.com/project/swistakm/pyimgui) (Windows)
* [![Build Status](https://travis-ci.com/swistakm/pyimgui.svg?branch=master)](https://travis-ci.com/github/swistakm/pyimgui/branches) (OS X & Linux)
* [![Build status](https://ci.appveyor.com/api/projects/status/mr97t941p6k4c261/branch/master?svg=true)](https://ci.appveyor.com/project/KinoxKlark/pyimgui/branch/master)


# pyimgui
Expand Down Expand Up @@ -46,6 +45,7 @@ functionalities. Some low-level API elements and complex widgets (like plots)
may be missing. We are working hard to provide 100% feature mapping of the core
ImGui library. The *completion badge* shows up-to-date status of that goal.

> The current version of *pyimgui* is based on an old version of *DearImgui* and consequently doesn't have its most recent fixes and functionalities. Version 2.0 of *pyimgui* is under development and will support recent features. If you are interested, you can look at the corresponding branch.
# Project distribution

Expand Down
12 changes: 7 additions & 5 deletions ci/completion.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from urllib.parse import quote

BASE_URL = 'https://img.shields.io/badge/completion-%s-blue.svg'
BADGE_TEMPLATE = "[![completion](%s)](https://github.com/swistakm/pyimgui)"
BADGE_TEMPLATE = "[![completion](%s)](https://github.com/pyimgui/pyimgui)"
ALL_RE = re.compile(r'(?!(^\s*$)|(^\s*#)).*[✗✓]')
DONE_RE = re.compile(r'(?!(^\s*$)|(^\s*#)).*✓')
BADGE_RE = re.compile(r'\[!\[completion\]\(.*\)\](\(.*\))?\s*$')
Expand Down Expand Up @@ -42,11 +42,13 @@ def with_nm(ctx, srclib, dstlib):


@cli.command(name='with-pxd')
@click.argument('pxd_file', type=click.File('r'))
@click.argument('pxd_files', type=click.File('r', encoding='utf-8'), nargs=-1)
@click.pass_context
def with_pxd(ctx, pxd_file):
lines = pxd_file.readlines()

def with_pxd(ctx, pxd_files):
lines = []
for pxd_file in pxd_files:
lines += pxd_file.readlines()

all_count = len(list(filter(ALL_RE.match, lines)))
done_count = len(list(filter(DONE_RE.match, lines)))

Expand Down

0 comments on commit 9e97c24

Please sign in to comment.