Skip to content

Commit be8a3a0

Browse files
committed
chore(deps): update to python 3.12
1 parent a912879 commit be8a3a0

File tree

9 files changed

+81
-786
lines changed

9 files changed

+81
-786
lines changed

.github/workflows/release-to-pypi.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,18 @@ jobs:
88
name: release
99
runs-on: ubuntu-latest
1010
steps:
11-
- uses: actions/checkout@v2
12-
- uses: actions/setup-python@v1
11+
- uses: actions/checkout@v5
12+
- uses: actions/setup-python@v5
1313
with:
14-
python-version: 3.10.16
14+
python-version: 3.12
1515
- name: checkout
1616
run: git fetch --prune --unshallow
1717
- name: install environment
1818
run: pip install pipenv && pipenv sync -d
1919
- name: build
2020
run: pipenv run make build
2121
- name: upload to pypi
22-
uses: pypa/gh-action-pypi-publish@v1.1.0
22+
uses: pypa/gh-action-pypi-publish@v1.12.4
2323
with:
2424
user: __token__
2525
password: ${{secrets.twine_password }}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,3 +108,4 @@ ENV/
108108
# mypy
109109
.mypy_cache/
110110
look-how-beautiful-this-blog-is-going-to-turn-out/
111+
/Pipfile.lock

.release

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
release=1.6.0
2-
tag=1.6.0
3-
pre_tag_command=sed -i '' -e 's/version="[^"]*"/version="@@RELEASE@@"/g' setup.py && sed -i '' -e 's^\(ghcr.io/binxio/wordpress-markdown-blog-loader:\)[^ \t]*^\1@@RELEASE@@^g' README.md
1+
release=1.6.1
2+
tag=1.6.1
3+
pre_tag_command=sed -i '' -e 's/^version *= *"[^"]*"/version = "@@RELEASE@@"/g' pyproject.toml && sed -i '' -e 's^\(ghcr.io/binxio/wordpress-markdown-blog-loader:\)[^ \t]*^\1@@RELEASE@@^g' README.md

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
FROM python:3.10-slim-bullseye
1+
FROM python:3.12-slim-bullseye
22

33
WORKDIR /src
44
ADD . /src
55
RUN apt-get update && \
66
apt-get install -y libxslt1-dev libxml2-dev gcc libfreetype6-dev libffi-dev libjpeg-dev zlib1g-dev \
77
libxslt1.1 libxml2 libfreetype6 libffi7 libjpeg62-turbo zlib1g && \
8-
python setup.py install && \
8+
pip install -e . && \
99
apt-get remove -y libxslt1-dev libxml2-dev gcc libfreetype6-dev libffi-dev python3-dev libjpeg-dev zlib1g-dev && \
1010
apt-get -y autoclean
1111

Makefile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
.PHONY: build
22
build:
3-
python setup.py check
4-
python setup.py build
3+
pip install build
54
rm -rf dist/*
6-
python setup.py sdist
5+
python -mbuild
76

87
.PHONY: test
98
test:

Pipfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ pylint = "*"
1010
wordpress_markdown_blog_loader = {editable = true, path = "."}
1111

1212
[requires]
13-
python_version = "3.10"
13+
python_version = "3.12"

Pipfile.lock

Lines changed: 0 additions & 704 deletions
This file was deleted.

pyproject.toml

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
[build-system]
2+
requires = ["setuptools >= 77.0.3", "build","twine"]
3+
build-backend = "setuptools.build_meta"
4+
5+
[project]
6+
name = "wordpress-markdown-blog-loader"
7+
version = "1.6.0"
8+
authors = [{name = "Mark van Holsteijn", email = "[email protected]"}]
9+
license = {text = "APL2"}
10+
description = "load markdown blogs into wordpress"
11+
classifiers = [
12+
"Development Status :: 4 - Beta",
13+
"Environment :: Console",
14+
"Intended Audience :: Developers",
15+
"License :: OSI Approved :: BSD License",
16+
"Operating System :: POSIX",
17+
"Operating System :: MacOS",
18+
"Operating System :: Unix",
19+
"Operating System :: Microsoft :: Windows",
20+
"Programming Language :: Python :: 3",
21+
"Topic :: Software Development :: Libraries :: Python Modules",
22+
]
23+
dependencies = [
24+
"requests",
25+
"markdown",
26+
"python-frontmatter",
27+
"click",
28+
"pytz",
29+
"Pillow",
30+
"binx-og-image-generator>=1.2.6",
31+
"markdownify",
32+
"bs4",
33+
"html5lib",
34+
"lxml",
35+
"python-slugify",
36+
"unidecode",
37+
"stopwords",
38+
]
39+
40+
[project.readme]
41+
file = "README.md"
42+
content-type = "text/markdown"
43+
44+
[project.urls]
45+
Homepage = "https://github.com/binxio/wordpress-markdown-blog-loader"
46+
47+
[project.scripts]
48+
wp-md = "wordpress_markdown_blog_loader.__main__:main"
49+
50+
[project.optional-dependencies]
51+
testing = [
52+
"requests",
53+
"markdown",
54+
"python-frontmatter",
55+
"click",
56+
"pytz",
57+
"Pillow",
58+
"binx-og-image-generator>=1.2.6",
59+
"markdownify",
60+
"bs4",
61+
"html5lib",
62+
"lxml",
63+
"python-slugify",
64+
"pytest",
65+
"unidecode",
66+
"stopwords",
67+
]
68+

setup.py

Lines changed: 0 additions & 69 deletions
This file was deleted.

0 commit comments

Comments
 (0)