Skip to content

Commit 2f8f2b4

Browse files
authored
Fix docs workflow (#529)
* Fix docs workflow * Different way of disabling the workflow
1 parent f486d3b commit 2f8f2b4

File tree

4 files changed

+74
-25
lines changed

4 files changed

+74
-25
lines changed

.github/workflows/release.yml

Lines changed: 37 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
name: Publish PyPI Release
2+
name: Publish PyPI Release (BROKEN)
33

44
on:
55
release:
@@ -11,26 +11,40 @@ jobs:
1111

1212
steps:
1313
- uses: actions/checkout@v4
14+
# - name: Set up Python
15+
# uses: actions/setup-python@v5
16+
# with:
17+
# python-version: "3.x"
1418

15-
- name: Set up Python
16-
uses: actions/setup-python@v5
17-
with:
18-
python-version: "3.x"
19-
20-
- name: Install dependencies
21-
run: |
22-
python -m pip install -U pip
23-
python -m pip install -r requirements/build.txt
24-
python -m pip install -r requirements.txt
25-
26-
- name: Build package
27-
run: |
28-
python -m build --sdist --wheel --outdir dist .
29-
twine check dist/*
30-
31-
- name: Upload packages to Jazzband
32-
uses: pypa/gh-action-pypi-publish@release/v1
33-
with:
34-
user: jazzband
35-
password: ${{ secrets.JAZZBAND_RELEASE_KEY }}
36-
repository-url: https://jazzband.co/projects/django-dbbackup/upload
19+
# - name: Install dependencies
20+
# run: |
21+
# python -m pip install -U pip
22+
# python -m pip install -U -r requirements/build.txt
23+
# python -m pip install -U -r requirements.txt
24+
25+
# - name: Build package
26+
# run: |
27+
# python -m build --sdist --wheel --outdir dist .
28+
# twine check dist/*
29+
30+
# - name: Upload packages to Jazzband
31+
# uses: pypa/gh-action-pypi-publish@release/v1
32+
# with:
33+
# user: jazzband
34+
# password: ${{ secrets.JAZZBAND_RELEASE_KEY }}
35+
# repository-url: https://jazzband.co/projects/django-dbbackup/upload
36+
37+
# This workflopw is disabled due to the following error:
38+
#
39+
# ERROR HTTPError: 500 Internal Server Error from
40+
# https://jazzband.co/projects/django-dbbackup/upload
41+
# INTERNAL SERVER ERROR
42+
43+
# Until we are transfered out of Jazzband, the workaround is releasing manually via personal PyPI accounts.
44+
# The following steps are required to release a new version of the package:
45+
# python -m pip install -U pip
46+
# python -m pip install -U -r requirements/build.txt
47+
# python -m pip install -U -r requirements.txt
48+
# python -m build --sdist --wheel --outdir dist .
49+
# twine check dist/*
50+
# twine upload dist/*

.readthedocs.yaml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# Read the Docs configuration file for Sphinx projects
2+
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
3+
4+
# Required
5+
version: 2
6+
7+
# Set the OS, Python version and other tools you might need
8+
build:
9+
os: ubuntu-22.04
10+
tools:
11+
python: "3.12"
12+
# You can also specify other tool versions:
13+
# nodejs: "20"
14+
# rust: "1.70"
15+
# golang: "1.20"
16+
17+
# Build documentation in the "docs/" directory with Sphinx
18+
sphinx:
19+
configuration: docs/conf.py
20+
# You can configure Sphinx to use a different builder, for instance use the dirhtml builder for simpler URLs
21+
# builder: "dirhtml"
22+
# Fail on all warnings to avoid broken references
23+
# fail_on_warning: true
24+
# Optionally build your docs in additional formats such as PDF and ePub
25+
# formats:
26+
# - pdf
27+
# - epub
28+
29+
# Optional but recommended, declare the Python requirements required
30+
# to build your documentation
31+
# See https://docs.readthedocs.io/en/stable/guides/reproducible-builds.html
32+
python:
33+
install:
34+
- requirements: requirements/docs.txt

docs/changelog.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ Unreleased
99
4.2.0 (2024-08-22)
1010
------------------
1111

12-
* Default HOST to localhost for postgres databases. https://github.com/jazzband/django-dbbackup/issues/520
13-
* Add PostgreSQL Schema support by @angryfoxx in https://github.com/jazzband/django-dbbackup/pull/507
12+
* Default HOST to localhost for postgres databases.
13+
* Add PostgreSQL Schema support
1414
* Fix restore of database from S3 storage by reintroducing inputfile.seek(0) to utils.uncompress_file
1515
* Add warning for filenames with slashes in them
1616
* Fix bug where dbbackup management command would not respect settings.py:DBBACKUP_DATABASES

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ def get_test_requirements():
2727
author="Archmonger",
2828
author_email="[email protected]",
2929
long_description=(root_dir / "README.rst").read_text(encoding="utf-8"),
30+
long_description_content_type="text/x-rst",
3031
python_requires=">=3.7",
3132
install_requires=get_requirements(),
3233
tests_require=get_test_requirements(),

0 commit comments

Comments
 (0)