1
0
mirror of https://github.com/bspeice/dtparse synced 2024-12-22 20:38:09 -05:00
Commit Graph

172 Commits

Author SHA1 Message Date
007gzs
6953afb5e2 unwrap 2024-09-03 15:10:46 +08:00
081cd7bea0 Release version 2.1.0 2024-08-18 20:43:00 +00:00
c3d6730e9c #45: Fix index issue 2024-08-18 20:42:20 +00:00
61d2aa60c6 Publish 2.0.0 2023-08-24 19:07:54 -04:00
bspeice
92a2e16577
Merge pull request #44 from nibon7/chrono
Don't use `oldtime` feature of chrono
2023-08-24 19:06:15 -04:00
nibon7
dbd2eab7d4
Don't use oldtime feature of chrono 2023-06-30 18:53:01 +08:00
849ad33a5d Publish 1.5.0 2023-06-09 18:25:52 -04:00
bspeice
1f37b60cca
Merge pull request #42 from michel-slm/dont-ship-python
Don't ship Python scripts
2023-06-09 17:32:47 -04:00
bspeice
dec2e948db
Merge pull request #43 from michel-slm/add-license
Add Apache license text
2023-06-09 17:31:25 -04:00
Michel Alexandre Salim
3367312509
Add Apache license text
Include the license text as well, not just the license notice

See https://www.apache.org/foundation/license-faq.html#Apply-My-Software

```
michel in dtparse on  add-license [?] is 📦 v1.4.0 via 🐍 v3.11.3 via 🦀 v1.69.0
⬢ [fedora-toolbox:38] ❯ cargo package --allow-dirty --no-verify
   Packaging dtparse v1.4.0 (/home/michel/src/github/bspeice/dtparse)
    Updating crates.io index
    Packaged 20 files, 186.1KiB (34.2KiB compressed)

michel in dtparse on  add-license [?] is 📦 v1.4.0 via 🐍 v3.11.3 via 🦀 v1.69.0
⬢ [fedora-toolbox:38] ❯ tar tf target/package/dtparse-1.4.0.crate | grep LICENSE
dtparse-1.4.0/LICENSE
dtparse-1.4.0/LICENSE-APACHE
```

Signed-off-by: Michel Alexandre Salim <salimma@fedoraproject.org>
2023-06-09 16:02:49 -05:00
Michel Alexandre Salim
49a8a70bea
Don't ship Python scripts
This complicates distribution packaging in Fedora as the presence of these
files led the dependency generator to assume the crate depends on Python

```
michel in dtparse on  dont-ship-python is 📦 v1.4.0 via 🐍 v3.11.3 via 🦀 v1.69.0 took 6s
⬢ [fedora-toolbox:38] ❯ cargo package --allow-dirty --no-verify
   Packaging dtparse v1.4.0 (/home/michel/src/github/bspeice/dtparse)
    Updating crates.io index
    Packaged 19 files, 175.0KiB (30.7KiB compressed)

michel in dtparse on  dont-ship-python is 📦 v1.4.0 via 🐍 v3.11.3 via 🦀 v1.69.0 took 2s
⬢ [fedora-toolbox:38] ❯ tar tf target/package/dtparse-1.4.0.crate | grep '.py'
dtparse-1.4.0/build_pycompat.py
dtparse-1.4.0/build_pycompat_tokenizer.py
```

```
michel in dtparse on  dont-ship-python [!] is 📦 v1.4.0 via 🐍 v3.11.3 via 🦀 v1.69.0 took 9s
⬢ [fedora-toolbox:38] ❯ cargo package --allow-dirty --no-verify
   Packaging dtparse v1.4.0 (/home/michel/src/github/bspeice/dtparse)
    Updating crates.io index
    Packaged 17 files, 157.4KiB (27.4KiB compressed)

michel in dtparse on  dont-ship-python [!] is 📦 v1.4.0 via 🐍 v3.11.3 via 🦀 v1.69.0
⬢ [fedora-toolbox:38] ❯ tar tf target/package/dtparse-1.4.0.crate | grep '\.py'

michel in dtparse on  dont-ship-python [!] is 📦 v1.4.0 via 🐍 v3.11.3 via 🦀 v1.69.0
⬢ [fedora-toolbox:38] ❯
```

