klokku-python-client 0.1.0__tar.gz → 0.2.0__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.
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Klokku
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -1,13 +1,13 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: klokku-python-client
3
- Version: 0.1.0
3
+ Version: 0.2.0
4
4
  Summary: Klokku REST API client
5
5
  License: MIT
6
6
  Author: Mariusz Józala
7
7
  Requires-Python: >=3.13
8
8
  Classifier: Development Status :: 3 - Alpha
9
9
  Classifier: Intended Audience :: Developers
10
- Requires-Dist: aiohttp (>=3.11.16,<4.0.0)
10
+ Requires-Dist: aiohttp (>=3.12.13,<4.0.0)
11
11
  Project-URL: Homepage, https://klokku.com
12
12
  Project-URL: Issues, https://github.com/klokku/klokku-python-client/issues
13
13
  Project-URL: Repository, https://github.com/klokku/klokku-python-client
@@ -84,6 +84,19 @@ asyncio.run(main())
84
84
 
85
85
  ## Development
86
86
 
87
+ ### CI/CD
88
+
89
+ This project uses GitHub Actions for continuous integration and deployment:
90
+
91
+ 1. **Build Workflow**: Runs on every push to the main branch, executing tests and building the package.
92
+ 2. **Publish Workflow**: Automatically publishes the package to PyPI when a new GitHub Release is created.
93
+
94
+ To set up the publishing workflow:
95
+
96
+ 1. Generate a PyPI API token at https://pypi.org/manage/account/token/
97
+ 2. Add the token as a GitHub repository secret named `PYPI_API_TOKEN`
98
+ 3. Create a new GitHub Release to trigger the publishing workflow
99
+
87
100
  ### Setup
88
101
 
89
102
  1. Clone the repository
@@ -115,12 +128,18 @@ To run the tests:
115
128
  pytest
116
129
  ```
117
130
 
131
+ Or with Poetry
132
+
133
+ ```bash
134
+ poetry run pytest
135
+ ```
136
+
118
137
  For more details about testing, see the [tests README](tests/README.md).
119
138
 
120
139
  ## Requirements
121
140
 
122
141
  - Python 3.13+
123
- - aiohttp 3.11+
142
+ - aiohttp 3.12+
124
143
 
125
144
  ## License
126
145
 
@@ -69,6 +69,19 @@ asyncio.run(main())
69
69
 
70
70
  ## Development
71
71
 
72
+ ### CI/CD
73
+
74
+ This project uses GitHub Actions for continuous integration and deployment:
75
+
76
+ 1. **Build Workflow**: Runs on every push to the main branch, executing tests and building the package.
77
+ 2. **Publish Workflow**: Automatically publishes the package to PyPI when a new GitHub Release is created.
78
+
79
+ To set up the publishing workflow:
80
+
81
+ 1. Generate a PyPI API token at https://pypi.org/manage/account/token/
82
+ 2. Add the token as a GitHub repository secret named `PYPI_API_TOKEN`
83
+ 3. Create a new GitHub Release to trigger the publishing workflow
84
+
72
85
  ### Setup
73
86
 
74
87
  1. Clone the repository
@@ -100,12 +113,18 @@ To run the tests:
100
113
  pytest
101
114
  ```
102
115
 
116
+ Or with Poetry
117
+
118
+ ```bash
119
+ poetry run pytest
120
+ ```
121
+
103
122
  For more details about testing, see the [tests README](tests/README.md).
104
123
 
105
124
  ## Requirements
106
125
 
107
126
  - Python 3.13+
108
- - aiohttp 3.11+
127
+ - aiohttp 3.12+
109
128
 
110
129
  ## License
111
130
 
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "klokku-python-client"
3
- version = "0.1.0"
3
+ version = "0.2.0"
4
4
  description = "Klokku REST API client"
5
5
  authors = [
6
6
  {name = "Mariusz Józala"}
@@ -8,7 +8,7 @@ authors = [
8
8
  readme = "README.md"
9
9
  requires-python = ">=3.13"
10
10
  dependencies = [
11
- "aiohttp (>=3.11.16,<4.0.0)",
11
+ "aiohttp (>=3.12.13,<4.0.0)",
12
12
  ]
13
13
 
14
14
  classifiers = [
@@ -25,8 +25,8 @@ packages = [{include = "klokku_python_client", from = "src"}]
25
25
  optional = true
26
26
 
27
27
  [tool.poetry.group.test.dependencies]
28
- pytest = "^8.3.5"
29
- pytest-asyncio = "^0.26.0"
28
+ pytest = "^8.4.1"
29
+ pytest-asyncio = "^1.0.0"
30
30
  aioresponses = "^0.7.8"
31
31
 
32
32
 
@@ -39,7 +39,8 @@ class Budget:
39
39
  name: str
40
40
  weeklyTime: int
41
41
  icon: str = ""
42
- status: str = "ACTIVE"
42
+ startDate: str = ""
43
+ endDate: str = ""
43
44
 
44
45
  @dataclass(frozen=True)
45
46
  class User: