Skip to content

Commit 5a8eadc

Browse files
authored
Merge pull request #53 from cs01/cs01/various-updates
change pipx owner to PyPA Add cibuildwheel Add Owner column Add "security" feature (missing when pip-audit was added)
2 parents c465226 + 09b205a commit 5a8eadc

File tree

4 files changed

+58
-30
lines changed

4 files changed

+58
-30
lines changed

backend/githubData.ts

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ const tools = [
3636
owner: "theacodes",
3737
},
3838
{
39-
owner: "pipxproject",
39+
owner: "pypa",
4040
name: "pipx",
4141
},
4242
{
@@ -135,11 +135,15 @@ const tools = [
135135
name: "pip-audit",
136136
owner: "trailofbits",
137137
},
138+
{
139+
name: "cibuildwheel",
140+
owner: "pypa",
141+
},
138142
];
139143

140144
function getQuery(name: string, owner: string) {
141145
return `query {
142-
repository(owner: "${owner}", name: "${name}") {
146+
repository(owner: "${owner}", name: "${name}", followRenames: true) {
143147
stargazers {
144148
totalCount
145149
}
@@ -166,13 +170,13 @@ function getQuery(name: string, owner: string) {
166170
}
167171

168172
export async function fetchGithubData() {
169-
const data = (
170-
await Promise.all(
171-
tools.map((t) => {
172-
return octokit.graphql(getQuery(t.name, t.owner));
173-
})
174-
)
175-
).map((d) => d["repository"]);
173+
const data = await Promise.all(
174+
tools.map(async (t) => {
175+
const r = await octokit.graphql(getQuery(t.name, t.owner));
176+
// @ts-ignore
177+
return { ...r["repository"], owner: t.owner };
178+
})
179+
);
176180
fs.writeFileSync("./data.json", JSON.stringify(data, null, 4));
177181
return data;
178182
}

frontend/src/Tools.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,10 @@ export const columns = [
7676
Header: 'Created',
7777
accessor: 'timeSinceCreated',
7878
},
79+
{
80+
Header: 'Owner',
81+
accessor: 'owner',
82+
},
7983
{
8084
Header: 'Stars',
8185
accessor: 'stargazers.totalCount',

frontend/src/Types.ts

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -34,29 +34,30 @@ export type Tool = {
3434
} & GithubGraphqlShape;
3535

3636
export type Feature =
37-
| 'core utilities'
38-
| 'publish packages'
37+
| 'application deployment'
3938
| 'build packages'
40-
| 'language bindings'
4139
| 'builds executable'
42-
| 'application deployment'
43-
| 'task automation'
40+
| 'convert between lockfile formats'
41+
| 'core utilities'
42+
| 'dependency resolver'
43+
| 'ecosystem'
4444
| 'install cli apps'
4545
| 'install libraries'
4646
| 'install Python interpreter'
47-
| 'standard library'
48-
| 'dependency resolver'
47+
| 'language bindings'
4948
| 'manual virtual environment creation'
50-
| 'virtual environment management'
5149
| 'package manager'
52-
| 'ecosystem'
53-
| 'convert between lockfile formats'
54-
| 'PEP-440'
5550
| 'PEP-425'
56-
| 'PEP-582'
57-
| 'PEP-518'
51+
| 'PEP-440'
5852
| 'PEP-517'
59-
| 'PEP-660';
53+
| 'PEP-518'
54+
| 'PEP-582'
55+
| 'PEP-660'
56+
| 'publish packages'
57+
| 'security'
58+
| 'standard library'
59+
| 'task automation'
60+
| 'virtual environment management';
6061

6162
// TODO find out how to programmatically link this to the type
6263
// @ts-ignore

frontend/src/initialToolData.tsx

Lines changed: 26 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,12 @@ const _initialToolData: Tool[] = [
1616
{
1717
features: ['install cli apps', 'virtual environment management'],
1818
name: 'pipx',
19-
toolDescription:
20-
'pipx runs and installs cli tools in virtual environments. It focuses and improves on a specific use case handled by pip.',
19+
toolDescription: (
20+
<div>
21+
pipx runs and installs cli tools in virtual environments. It focuses on
22+
and improves on a specific use case handled by pip.
23+
</div>
24+
),
2125
useCases: ['Install cli tools to isolated environment'],
2226
dependsOn: ['pip', 'venv'],
2327
},
@@ -266,6 +270,7 @@ const _initialToolData: Tool[] = [
266270
createdAt: '2015-09-13T00:00:00Z',
267271
primaryLanguage: { name: 'Python' },
268272
url: 'https://docs.python.org/3/library/venv.html',
273+
owner: 'CPython',
269274
},
270275
{
271276
name: 'Nuitka',
@@ -357,17 +362,31 @@ const _initialToolData: Tool[] = [
357362
toolDescription: (
358363
<div>
359364
<p>
360-
pip-audit is a tool for scanning Python environments for packages
361-
with known vulnerabilities. It uses the
365+
pip-audit is a tool for scanning Python environments for packages with
366+
known vulnerabilities. It uses the
362367
<a href="https://github.com/pypa/advisory-database">
363-
Python Packaging Advisory Database</a> via the PyPI JSON API as a
364-
source of vulnerability reports.
368+
Python Packaging Advisory Database
369+
</a>{' '}
370+
via the PyPI JSON API as a source of vulnerability reports.
365371
</p>
366372
</div>
367373
),
368374
useCases: ['Audit Python packages for known vulnerabilities'],
369375
dependsOn: ['pip', 'venv'],
370-
}
376+
},
377+
{
378+
name: 'cibuildwheel',
379+
features: ['build packages'],
380+
toolDescription: (
381+
<div>
382+
On your CI server, cibuildwheel builds and tests your wheels across all
383+
of your platforms (macOS, linux, windows). Supports GitHub Actions,
384+
Azure Pipelines, Travis CI, AppVeyor, CircleCI, and GitLab CI.
385+
</div>
386+
),
387+
useCases: [],
388+
dependsOn: [],
389+
},
371390
];
372391
_initialToolData.sort((a, b) => {
373392
return a.name.toLocaleLowerCase() < b.name.toLocaleLowerCase() ? -1 : 1;

0 commit comments

Comments
 (0)