Skip to content

Commit 4487b71

Browse files
authored
Merge pull request #251 from Lightbug-HQ/fix/rattler-external
Fix rattler build error with external directory
2 parents 0ebd328 + 3251cde commit 4487b71

15 files changed

Lines changed: 20 additions & 21 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ Once you have a Mojo project set up locally,
6060

6161
```toml
6262
[dependencies]
63-
lightbug_http = ">=0.1.18"
63+
lightbug_http = ">=0.1.19"
6464
```
6565

6666
3. Run `magic install` at the root of your project, where `mojoproject.toml` is located

lightbug_http/cookie/expiration.mojo

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from external.small_time import SmallTime
1+
from lightbug_http.external.small_time import SmallTime
22

33
alias HTTP_DATE_FORMAT = "ddd, DD MMM YYYY HH:mm:ss ZZZ"
44
alias TZ_GMT = TimeZone(0, "GMT")
@@ -47,9 +47,9 @@ struct Expiration(CollectionElement):
4747
if self.variant != other.variant:
4848
return False
4949
if self.variant == 1:
50-
if bool(self.datetime) != bool(other.datetime):
50+
if Bool(self.datetime) != Bool(other.datetime):
5151
return False
52-
elif not bool(self.datetime) and not bool(other.datetime):
52+
elif not Bool(self.datetime) and not Bool(other.datetime):
5353
return True
5454
return self.datetime.value().isoformat() == other.datetime.value().isoformat()
5555

lightbug_http/cookie/request_cookie_jar.mojo

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from collections import Optional, List, Dict
2-
from external.small_time import SmallTime, TimeZone
3-
from external.small_time.small_time import strptime
2+
from lightbug_http.external.small_time import SmallTime, TimeZone
3+
from lightbug_http.external.small_time.small_time import strptime
44
from lightbug_http.strings import to_string, lineBreak
55
from lightbug_http.header import HeaderKey, write_header
66
from lightbug_http.io.bytes import ByteReader, ByteWriter, is_newline, is_space
File renamed without changes.

external/small_time/formatter.mojo renamed to lightbug_http/external/small_time/formatter.mojo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from collections import InlineArray
44
from collections.string import StringSlice
55
from utils import StaticTuple
6-
from external.small_time.time_zone import UTC_TZ
6+
from lightbug_http.external.small_time.time_zone import UTC_TZ
77

88
alias MONTH_NAMES = InlineArray[String, 13](
99
"",

external/small_time/small_time.mojo renamed to lightbug_http/external/small_time/small_time.mojo

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
# small_time library, courtesy @thatstoasty , 2025
22
# https://github.com/thatstoasty/small-time/
33
from collections import InlineArray, Optional
4-
import external.small_time.c
5-
import external.small_time.time_zone
6-
from external.small_time.time_delta import TimeDelta
7-
from external.small_time.formatter import formatter
4+
import lightbug_http.external.small_time.c
5+
import lightbug_http.external.small_time.time_zone
6+
from lightbug_http.external.small_time.time_delta import TimeDelta
7+
from lightbug_http.external.small_time.formatter import formatter
88

99

1010
alias _DI400Y = 146097
@@ -257,7 +257,7 @@ fn strptime(date_str: String, fmt: String, tzinfo: TimeZone = TimeZone()) raises
257257
258258
Examples:
259259
```mojo
260-
from small_time.small_time import strptime
260+
from lightbug_http.external.small_time.small_time import strptime
261261
print(strptime('20-01-2019 15:49:10', '%d-%m-%Y %H:%M:%S'))
262262
```
263263
.
@@ -284,7 +284,7 @@ fn strptime(date_str: String, fmt: String, tz_str: String) raises -> SmallTime:
284284
285285
Examples:
286286
```mojo
287-
from small_time.small_time import strptime
287+
from lightbug_http.external.small_time.small_time import strptime
288288
print(strptime('20-01-2019 15:49:10', '%d-%m-%Y %H:%M:%S'))
289289
```
290290
.
File renamed without changes.

external/small_time/time_zone.mojo renamed to lightbug_http/external/small_time/time_zone.mojo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# small_time library, courtesy @thatstoasty , 2025
22
# https://github.com/thatstoasty/small-time/
33
from collections import Optional
4-
import small_time.c
4+
import lightbug_http.external.small_time.c
55

66
alias UTC = "UTC"
77
alias UTC_TZ = TimeZone(0, UTC)

0 commit comments

Comments
 (0)