hijri-datetime 0.1.0__tar.gz → 0.1.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
File without changes
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.2
1
+ Metadata-Version: 2.1
2
2
  Name: hijri-datetime
3
- Version: 0.1.0
3
+ Version: 0.1.1
4
4
  Author-email: "m.lotfi" <m.lotfi@email.com>
5
5
  Maintainer-email: "m.lotfi" <m.lotfi@email.com>
6
6
  License: MIT
@@ -19,6 +19,7 @@ Classifier: Topic :: Software Development :: Libraries
19
19
  Classifier: Topic :: Software Development :: Libraries :: Python Modules
20
20
  Requires-Python: >=3.8
21
21
  Description-Content-Type: text/markdown
22
+ License-File: LICENSE
22
23
 
23
24
  # hijri-datetime
24
25
 
@@ -97,6 +98,10 @@ print(jd) # jdatetime.date(...)
97
98
 
98
99
  ## Partial Dates & Ranges
99
100
 
101
+ - `HijriDate(1446)` → represents the whole year.
102
+ - `HijriDate(1446, 2)` → represents all days of month 2.
103
+ - Conversion to Gregorian returns ranges:
104
+
100
105
  * **Year only**
101
106
 
102
107
  ```python
@@ -105,7 +110,7 @@ print(jd) # jdatetime.date(...)
105
110
  print(start, end) # 2024-07-18 2025-07-06 (example)
106
111
  ```
107
112
 
108
- * **Month only**
113
+ * **Year and Month only**
109
114
 
110
115
  ```python
111
116
  d = HijriDate(1446, 2)
@@ -75,6 +75,10 @@ print(jd) # jdatetime.date(...)
75
75
 
76
76
  ## Partial Dates & Ranges
77
77
 
78
+ - `HijriDate(1446)` → represents the whole year.
79
+ - `HijriDate(1446, 2)` → represents all days of month 2.
80
+ - Conversion to Gregorian returns ranges:
81
+
78
82
  * **Year only**
79
83
 
80
84
  ```python
@@ -83,7 +87,7 @@ print(jd) # jdatetime.date(...)
83
87
  print(start, end) # 2024-07-18 2025-07-06 (example)
84
88
  ```
85
89
 
86
- * **Month only**
90
+ * **Year and Month only**
87
91
 
88
92
  ```python
89
93
  d = HijriDate(1446, 2)
@@ -1,10 +1,13 @@
1
+ # -----------------------------
2
+ # Build System (required)
3
+ # -----------------------------
1
4
  [build-system]
2
- requires = ["setuptools<77", "wheel"]
5
+ requires = ["setuptools<77", "wheel", "setuptools_scm[toml]>=6.2"]
3
6
  build-backend = "setuptools.build_meta"
4
7
 
5
8
  [project]
6
9
  name = "hijri-datetime"
7
- version = "0.1.0"
10
+ version = "0.1.1"
8
11
  license = { text = "MIT" } # old-style, accepted
9
12
  classifiers = [
10
13
  "License :: OSI Approved :: MIT License",
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.2
1
+ Metadata-Version: 2.1
2
2
  Name: hijri-datetime
3
- Version: 0.1.0
3
+ Version: 0.1.1
4
4
  Author-email: "m.lotfi" <m.lotfi@email.com>
5
5
  Maintainer-email: "m.lotfi" <m.lotfi@email.com>
6
6
  License: MIT
@@ -19,6 +19,7 @@ Classifier: Topic :: Software Development :: Libraries
19
19
  Classifier: Topic :: Software Development :: Libraries :: Python Modules
20
20
  Requires-Python: >=3.8
21
21
  Description-Content-Type: text/markdown
22
+ License-File: LICENSE
22
23
 
23
24
  # hijri-datetime
24
25
 
@@ -97,6 +98,10 @@ print(jd) # jdatetime.date(...)
97
98
 
98
99
  ## Partial Dates & Ranges
99
100
 
101
+ - `HijriDate(1446)` → represents the whole year.
102
+ - `HijriDate(1446, 2)` → represents all days of month 2.
103
+ - Conversion to Gregorian returns ranges:
104
+
100
105
  * **Year only**
101
106
 
102
107
  ```python
@@ -105,7 +110,7 @@ print(jd) # jdatetime.date(...)
105
110
  print(start, end) # 2024-07-18 2025-07-06 (example)
106
111
  ```
107
112
 
108
- * **Month only**
113
+ * **Year and Month only**
109
114
 
110
115
  ```python
111
116
  d = HijriDate(1446, 2)
@@ -1,7 +1,14 @@
1
+ LICENSE
1
2
  README.md
2
3
  pyproject.toml
3
4
  src/hijri_datetime/__init__.py
5
+ src/hijri_datetime/calendar.py
6
+ src/hijri_datetime/conversion.py
7
+ src/hijri_datetime/date.py
8
+ src/hijri_datetime/datetime.py
4
9
  src/hijri_datetime/hello.py
10
+ src/hijri_datetime/range.py
11
+ src/hijri_datetime/utils.py
5
12
  src/hijri_datetime.egg-info/PKG-INFO
6
13
  src/hijri_datetime.egg-info/SOURCES.txt
7
14
  src/hijri_datetime.egg-info/dependency_links.txt
File without changes