Skip to content

Commit

Permalink
Sort packages
Browse files Browse the repository at this point in the history
  • Loading branch information
raoulcollenteur committed Sep 25, 2024
1 parent b3f8d05 commit 1c7e68e
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 6 deletions.
9 changes: 9 additions & 0 deletions generate_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ def generate_list():
categories[category].append((package_name, package))

for category, packages in categories.items():
packages.sort(
key=lambda x: x[0].lower()
) # Sort packages alphabetically by name
file.write(f"## {category}\n")
file.write(
"| Name | Description | PyPI Conda | Docs | CI | Paper |\n"
Expand Down Expand Up @@ -109,7 +112,13 @@ def generate_list():
)

if legacy_packages:
legacy_packages.sort(
key=lambda x: x[0].lower()
) # Sort legacy packages alphabetically by name
file.write("\n## Legacy Packages\n")
file.write(
"These packages are not maintained anymore, but might still be useful for some users.\n"
)
file.write(
"| Name | Description | PyPI Conda | Docs | CI | Paper |\n"
)
Expand Down
12 changes: 6 additions & 6 deletions list.json
Original file line number Diff line number Diff line change
Expand Up @@ -660,7 +660,7 @@
"htimeseries": {
"description": "This module provides the HTimeseries class, which is a layer on top of pandas, offering a little more functionality.",
"url": "https://github.com/openmeteo/htimeseries",
"category": "Time Series (Analysis)",
"category": "Miscellaneous",
"docs": "",
"CI": 0,
"last_update": "2024-04-14T08:49:20",
Expand All @@ -674,7 +674,7 @@
"HydroAnalysis": {
"description": "Python package to calculate indices and metrics useful in the everyday job of a hydrologist.",
"url": "https://github.com/dalmo1991/HydroAnalysis",
"category": "Time Series (Analysis)",
"category": "Miscellaneous",
"docs": "https://hydroanalysis.readthedocs.io/en/latest/",
"CI": 0,
"last_update": "2021-11-20T11:50:24",
Expand All @@ -683,12 +683,12 @@
"doi_paper": "",
"conda": "",
"version": "1.0.0",
"legacy": 0
"legacy": 1
},
"HydroPandas": {
"description": "Module for loading time series data into custom DataFrames",
"url": "https://github.com/ArtesiaWater/hydropandas",
"category": "Time Series (Analysis)",
"category": "Data Collection",
"docs": "https://hydropandas.readthedocs.io",
"CI": 0,
"last_update": "2024-07-12T16:09:04",
Expand Down Expand Up @@ -1122,12 +1122,12 @@
"EFlowCalc": {
"description": "Calculator of Streamflow Characteristics.",
"url": "https://github.com/ThibHlln/eflowcalc",
"category": "Miscellaneous",
"category": "Statistics",
"docs": "",
"CI": 0,
"last_update": "2021-04-26T17:05:09",
"pypi": "https://pypi.org/project/EFlowCalc/",
"doi_software": "",
"doi_software": "https://zenodo.org/badge/latestdoi/153001813",
"doi_paper": "",
"conda": "",
"version": "0.1.0",
Expand Down

0 comments on commit 1c7e68e

Please sign in to comment.