Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
107 commits
Select commit Hold shift + click to select a range
f0f9102
Add tests to cover Finnish dates with 'klo' (#1301)
serhii73 Jan 23, 2026
d2e236f
Fix explicit +/- signs in relative date offsets (#1303)
serhii73 Jan 31, 2026
0e87891
Release notes for 1.3.0 (#1305)
Gallaecio Feb 4, 2026
c2ff31c
Bump version: 1.2.2 → 1.3.0
AdrianAtZyte Feb 4, 2026
24dac43
Allow md5hash to function in fips environments (#1267)
trevor-scale Feb 4, 2026
35e7f61
Use different timezones to run CI tests (#1259)
gutsytechster Feb 5, 2026
0f04199
Add Bosnian Cyrillic (ijekavica) date translations (#1293)
branislavroljic Feb 5, 2026
169c4ce
New browser based demo (#1306)
gnyman Feb 5, 2026
6ca550f
Allow 'N {interval} from now' (#502) (#1271)
jakeogh Feb 5, 2026
cd5f226
Honor `REQUIRE_PARTS` for ambiguous month-number inputs by retrying y…
MrinalJain17 Feb 5, 2026
e0939ec
Replace 'setup.py install' (#1310)
EpicWink Feb 10, 2026
8cdcf80
Make logo more translucent (#1312)
EpicWink Feb 10, 2026
e22e62e
Fix word-number phrases parsing (e.g., 'two days later') (#1316)
serhii73 Mar 2, 2026
5add61c
Use official publish GitHub action in CI (#1309)
EpicWink Mar 19, 2026
341d308
Fix deployment
AdrianAtZyte Mar 20, 2026
62710c0
Add a security policy (#1318)
AdrianAtZyte Mar 24, 2026
7a3113e
Add the en-US locale (#1222)
AdrianAtZyte Mar 25, 2026
d405657
1.4.0 release notes and fixes (#1319)
AdrianAtZyte Mar 26, 2026
60b8a75
Bump version: 1.3.0 → 1.4.0
AdrianAtZyte Mar 26, 2026
3b4a816
Update Read the Docs config to use ubuntu-24.04 (#1320)
eliasdorneles Mar 31, 2026
b72ed09
Remove fastText support and enable numpy 2.x compatibility (#1315)
serhii73 Apr 9, 2026
373ede9
fix: preserve whitespace when removing translation tokens (fix #1302)…
serhii73 Apr 28, 2026
33ec7ef
Better cs translation (#1325)
honzaHlavnicka May 7, 2026
075712f
Handle spaces around operators (#1327)
gutsytechster May 8, 2026
85af00e
Document region usage and stabilize current-month parsing (#1332)
tine1117 Jun 1, 2026
24bfa9e
Fix search_dates language fallback (#1331)
Kill1ngPig Jun 1, 2026
b903e69
fix: Parse 1mon ago (#1329)
serhii73 Jun 4, 2026
b107ac3
Replace internal OrderedDict usage with dict (#1328)
serhii73 Jun 4, 2026
5c437a1
Move project metadata and configuration to 'pyproject.toml' (#1311)
EpicWink Jun 4, 2026
333e519
Fix merge issue (#1333)
AdrianAtZyte Jun 5, 2026
081d251
fix(nb): improve Norwegian Bokmål date parsing (#1334)
terhoy Jun 5, 2026
0d11d82
Locale order support (#789)
dariuschira Jun 8, 2026
5c6d97f
fix: Preserve explicit signs for years when combined with decades (#1…
serhii73 Jun 8, 2026
98b9c32
make relative-date regex digit quantifiers possessive (#1335)
alhudz Jun 9, 2026
a049fd1
Add Korean alternative date expressions (#1289)
seungwoo-ji-03 Jun 9, 2026
08c78d3
1.4.1 release (#1337)
serhii73 Jun 15, 2026
eb111c2
Improve Czech (cs) language data (#1172) (#1172)
TheXer Jun 22, 2026
33e913c
italian: support 'un ora fa', 'un'ora fa', 'oggi alle 11:00'. (#1049)
realtimeprojects Jun 23, 2026
273eb23
fix: %j (day of year) format directive ignored month/day in parse_wit…
binggao1230 Jun 26, 2026
762dfff
fix: Apply PREFER_DATES_FROM logic to custom date formats (Fixes #445…
adnan-awan Jul 8, 2026
93b3c63
Update CLDR data to 44.1.0 and add hour/duration support (#1343)
serhii73 Jul 22, 2026
cf6d3e5
Add "ngram" search strategy to search_dates (#1351)
serhii73 Jul 22, 2026
315e396
Fix ISO8601 parsing with explicit languages (#1352)
serhii73 Jul 23, 2026
06ca032
Do not read the day as a two-digit year after the year position (#1358)
serhii73 Jul 29, 2026
d886e23
Parse dates wrapped in harmless extra text (Close #518) (#1356)
serhii73 Aug 3, 2026
ff3dcb9
Specify README header content as RST (#1360)
EpicWink Aug 3, 2026
b1f603e
1.4.2 release (#1361)
serhii73 Aug 4, 2026
764091d
Fix timezone ambiguity using tz database (#1322) (#1366)
serhii73 Aug 12, 2026
de7b986
tests: add CodSpeed benchmarks (#1365)
serhii73 Aug 13, 2026
cd9bb13
Make thread-safe (#1346)
AdrianAtZyte Aug 24, 2026
6b5f17d
Reject a %j day of year that the parsed year does not have (#271) (#1…
serhii73 Aug 28, 2026
27182cd
Avoid shared language_detector and locale cache in search_dates (#1371)
Steve0x2a Sep 3, 2026
9ce60b1
1.4.3 release (#1376)
serhii73 Sep 3, 2026
d10d0f7
Fix raw-HTML pattern in README parsing (#1359)
EpicWink Sep 7, 2026
f766cee
Repair documented contributor test, packaging, and regeneration comma…
jackwalkerlabs Sep 8, 2026
6114c90
Run the test matrix nightly and turn warnings into errors (#1382)
serhii73 Sep 9, 2026
a131f78
Parse Vietnamese dates with zero-padded months (#1297) (#1338)
binggao1230 Sep 15, 2026
5e77cac
Find a date written next to a relative one without a comma (#695) (#1…
serhii73 Sep 16, 2026
901414a
Read the direction of a relative expression written next to punctuati…
serhii73 Sep 22, 2026
2c7ffb9
fix: preserve complete week dates when parsing custom formats (#1381)
ryanchou1994 Sep 23, 2026
ef140a8
Read year-first dates as YMD unless DATE_ORDER starts with the year (…
AdrianAtZyte Sep 28, 2026
3ec5fe3
Fix timezone parser ignoring Unicode dash-like UTC offset characters …
yamilmaud Sep 29, 2026
7385b82
Swap day and month for any DATE_ORDER when they do not fit (#1431)
AdrianAtZyte Sep 30, 2026
2ab3588
Fix weekday/month abbreviation conflicts in translation (#1061) (#1476)
yamilmaud Sep 30, 2026
b373ff7
fix: parse dates with a numeric offset and redundant tz abbreviation …
Sanjays2402 Sep 30, 2026
f62b33c
Parse Thai relative dates with spaced ago/in words (#1411)
AdrianAtZyte Sep 30, 2026
f3672f0
Add a pull request template (#1404)
AdrianAtZyte Sep 30, 2026
0f6b389
Stop reading "Nth day" as a number of days in English dates (#1412)
AdrianAtZyte Sep 30, 2026
e9e3cad
Explain how DEFAULT_LANGUAGES relates to the languages argument (#1422)
AdrianAtZyte Sep 30, 2026
bfab00c
Harden GitHub Actions and watch for new CLDR releases (#1462)
AdrianAtZyte Sep 30, 2026
a958837
Document search_dates parameters and add it to the API reference (#1468)
AdrianAtZyte Sep 30, 2026
7d50f3b
Add a performance section to the docs (#1494)
AdrianAtZyte Sep 30, 2026
49ee527
Cover every reachable time span path and drop the unreachable ones (#…
AdrianAtZyte Sep 30, 2026
afe7a4c
Parse French Republican calendar dates (#1483)
AdrianAtZyte Sep 30, 2026
2d06c1c
Raise a clear error when the local timezone cannot be determined (#1403)
AdrianAtZyte Sep 30, 2026
ed396fc
Upgrade ruff (#1406)
AdrianAtZyte Sep 30, 2026
e3a3888
Add type hints (#1457)
AdrianAtZyte Sep 30, 2026
a82a8c2
Stop dropping extra numbers when parsing dates (#1480)
AdrianAtZyte Sep 30, 2026
a3fafe5
Add a script to evaluate dateparser on the dataset from #928 (#1463)
AdrianAtZyte Sep 30, 2026
0961388
Fix mypy and ruff errors in the article dates script (#1499)
AdrianAtZyte Sep 30, 2026
9a266e5
Bump the github-actions group with 5 updates (#1498)
dependabot[bot] Sep 30, 2026
778db63
Add a Minguo calendar for Taiwanese dates (#1489)
AdrianAtZyte Sep 30, 2026
0d9c72b
Apply PREFER_DAY_OF_MONTH before PREFER_DATES_FROM picks the year (#1…
AdrianAtZyte Sep 30, 2026
36d0af5
Apply PREFER_DAY_OF_MONTH and PREFER_MONTH_OF_YEAR to relative dates …
AdrianAtZyte Sep 30, 2026
007661f
Report which date parts come from the input in DateData.parts (#1408)
AdrianAtZyte Sep 30, 2026
e77f110
Parse "the Nth of last/this/next month" as a day of that month (#1414)
AdrianAtZyte Sep 30, 2026
6bd27c4
Parse ISO 8601 fractional seconds written with a decimal comma (#1467)
AdrianAtZyte Sep 30, 2026
ab3027d
Keep full stops between digits in search_dates sentences (#1471)
AdrianAtZyte Sep 30, 2026
a495650
Try other meanings of ambiguous words when a date does not parse (#1491)
AdrianAtZyte Sep 30, 2026
e64dd08
Find dates joined by words that search skips, like "and" (#1488)
AdrianAtZyte Sep 30, 2026
41ca9d0
Parse Egyptian and informal ة→ه spellings of Arabic date words (#1493)
AdrianAtZyte Sep 30, 2026
dd49b2d
Match date_formats month and weekday names in the given languages (#1…
AdrianAtZyte Sep 30, 2026
c8d6a17
Take the current date from the configured time zone (#1427)
AdrianAtZyte Sep 30, 2026
cf72835
Parse AM/PM written before the time (#1469)
AdrianAtZyte Sep 30, 2026
decca23
Parse Chinese and Japanese dates with spaces around 年, 月 and 日 (#1477)
AdrianAtZyte Sep 30, 2026
13da631
Read a lone number next to a year as the month under any DATE_ORDER (…
AdrianAtZyte Sep 30, 2026
72060dc
Find dates written right after a label and a colon in search_dates (#…
AdrianAtZyte Sep 30, 2026
5b31fe4
Parse Swedish ordinal day suffixes like "24:e" and "1:a" (#1484)
AdrianAtZyte Sep 30, 2026
d305145
Parse parts of the day with configurable times (#1473)
AdrianAtZyte Sep 30, 2026
4574502
Deprecate dateparser.timezone_parser.convert_to_local_tz (#1481)
AdrianAtZyte Sep 30, 2026
9073f25
Parse Roman numeral years (#1482)
AdrianAtZyte Sep 30, 2026
260fe0c
Close spam PRs automatically (#1533)
AdrianAtZyte Oct 2, 2026
b7d0e8b
Add a STRICT_DATE_ORDER setting to enforce the year position or the w…
serhii73 Oct 2, 2026
fed9cf9
Apply an explicit DATE_ORDER to every date that search_dates finds (#…
serhii73 Oct 5, 2026
710600b
Parse Czech relative dates without the numeral 1, like "před týden" (…
yamilmaud Oct 6, 2026
a62139f
Parse Czech accusative minute and second forms, like "před minutu"
yamilmaud Oct 6, 2026
4a794c9
Parse relative dates without the numeral 1 in more languages (#351)
yamilmaud Oct 6, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
12 changes: 12 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
version: 2
updates:
- package-ecosystem: github-actions
directory: "/"
schedule:
interval: monthly
groups:
github-actions:
patterns:
- "*"
cooldown:
default-days: 7
3 changes: 3 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Resolves #NNNN.

- [ ] I have read the [contributing guide](https://dateparser.readthedocs.io/en/latest/contributing.html) and [set up pre-commit](https://pre-commit.com/#quick-start).
8 changes: 4 additions & 4 deletions .github/workflows/cifuzz.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,26 +9,26 @@ jobs:
steps:
- name: Build Fuzzers
id: build
uses: google/oss-fuzz/infra/cifuzz/actions/build_fuzzers@master
uses: google/oss-fuzz/infra/cifuzz/actions/build_fuzzers@2820b2b71f58013e7f2ef2f87089433a075561d8 # master
with:
oss-fuzz-project-name: 'dateparser'
language: python
- name: Run Fuzzers
uses: google/oss-fuzz/infra/cifuzz/actions/run_fuzzers@master
uses: google/oss-fuzz/infra/cifuzz/actions/run_fuzzers@2820b2b71f58013e7f2ef2f87089433a075561d8 # master
with:
oss-fuzz-project-name: 'dateparser'
language: python
fuzz-seconds: 600
output-sarif: true
- name: Upload Crash
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
if: failure() && steps.build.outcome == 'success'
with:
name: artifacts
path: ./out/artifacts
- name: Upload Sarif
if: always() && steps.build.outcome == 'success'
uses: github/codeql-action/upload-sarif@v2
uses: github/codeql-action/upload-sarif@2892aa5e19bbd11bc0cff5427e3b750a04d9e3c2 # v4.38.2
with:
# Path to SARIF file relative to the root of the repository
sarif_file: cifuzz-sarif/results.sarif
Expand Down
54 changes: 54 additions & 0 deletions .github/workflows/cldr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: CLDR
on:
# CLDR releases come every few months, so a monthly check is timely enough.
schedule:
- cron: "43 5 1 * *"
workflow_dispatch:

permissions:
contents: read

jobs:
check:
name: Check for a newer CLDR release
if: github.ref == 'refs/heads/master'
runs-on: ubuntu-latest
timeout-minutes: 5
permissions:
contents: read
issues: write
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: File an issue if the bundled CLDR data is out of date
env:
GH_TOKEN: ${{ github.token }}
GH_REPO: ${{ github.repository }}
LABEL: cldr-update
run: |
set -euo pipefail
current="$(grep -oP 'cldr_version = "\K[^"]+' dateparser_scripts/utils.py)"
# The latest release excludes alphas and betas.
latest="$(gh api repos/unicode-org/cldr-json/releases/latest --jq .tag_name)"
echo "Bundled: $current, latest: $latest."
if [ "$current" = "$latest" ]; then
exit 0
fi
gh label create "$LABEL" --force --color 5319e7 \
--description "Filed by the CLDR workflow"
existing="$(gh issue list --state open --label "$LABEL" --limit 1 \
--json number --jq '.[0].number // empty')"
if [ -n "$existing" ]; then
echo "Already tracked in #$existing."
exit 0
fi
gh issue create --title "Update the CLDR data to $latest" \
--label "$LABEL" --label "Type: Maintenance" --body-file - <<EOF
The bundled CLDR data is $current, and the latest CLDR release is
[$latest](https://github.com/unicode-org/cldr-json/releases/tag/$latest).

To update, change \`cldr_version\` in
\`dateparser_scripts/utils.py\` and regenerate the data with the
scripts in \`dateparser_scripts/\`.
EOF
295 changes: 295 additions & 0 deletions .github/workflows/close-spam-prs.yml

Large diffs are not rendered by default.

58 changes: 58 additions & 0 deletions .github/workflows/codspeed.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
name: CodSpeed
on:
push:
branches:
- master
pull_request:
branches:
- master
paths:
- dateparser/**
- dateparser_data/**
- tests/benchmarks/**
- pytest.ini
- tox.ini
- pyproject.toml
- .github/workflows/codspeed.yml
# Lets CodSpeed trigger a run to collect the initial baseline.
workflow_dispatch:

# Superseded runs of the same pull request are cancelled. Outside pull requests
# the group is unique per run, so a master baseline is never cancelled.
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }}
cancel-in-progress: true

permissions:
contents: read

jobs:
benchmarks:
name: Run benchmarks
runs-on: ubuntu-latest
# A reintroduced #1335-style regression makes the benchmarks orders of
# magnitude slower, so cap the job instead of letting it run for hours.
timeout-minutes: 30
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Set up Python
uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
with:
python-version: "3.13"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install tox
tox -e benchmark --notest
- name: Run benchmarks
uses: CodSpeedHQ/action@373d6868929f444bc08d901fd0eb0ad52a8875ea # v5.2.1
with:
mode: simulation
# The step above already built the environment, so the measured command
# only runs pytest instead of packaging and installing again.
run: tox -e benchmark --skip-pkg-install
34 changes: 30 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,15 @@ on:
pull_request:
branches:
- master
# Called by the Nightly workflow, which re-runs these same legs daily. The
# schedule lives there and not here because GitHub disables a workflow that
# has a schedule after 60 days without repository activity, and a disabled
# workflow answers none of its triggers, which would take pull request runs
# down with it.
workflow_call:
permissions:
contents: read

jobs:
build:
name: Build
Expand All @@ -16,10 +25,13 @@ jobs:
include:
- python-version: "3.14"
toxenv: pre-commit
- python-version: "3.10"
toxenv: mypy
- python-version: "3.10"
toxenv: min
- python-version: "3.10"
toxenv: min-all
- python-version: "3.10"
- python-version: "3.11"
- python-version: "3.12"
- python-version: "3.14"
Expand All @@ -30,10 +42,18 @@ jobs:
toxenv: docs
- python-version: "3.14"
toxenv: twinecheck
- python-version: "3.13"
toxenv: py
timezone: "Pacific/Auckland"
- python-version: "3.13"
toxenv: py
timezone: "Pacific/Fiji"
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: 'Set up Python ${{ matrix.python-version }}'
uses: actions/setup-python@v5
uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
with:
python-version: ${{ matrix.python-version }}
- name: Install language-pack-fr
Expand All @@ -43,8 +63,14 @@ jobs:
python -m pip install --upgrade pip
pip install tox
- name: Run tests
run: tox -e ${{ matrix.toxenv || 'py' }}
run: |
TZ=${{ matrix.timezone || 'UTC' }} echo "Running tests with timezone: $TZ"
TZ=${{ matrix.timezone || 'UTC' }} tox -e ${{ matrix.toxenv || 'py' }}
- name: Upload coverage.xml to codecov
uses: codecov/codecov-action@v5
# A nightly run, scheduled or dispatched, re-tests a commit that already
# has a coverage report, so uploading again only repeats the Codecov
# notification for that SHA.
if: github.event_name == 'push' || github.event_name == 'pull_request'
uses: codecov/codecov-action@303a32d7a59b442fa8d48b6a1cc6825c09c847a5 # v7.1.1
with:
token: ${{ secrets.CODECOV_TOKEN }}
78 changes: 78 additions & 0 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
name: Nightly
on:
# Dependency, time zone database and calendar drift arrives with no commit
# behind it, and tests that only fail on the 31st of a month need a run on
# every date; a fixed weekday lands on a 31st about once a year. Off the hour,
# which GitHub names as a high-load window, and early in the UTC day so that
# the Pacific/Auckland and Pacific/Fiji legs stay on the same calendar date as
# the rest of the matrix.
schedule:
- cron: "17 4 * * *"
# Runs the same legs on demand, which is also the only way to exercise the
# reporting below before it is needed. GitHub disables this workflow after 60
# days without repository activity; re-enable it from the Actions tab or with
# `gh workflow enable nightly.yml`, since a disabled workflow answers no
# triggers at all.
workflow_dispatch:

# The called matrix only checks out and tests; the report job below asks for
# the one extra scope it needs.
permissions:
contents: read

jobs:
build:
uses: ./.github/workflows/main.yml

report:
name: Report failure
needs: build
# A push or pull request failure is already in front of whoever caused it.
# A failure with no commit behind it has nowhere to land but a single
# notification email to whoever last edited the schedule. A cancelled build
# counts, since a leg that hangs until GitHub kills it is a failure too.
# Master only, so that a dispatch on a work branch can neither file a
# report nor mask the real one.
if: >-
(needs.build.result == 'failure' || needs.build.result == 'cancelled')
&& github.ref == 'refs/heads/master'
runs-on: ubuntu-latest
permissions:
issues: write
steps:
- name: File a tracking issue unless one is already open
env:
GH_TOKEN: ${{ github.token }}
GH_REPO: ${{ github.repository }}
TITLE: The nightly build is failing
LABEL: nightly-failure
RUN_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
SHA: ${{ github.sha }}
run: |
set -euo pipefail
# One issue per outage: a daily comment stream would only be one more
# signal to ignore. The label, not the title, identifies the tracking
# issue, so retitling it to record the cause does not defeat the
# check; --force makes creating the label idempotent. A transient
# listing failure must not stop the report, since a duplicate issue
# is cheaper than silence.
gh label create "$LABEL" --force --color d93f0b \
--description "Filed by the Nightly workflow"
existing="$(gh issue list --state open --label "$LABEL" --limit 1 \
--json number --jq '.[0].number // empty' || true)"
if [ -n "$existing" ]; then
echo "Already tracked in #$existing."
exit 0
fi
gh issue create --title "$TITLE" --label "$LABEL" \
--label "Type: Maintenance" --body-file - <<EOF
The nightly run of the Build workflow failed on master at $SHA:
$RUN_URL

It tested a commit that was already on master, so this is most likely
drift in an unpinned dependency, drift in the CI toolchain, or a test
that only fails on this date.

Filed once per outage, with no follow-up comments. Close it once a
nightly run is green again.
EOF
53 changes: 43 additions & 10 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,24 +4,57 @@ on:
release:
types: [created]

permissions:
contents: read

jobs:
deploy:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Set up Python
uses: actions/setup-python@v5
uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
with:
python-version: "3.x"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
- name: Build and publish
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
pip install build twine
- name: Build and check
run: |
python setup.py sdist bdist_wheel
twine upload dist/*
python -m build .
twine check dist/*
- name: Upload package
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: packages
path: dist/
if-no-files-found: error
compression-level: 0

deploy:
needs: build
runs-on: ubuntu-latest

permissions:
contents: read
id-token: write

environment:
name: pypi
url: https://pypi.org/p/dateparser

steps:
- name: Download package
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
with:
name: packages
path: dist/
- name: Publish package
uses: pypa/gh-action-pypi-publish@dc37677b2e1c63e2034f94d8a5b11f265b73ba33 # v1.14.2
with:
print-hash: true
verbose: true
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,11 @@ docs/_build
.idea
.vscode/

# CLDR
/cldr-json/

# CodSpeed
.codspeed

# Other
raw_data
2 changes: 0 additions & 2 deletions .isort.cfg

This file was deleted.

Loading
Loading