Signed-off-by: Michel Alexandre Salim <salimma@fedoraproject.org>
2023-06-09 14:31:39 -05:00
bspeice
dd0ef6eb91
Merge pull request #41 from bspeice/nanosecond
Nanosecond precision
2023-03-24 22:31:03 -04:00
b925b968ca Fix deprecations 2023-03-25 02:29:55 +00:00
3a9e2674a6 #40: Nanosecond precision 2023-03-25 02:12:57 +00:00
ed919e84ef #38: Release new dateutil version 2022-06-15 22:21:25 -04:00
4d8ade4b05 #36: Add test to assert no longer panics 2022-06-15 22:20:37 -04:00
6a88885ef5 #35: Add test to make sure it does not panic 2022-06-15 22:18:20 -04:00
a193a79afa Add a test for issue 34 2022-06-15 22:16:15 -04:00
bspeice
5b3be160f6
Merge pull request #37 from ahkrr/master
upgrade dependency rust_decimal ^0.10.1 -> 1.17.0
2022-03-24 21:47:10 -04:00
ahkrr
8f6a3b179d upgrade dependency rust_decimal ^0.10.1 -> 1.17.0 2021-11-14 14:14:11 +01:00
028c45e3fe Fix #32 and #33 2021-08-23 22:36:03 -04:00
bspeice
f1ca4e4129
Merge pull request #31 from sbrocket/delete-unneeded-dep
Delete unused chrono-tz dependency
2021-06-03 22:56:34 -04:00
Bryan Henry
61d3ed025e Delete unused chrono-tz dependency 2021-06-03 19:45:47 -07:00
440ba918f6 Version 1.2.0 2020-10-04 20:10:30 -04:00
bors[bot]
fe773b0d9f
Merge #30
30: Handle panic from large integers r=bspeice a=gillespiecd

1. Opt to use `NaiveDate::from_ymd_opt` so that a panic can be avoided, this will handle the issue with large integers causing panics.

I added the test case from the issue (and another), which should hopefully fix #26 .

Co-authored-by: Chris Gillespie <6572184+gillespiecd@users.noreply.github.com>
2020-10-05 00:01:02 +00:00
Chris Gillespie
bf456f466f Handle panic from large integers 2020-10-04 16:26:50 -07:00
6a5ec31d8e Release version 1.1.0 2020-06-11 15:42:03 -04:00
bors[bot]
23f50fb62b
Merge #29
29: Properly handle no date content being found r=bspeice a=bspeice

Fixes #22 

Co-authored-by: Bradlee Speice <bradlee@speice.io>
2020-06-11 19:33:20 +00:00
f1ca602e9f Properly handle no date content being found 2020-06-11 15:00:37 -04:00
bors[bot]
899cd88280
Merge #27
27: Add fixes for dateutil/dateutil#822 r=bspeice a=bspeice

Fixes #16 

Co-authored-by: Bradlee Speice <bradlee@speice.io>
2020-06-11 18:18:24 +00:00
a08bb2d9d7 Add fixes for dateutil/dateutil#822 2020-06-11 13:59:07 -04:00
bors[bot]
af6c3238c4
Merge #28
28: Disable clippy component for 1.28 r=bspeice a=bspeice

And fix some other issues from a `.travis.yml` file I definitely didn't just copy-paste from a separate project...

Co-authored-by: Bradlee Speice <bradlee@speice.io>
2020-06-11 17:40:24 +00:00
b098f54f8b Convert clippy lints 2020-06-11 13:33:09 -04:00
61022c323e Cargo fmt 2020-06-11 13:11:52 -04:00
4079b3ce2f Fix ENV naming 2020-06-11 13:06:26 -04:00
3e03b188b4 Disable clippy component for 1.28 2020-06-11 13:05:21 -04:00
bspeice
7147677926
Merge pull request #25 from bspeice/simplify_testing
Simplify testing procedure
2020-06-11 12:26:12 -04:00
22b6a321e6 Remove Appveyor badge from README 2020-06-11 12:25:55 -04:00
9edc2a3102 Simplify testing procedure 2020-06-11 12:23:36 -04:00
bspeice
245f746c8c
Merge pull request #24 from bspeice/panic_fuzzing
Fix #21
2020-06-11 12:23:10 -04:00
bspeice
5782a573bc
Merge pull request #23 from gma2th/master
Implement Error trait for ParseError
2020-06-11 12:13:12 -04:00
Matthieu Guilbert
e895fbd9f3 Implement Error trait for ParseError 2020-06-11 23:29:37 +08:00
2a2f1e7fbd Fix #21 2020-05-29 14:23:54 -04:00
bspeice
e9c994a755
Merge pull request #20 from bspeice/timezone
Remove timezone handling
2019-11-30 08:41:11 -05:00
d6fc72459e Mark unused 2019-11-29 18:19:13 -05:00
d7ff381d7f Bugfix 2019-11-29 17:58:40 -05:00
d5e0a5d46a Remove timezone handling
There are too many issues in chrono-tz to make it worth supporting.
2019-11-29 16:49:29 -05:00
bspeice
9f1b8d4971
Merge pull request #19 from bspeice/tz_fix
Attempt to read timezones from chrono-tz
2019-11-29 15:45:44 -05:00
0f7ac8538c Remove WASM from Travis 2019-11-25 23:11:19 -05:00
b81a8d9541 Use 1.28 as minimum Rust version 2019-11-25 20:57:56 -05:00