You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
11. *(Optional)* Test Python support using [act](https://github.com/nektos/act) for GitHub Actions:
60
60
61
61
```shell
62
-
act_amd -j build
62
+
make test_actions
63
63
```
64
64
65
65
***Note***: If `act` is unable to locate Docker, make sure that the required `/var/run/docker.sock` symlink exists. If it does not, you can fix it by running:
@@ -92,7 +92,7 @@
92
92
make docs
93
93
```
94
94
95
-
***Note***: Running `make test_docs` from the previous step recreates the documentation without building the PyPI package with `setup.py`.
95
+
***Note***: Running `make test_docs` from the previous step recreates the documentation without building the PyPI package with `uv`.
96
96
97
97
16. Create a git commit:
98
98
@@ -113,7 +113,7 @@
113
113
18. Install `twine` (if not already installed):
114
114
115
115
```shell
116
-
pip install twine
116
+
uv add twine
117
117
```
118
118
119
119
19. *(Optional)* Test deployment by building the PyPI packages, recreating the documentation, and deploying to Test PyPI:
pre_build: ## Set Python package version in VERSION.py using latest git tag, update docs with package version, update Docker Compose files with package and Python versions, and prepare documentation in /docs directory for GitHub Pages.
42
+
python scripts/pre_build.py
25
43
26
-
pages: docs ## Prepare documentation in /docs directory for GitHub Pages.
* See the documentation on the [`yfpy.query.YahooFantasySportsQuery`](https://yfpy.uberfastman.com/_autosummary/yfpy.query.YahooFantasySportsQuery.html#yfpy.query.YahooFantasySportsQuery) class for example usage of all available queries.
232
-
* See [`quickstart/quickstart.py`](https://github.com/uberfastman/yfpy/blob/main/quickstart/quickstart.py) for example usage output.
246
+
* See [`scripts/quickstart.py`](https://github.com/uberfastman/yfpy/blob/main/scripts/quickstart.py) for example usage output.
233
247
* Uncomment/comment out whichever configuration values in their respective functions with which you wish to experiment.
234
248
* Uncomment/comment out whichever query lines in the `RUN QUERIES` section you wish to run.
235
249
* Uncomment/comment out whichever query lines in the `CHECK FOR MISSING DATA FIELDS` section you wish to check for any new/missing data fields returned by the Yahoo Sports Fantasy Football API.
@@ -250,11 +264,11 @@ YFPY can be used within Docker for a more seamless, platform-agnostic experience
250
264
```
251
265
Then:
252
266
```shell
253
-
python quickstart/quickstart.py
267
+
python scripts/quickstart.py
254
268
```
255
269
* Send commands to the running container from your host machine:
@@ -289,7 +303,7 @@ YFPY has a collection of fully functional code snippets that can be run using [p
289
303
* Before running any integration tests, make a copy of [`auth/.env.template`](https://github.com/uberfastman/yfpy/blob/main/auth/.env.template) in the [`auth/`](https://github.com/uberfastman/yfpy/blob/main/auth/) directory and rename it to `.env`.
290
304
* Copy your Yahoo `Client ID` and `Client Secret` into the environment variables in`.env` so that pytest can use them when hitting the Yahoo Fantasy Sports API.
291
305
* If this is the first time running pytest with your Yahoo API credentials, you ***MUST*** allow interactive prompts within pytest by using the `-s` flag.
292
-
* The fixture values in [`test/integration/conftest.py`](https://github.com/uberfastman/yfpy/blob/main/test/integration/conftest.py) are defined in [`quickstart/quickstart.py`](https://github.com/uberfastman/yfpy/blob/main/quickstart/quickstart.py), and can be changed for testing by uncommenting/commenting out the values inside each respective function.
306
+
* The fixture values in [`test/integration/conftest.py`](https://github.com/uberfastman/yfpy/blob/main/test/integration/conftest.py) are defined in [`scripts/quickstart.py`](https://github.com/uberfastman/yfpy/blob/main/scripts/quickstart.py), and can be changed for testing by uncommenting/commenting out the values inside each respective function.
293
307
294
308
<a name="run-tests"></a>
295
309
#### Run Tests
@@ -314,12 +328,12 @@ YFPY has only been tested extensively on macOS, but is written to be platform-ag
314
328
<a name="python"></a>
315
329
#### Python
316
330
317
-
YFPY requires Python 3.10 or later, and has been tested through Python 3.12.
331
+
YFPY requires Python 3.10 or later, and has been tested through Python 3.13.
318
332
319
333
<a name="development"></a>
320
334
#### Development
321
335
322
-
Direct project dependencies can be viewed in`requirements.txt`, and additional development and build dependencies (*not* including transitive dependencies) can be viewed in`requirements-dev.txt`.
336
+
Run, development, and build dependencies (*not* including transitive dependencies) can be viewed in`pyproject.toml`.
323
337
324
338
---
325
339
@@ -340,3 +354,8 @@ IndexError: list index out of range
340
354
```
341
355
342
356
Typically, when the above error (or a similar error) occurs, it simply means that one of the Yahoo Fantasy Sports API calls failed and so no data was retrieved. This can be fixed by simply re-running data query.
357
+
358
+
<a name="jetbrains-and-pycharm"></a>
359
+
#### JetBrains and PyCharm
360
+
361
+
If you are using PyCharm fordevelopment against this project and want the IDE to be aware of the installed dependenciesin your Python interpreter, PyCharm currently has a bug with its `uv` integration that _requires_ the project to have the `uv` Python interpreter exists in a `.venv` directory in the project root. In the event that you have a `uv` Python interpreter configured elsewhere, you can run `ln -sf /path/to/uv/interpreter/directory .venv`in the YFPY project root, and then configure the Python interpreter in PyCharm to point to the Python executable in the `.venv` symbolic link, and all of your installed dependencies will show up and the IDE will be aware that they are installed.
0 commit comments