Skip to content

Commit a95c5b5

Browse files
committed
deprecate python 3.8 and 3.9
1 parent 8b0be02 commit a95c5b5

File tree

19 files changed

+60
-58
lines changed

19 files changed

+60
-58
lines changed

.github/workflows/python-package.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ jobs:
1818
strategy:
1919
fail-fast: false
2020
matrix:
21-
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
21+
python-version: ["3.10", "3.11", "3.12"]
2222

2323
steps:
24-
- uses: actions/checkout@v3
24+
- uses: actions/checkout@v4
2525
- name: Set up Python ${{ matrix.python-version }}
2626
uses: actions/setup-python@v4
2727
with:

DEPLOYMENT.md

Lines changed: 27 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -68,28 +68,40 @@
6868
sudo ln -s "$HOME/.docker/run/docker.sock" /var/run/docker.sock`
6969
```
7070

71-
12. *(Optional)* Build the documentation and PyPI package independent of deployment:
71+
12. *(Optional)* Build the PyPI package independent of deployment:
7272

7373
```shell
7474
make build
7575
```
76-
77-
***Note***: You can run `make docs` to recreate documentation without building the PyPI package with `setup.py`.
7876

79-
13. *(Optional)* Check MkDocs documentation by serving it at [http://localhost:8000/](http://localhost:8000/) locally:
77+
13. *(Optional)* Test packages for PyPI deployment:
78+
79+
```shell
80+
make verify_build
81+
```
82+
83+
14. *(Optional)* Check MkDocs documentation by serving it at [http://localhost:8000/](http://localhost:8000/) locally:
8084

8185
```shell
8286
make test_docs
8387
```
8488

85-
14. Create a git commit:
89+
15. *(Optional)* Build the MkDocs documentation and PyPI package independent of deployment:
90+
91+
```shell
92+
make docs
93+
```
94+
95+
***Note***: Running `make test_docs` from the previous step recreates the documentation without building the PyPI package with `setup.py`.
96+
97+
16. Create a git commit:
8698

8799
```shell
88100
git add .
89101
git commit -m 'commit message'
90102
```
91103

92-
15. Update the git tag with the new version:
104+
17. Update the git tag with the new version:
93105

94106
`git tag -a [tag_name/version] -m [message]`
95107

@@ -98,53 +110,47 @@
98110
git push origin --tags
99111
```
100112

101-
16. Install `twine` (if not already installed):
113+
18. Install `twine` (if not already installed):
102114

103115
```shell
104116
pip install twine
105117
```
106-
107-
17. *(Optional)* Test packages for PyPI deployment:
108-
109-
```shell
110-
make verify_build
111-
```
112-
113-
18. *(Optional)* Test deployment by building the PyPI packages, recreating the documentation, and deploying to Test PyPI:
118+
119+
19. *(Optional)* Test deployment by building the PyPI packages, recreating the documentation, and deploying to Test PyPI:
114120

115121
```shell
116122
make test_deploy
117123
```
118124

119-
19. Deploy YFPY by building the PyPI packages, recreating the documentation, and deploying to PyPI:
125+
20. Deploy YFPY by building the PyPI packages, recreating the documentation, and deploying to PyPI:
120126

121127
```shell
122128
make deploy
123129
```
124130

125-
20. Build Docker container:
131+
21. Build Docker container:
126132
```shell
127133
docker compose -f compose.yaml -f compose.build.yaml build
128134
```
129135

130-
21. *(If needed)* Authenticate with GitHub Personal Access Token (PAT):
136+
22. *(If needed)* Authenticate with GitHub Personal Access Token (PAT):
131137
```shell
132138
jq -r .github_personal_access_token.value private-github.json | docker login ghcr.io -u uberfastman --password-stdin
133139
```
134140

135-
22. Deploy the newly-built Docker image with respective major, minor, and patch version numbers to the GitHub Container Registry:
141+
23. Deploy the newly-built Docker image with respective major, minor, and patch version numbers to the GitHub Container Registry:
136142
```shell
137143
docker push ghcr.io/uberfastman/yfpy:X.X.X
138144
```
139145

140-
23. Create a second git commit with updated version number and documentation:
146+
24. Create a second git commit with updated version number and documentation:
141147

142148
```shell
143149
git add .
144150
git commit -m 'update version number and docs'
145151
```
146152

147-
24. Update YFPY GitHub repository:
153+
25. Update YFPY GitHub repository:
148154

149155
```shell
150156
git push

Makefile

Lines changed: 12 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -9,28 +9,25 @@ THIS_FILE := $(lastword $(MAKEFILE_LIST))
99
help:
1010
@$(DOCS_BUILD) -h $(DOCS_OPTS) $(O)
1111

12-
.PHONY: version test_docs docs pages build test_build test_deploy deploy help Makefile
13-
14-
version: ## Extract YFPY project version from VERSION.py for use in MkDocs documentation.
15-
export YFPY_VERSION=$$(python -c "from VERSION import __version__; print(__version__)")
16-
17-
test_docs: version ## Serve MkDocs documentation locally for testing.
18-
mkdocs serve
19-
20-
docs: version ## Build MkDocs documentation for distribution.
21-
mkdocs build
22-
23-
pages: docs ## Prepare documentation in /docs directory for GitHub Pages.
24-
python docs-mkdocs/scripts/update_docs_for_github_pages.py
12+
.PHONY: build verify_build test_docs docs pages test_deploy deploy help Makefile
2513

2614
build: ## Build PyPI packages for distribution.
2715
cd ${HOME}/Projects/personal/yfpy; python setup.py sdist bdist_wheel
2816

2917
verify_build: ## Check PyPI packages for issues.
3018
twine check dist/*
3119

32-
test_deploy: build pages ## Deploy PyPI packages to Test PyPI.
20+
test_docs: ## Extract YFPY project version from VERSION.py and serve MkDocs documentation locally for testing.
21+
export YFPY_VERSION=$$(python -c "from VERSION import __version__; print(__version__)") && mkdocs serve
22+
23+
docs: build ## Extract YFPY project version from VERSION.py and build MkDocs documentation for distribution.
24+
export YFPY_VERSION=$$(python -c "from VERSION import __version__; print(__version__)") && mkdocs build
25+
26+
pages: docs ## Prepare documentation in /docs directory for GitHub Pages.
27+
python docs-mkdocs/scripts/update_docs_for_github_pages.py
28+
29+
test_deploy: pages ## Deploy PyPI packages to Test PyPI.
3330
twine upload -r testpypi dist/*
3431

35-
deploy: build pages ## Deploy PyPI packages to PyPI.
32+
deploy: pages ## Deploy PyPI packages to PyPI.
3633
twine upload dist/*

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[<img src="https://github.com/uberfastman/yfpy/raw/main/docs/_static/yfpy-logo.svg" width="400"/>](https://github.com/uberfastman/yfpy)
1+
[<img src="https://raw.githubusercontent.com/uberfastman/yfpy/refs/heads/main/docs/yfpy-logo.svg" width="400"/>](https://github.com/uberfastman/yfpy)
22

33
## YFPY - Yahoo Fantasy Sports API Wrapper
44
Python API wrapper for the Yahoo Fantasy Sports public API
@@ -292,7 +292,7 @@ YFPY has only been tested extensively on macOS, but is written to be platform-ag
292292
<a name="python"></a>
293293
#### Python
294294

295-
YFPY requires Python 3.8 or later, and has been tested through Python 3.12.
295+
YFPY requires Python 3.10 or later, and has been tested through Python 3.12.
296296

297297
<a name="development"></a>
298298
#### Development

VERSION_PYTHON.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# minimum supported Python version
2-
__version_minimum_python__ = "3.8"
2+
__version_minimum_python__ = "3.10"
33

44
# minimum supported Python version
55
__version_maximum_python__ = "3.12"

docs/404.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
<img src="/yfpy-logo.svg" class="logo" alt="Logo"/>
3030
</a>
3131
<div class="version">
32-
v15.0.3
32+
v16.0.0
3333
</div><div role="search">
3434
<form id ="rtd-search-form" class="wy-form" action="//search.html" method="get">
3535
<input type="text" name="q" placeholder="Search docs" aria-label="Search docs" title="Type search term here" />

docs/CNAME

Lines changed: 0 additions & 1 deletion
This file was deleted.

docs/data/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
<img src="../yfpy-logo.svg" class="logo" alt="Logo"/>
3737
</a>
3838
<div class="version">
39-
v15.0.3
39+
v16.0.0
4040
</div><div role="search">
4141
<form id ="rtd-search-form" class="wy-form" action="../search.html" method="get">
4242
<input type="text" name="q" placeholder="Search docs" aria-label="Search docs" title="Type search term here" />

docs/exceptions/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
<img src="../yfpy-logo.svg" class="logo" alt="Logo"/>
3737
</a>
3838
<div class="version">
39-
v15.0.3
39+
v16.0.0
4040
</div><div role="search">
4141
<form id ="rtd-search-form" class="wy-form" action="../search.html" method="get">
4242
<input type="text" name="q" placeholder="Search docs" aria-label="Search docs" title="Type search term here" />

docs/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
<img src="yfpy-logo.svg" class="logo" alt="Logo"/>
3737
</a>
3838
<div class="version">
39-
v15.0.3
39+
v16.0.0
4040
</div><div role="search">
4141
<form id ="rtd-search-form" class="wy-form" action="./search.html" method="get">
4242
<input type="text" name="q" placeholder="Search docs" aria-label="Search docs" title="Type search term here" />
@@ -162,5 +162,5 @@ <h1 id="welcome-to-yfpy">Welcome to YFPY!<a class="headerlink" href="#welcome-to
162162

163163
<!--
164164
MkDocs version : 1.6.1
165-
Build Date UTC : 2024-09-22 17:26:42.159475+00:00
165+
Build Date UTC : 2024-09-22 18:28:02.658404+00:00
166166
-->

0 commit comments

Comments
 (0)