Skip to content

Commit

Permalink
move cutoff in the past
Browse files Browse the repository at this point in the history
  • Loading branch information
Carreau committed Oct 4, 2023
1 parent 969ca3f commit 156d1fa
Show file tree
Hide file tree
Showing 3 changed files with 112 additions and 79 deletions.
11 changes: 8 additions & 3 deletions spec-0000/SPEC0_versions.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,12 @@
]
plus36 = timedelta(days=int(365 * 3))
plus24 = timedelta(days=int(365 * 2))
delta6month = timedelta(days=int(365 // 2))

# Release data

now = datetime.now()
cutoff = now - delta6month


def get_release_dates(package, support_time=plus24):
Expand Down Expand Up @@ -71,7 +73,7 @@ def get_release_dates(package, support_time=plus24):

for ver, release_date in sorted(release_date.items()):
drop_date = release_date + support_time
if drop_date >= datetime.now():
if drop_date >= cutoff:
releases[ver] = {
"release_date": release_date,
"drop_date": drop_date,
Expand All @@ -97,7 +99,7 @@ def get_release_dates(package, support_time=plus24):
package: {
version: dates
for version, dates in releases.items()
if dates["drop_date"] > now
if dates["drop_date"] > cutoff
}
for package, releases in package_releases.items()
}
Expand Down Expand Up @@ -145,7 +147,10 @@ def get_release_dates(package, support_time=plus24):

print("Saving drop schedule to schedule.md")
with open("schedule.md", "w") as fh:
for quarter in sorted(set(dq.index.get_level_values(0))):
# we collect package 6 month in the past, and drop the first quarter
# as we might have filtered some of the packages out depending on
# when we ran the script.
for quarter in list(sorted(set(dq.index.get_level_values(0))))[1:]:
fh.write("#### " + str(quarter).replace("Q", " - Quarter ") + ":\n\n")
fh.write("###### Recommend drop support for:\n\n")

Expand Down
14 changes: 14 additions & 0 deletions spec-0000/chart.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,15 @@ section python
3.12 : 2023-10-02,2026-10-01

section numpy
1.21.0 : 2021-06-22,2023-06-22
1.22.0 : 2021-12-31,2023-12-31
1.23.0 : 2022-06-22,2024-06-21
1.24.0 : 2022-12-18,2024-12-17
1.25.0 : 2023-06-17,2025-06-16
1.26.0 : 2023-09-16,2025-09-15

section scipy
1.7.0 : 2021-06-20,2023-06-20
1.8.0 : 2022-02-05,2024-02-05
1.9.0 : 2022-07-29,2024-07-28
1.10.0 : 2023-01-03,2025-01-02
Expand All @@ -29,6 +31,7 @@ section matplotlib
3.8.0 : 2023-09-15,2025-09-14

section pandas
1.3.0 : 2021-07-02,2023-07-02
1.4.0 : 2022-01-22,2024-01-22
1.5.0 : 2022-09-19,2024-09-18
2.0.0 : 2023-04-03,2025-04-02
Expand All @@ -38,19 +41,24 @@ section scikit-image
0.19.0 : 2021-12-03,2023-12-03
0.20.0 : 2023-02-28,2025-02-27
0.21.0 : 2023-06-02,2025-06-01
0.22.0 : 2023-10-03,2025-10-02

section networkx
2.6 : 2021-07-08,2023-07-08
2.7 : 2022-02-28,2024-02-28
2.8 : 2022-04-09,2024-04-08
3.0 : 2023-01-08,2025-01-07
3.1 : 2023-04-04,2025-04-03

section scikit-learn
1.0 : 2021-09-24,2023-09-24
1.1.0 : 2022-05-12,2024-05-11
1.2.0 : 2022-12-08,2024-12-07
1.3.0 : 2023-06-30,2025-06-29

section xarray
0.18.0 : 2021-05-06,2023-05-06
0.19.0 : 2021-07-23,2023-07-23
0.20.0 : 2021-11-02,2023-11-02
0.21.0 : 2022-01-28,2024-01-28
2022.3.0 : 2022-03-02,2024-03-01
Expand All @@ -70,6 +78,12 @@ section xarray
2023.9.0 : 2023-09-26,2025-09-25

section ipython
7.23.0 : 2021-04-30,2023-04-30
7.24.0 : 2021-05-28,2023-05-28
7.25.0 : 2021-06-25,2023-06-25
7.26.0 : 2021-08-01,2023-08-01
7.27.0 : 2021-08-27,2023-08-27
7.28.0 : 2021-09-25,2023-09-25
7.29.0 : 2021-10-30,2023-10-30
7.30.0 : 2021-11-26,2023-11-26
7.31.0 : 2022-01-05,2024-01-05
Expand Down
166 changes: 90 additions & 76 deletions spec-0000/schedule.md
Original file line number Diff line number Diff line change
@@ -1,115 +1,129 @@
#### 2023 - Quarter 3:

###### Recommend drop support for:

| | | |
|----|----|----|
|ipython |7.26.0 to 7.28.0 |released Aug 2021 and Sep 2021|
|networkx |2.6 |released Jul 2021|
|pandas |1.3.0 |released Jul 2021|
|scikit-learn |1.0 |released Sep 2021|
|xarray |0.19.0 |released Jul 2021|

#### 2023 - Quarter 4:

Recommend drop support for:
###### Recommend drop support for:

| | | |
| ------------ | ---------------- | ------------------------------ |
| ipython | 7.29.0 to 7.30.0 | released Oct 2021 and Nov 2021 |
| matplotlib | 3.5.0 | released Nov 2021 |
| numpy | 1.22.0 | released Dec 2021 |
| python | 3.9 | released Oct 2020 |
| scikit-image | 0.19.0 | released Dec 2021 |
| xarray | 0.20.0 | released Nov 2021 |
| | | |
|----|----|----|
|ipython |7.29.0 to 7.30.0 |released Oct 2021 and Nov 2021|
|matplotlib |3.5.0 |released Nov 2021|
|numpy |1.22.0 |released Dec 2021|
|python |3.9 |released Oct 2020|
|scikit-image |0.19.0 |released Dec 2021|
|xarray |0.20.0 |released Nov 2021|

#### 2024 - Quarter 1:

Recommend drop support for:
###### Recommend drop support for:

| | | |
| -------- | ------------------ | ------------------------------ |
| ipython | 7.31.0 to 8.2.0 | released Jan 2022 and Mar 2022 |
| networkx | 2.7 | released Feb 2022 |
| pandas | 1.4.0 | released Jan 2022 |
| scipy | 1.8.0 | released Feb 2022 |
| xarray | 0.21.0 to 2022.3.0 | released Jan 2022 and Mar 2022 |
| | | |
|----|----|----|
|ipython |7.31.0 to 8.2.0 |released Jan 2022 and Mar 2022|
|networkx |2.7 |released Feb 2022|
|pandas |1.4.0 |released Jan 2022|
|scipy |1.8.0 |released Feb 2022|
|xarray |0.21.0 to 2022.3.0 |released Jan 2022 and Mar 2022|

#### 2024 - Quarter 2:

Recommend drop support for:
###### Recommend drop support for:

| | | |
| ------------ | --------------- | ------------------------------ |
| ipython | 7.33.0 to 8.4.0 | released Apr 2022 and May 2022 |
| networkx | 2.8 | released Apr 2022 |
| numpy | 1.23.0 | released Jun 2022 |
| scikit-learn | 1.1.0 | released May 2022 |
| | | |
|----|----|----|
|ipython |7.33.0 to 8.4.0 |released Apr 2022 and May 2022|
|networkx |2.8 |released Apr 2022|
|numpy |1.23.0 |released Jun 2022|
|scikit-learn |1.1.0 |released May 2022|

#### 2024 - Quarter 3:

Recommend drop support for:
###### Recommend drop support for:

| | | |
| ---------- | -------------------- | ------------------------------ |
| ipython | 8.5.0 | released Sep 2022 |
| matplotlib | 3.6.0 | released Sep 2022 |
| pandas | 1.5.0 | released Sep 2022 |
| scipy | 1.9.0 | released Jul 2022 |
| xarray | 2022.6.0 to 2022.9.0 | released Jul 2022 and Sep 2022 |
| | | |
|----|----|----|
|ipython |8.5.0 |released Sep 2022|
|matplotlib |3.6.0 |released Sep 2022|
|pandas |1.5.0 |released Sep 2022|
|scipy |1.9.0 |released Jul 2022|
|xarray |2022.6.0 to 2022.9.0|released Jul 2022 and Sep 2022|

#### 2024 - Quarter 4:

Recommend drop support for:
###### Recommend drop support for:

| | | |
| ------------ | ---------------------- | ------------------------------ |
| ipython | 8.6.0 to 8.7.0 | released Oct 2022 and Nov 2022 |
| numpy | 1.24.0 | released Dec 2022 |
| python | 3.10 | released Oct 2021 |
| scikit-learn | 1.2.0 | released Dec 2022 |
| xarray | 2022.10.0 to 2022.12.0 | released Oct 2022 and Dec 2022 |
| | | |
|----|----|----|
|ipython |8.6.0 to 8.7.0 |released Oct 2022 and Nov 2022|
|numpy |1.24.0 |released Dec 2022|
|python |3.10 |released Oct 2021|
|scikit-learn |1.2.0 |released Dec 2022|
|xarray |2022.10.0 to 2022.12.0|released Oct 2022 and Dec 2022|

#### 2025 - Quarter 1:

Recommend drop support for:
###### Recommend drop support for:

| | | |
| ------------ | -------------------- | ------------------------------ |
| ipython | 8.8.0 to 8.12.0 | released Jan 2023 and Mar 2023 |
| matplotlib | 3.7.0 | released Feb 2023 |
| networkx | 3.0 | released Jan 2023 |
| scikit-image | 0.20.0 | released Feb 2023 |
| scipy | 1.10.0 | released Jan 2023 |
| xarray | 2023.1.0 to 2023.3.0 | released Jan 2023 and Mar 2023 |
| | | |
|----|----|----|
|ipython |8.8.0 to 8.12.0 |released Jan 2023 and Mar 2023|
|matplotlib |3.7.0 |released Feb 2023|
|networkx |3.0 |released Jan 2023|
|scikit-image |0.20.0 |released Feb 2023|
|scipy |1.10.0 |released Jan 2023|
|xarray |2023.1.0 to 2023.3.0|released Jan 2023 and Mar 2023|

#### 2025 - Quarter 2:

Recommend drop support for:
###### Recommend drop support for:

| | | |
| ------------ | -------------------- | ------------------------------ |
| ipython | 8.13.0 to 8.14.0 | released Apr 2023 and Jun 2023 |
| networkx | 3.1 | released Apr 2023 |
| numpy | 1.25.0 | released Jun 2023 |
| pandas | 2.0.0 | released Apr 2023 |
| scikit-image | 0.21.0 | released Jun 2023 |
| scikit-learn | 1.3.0 | released Jun 2023 |
| scipy | 1.11.0 | released Jun 2023 |
| xarray | 2023.4.0 to 2023.6.0 | released Apr 2023 and Jun 2023 |
| | | |
|----|----|----|
|ipython |8.13.0 to 8.14.0 |released Apr 2023 and Jun 2023|
|networkx |3.1 |released Apr 2023|
|numpy |1.25.0 |released Jun 2023|
|pandas |2.0.0 |released Apr 2023|
|scikit-image |0.21.0 |released Jun 2023|
|scikit-learn |1.3.0 |released Jun 2023|
|scipy |1.11.0 |released Jun 2023|
|xarray |2023.4.0 to 2023.6.0|released Apr 2023 and Jun 2023|

#### 2025 - Quarter 3:

Recommend drop support for:
###### Recommend drop support for:

| | | |
| ---------- | -------------------- | ------------------------------ |
| ipython | 8.15.0 to 8.16.0 | released Sep 2023 and Sep 2023 |
| matplotlib | 3.8.0 | released Sep 2023 |
| numpy | 1.26.0 | released Sep 2023 |
| pandas | 2.1.0 | released Aug 2023 |
| xarray | 2023.7.0 to 2023.9.0 | released Jul 2023 and Sep 2023 |
| | | |
|----|----|----|
|ipython |8.15.0 to 8.16.0 |released Sep 2023 and Sep 2023|
|matplotlib |3.8.0 |released Sep 2023|
|numpy |1.26.0 |released Sep 2023|
|pandas |2.1.0 |released Aug 2023|
|xarray |2023.7.0 to 2023.9.0|released Jul 2023 and Sep 2023|

#### 2025 - Quarter 4:

Recommend drop support for:
###### Recommend drop support for:

| | | |
| ------ | ---- | ----------------- |
| python | 3.11 | released Oct 2022 |
| | | |
|----|----|----|
|python |3.11 |released Oct 2022|
|scikit-image |0.22.0 |released Oct 2023|

#### 2026 - Quarter 4:

Recommend drop support for:
###### Recommend drop support for:

| | | |
|----|----|----|
|python |3.12 |released Oct 2023|

| | | |
| ------ | ---- | ----------------- |
| python | 3.12 | released Oct 2023 |

0 comments on commit 156d1fa

Please sign in to comment.