-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This is the Initial Public Release of the Python Software Foundation's consolidated and centralized policies. It includes: Imports of the following policy documents - PyPI.org Acceptable Use Policy - PyPI.org Code of Conduct - PyPI.org Terms of use - Python.org Code of Conduct - Python.org Contributing - Python.org Legal Statements - Python.org Privacy Policy - us.pycon.org Privacy and Data Policy - us.pycon.org Code of Conduct - us.pycon.org Code of Conduct Enforcement Procedures - us.pycon.org Code of Conduct Procedures for Reporting Incidents As well as the following new policies: - Python.org Copyright Policy This repository is a public mirror of a private repository. Releases from the private are squashed into single commits.
- Loading branch information
0 parents
commit 8d8126d
Showing
22 changed files
with
1,546 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
/site | ||
|
||
*.swp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# .readthedocs.yaml | ||
# Read the Docs configuration file | ||
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details | ||
|
||
version: 2 | ||
|
||
build: | ||
os: ubuntu-22.04 | ||
tools: | ||
python: "3.11" | ||
commands: | ||
- python -m pip install -r requirements.txt | ||
- python -m mkdocs build --clean --site-dir $READTHEDOCS_OUTPUT/html --config-file mkdocs.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
FROM python:3.11.3-slim-bullseye as docs | ||
|
||
RUN set -x \ | ||
&& apt-get update \ | ||
&& apt-get install --no-install-recommends -y \ | ||
build-essential git libcairo2-dev libfreetype6-dev \ | ||
libjpeg-dev libpng-dev libz-dev | ||
|
||
RUN set -x \ | ||
&& python3 -m venv /opt/venv | ||
|
||
ENV PATH="/opt/venv/bin:${PATH}" | ||
|
||
RUN pip --no-cache-dir --disable-pip-version-check install \ | ||
--upgrade pip setuptools wheel | ||
COPY requirements.txt /tmp/requirements.txt | ||
RUN set -x \ | ||
&& pip --no-cache-dir --disable-pip-version-check \ | ||
install -r /tmp/requirements.txt \ | ||
&& pip check \ | ||
&& find /opt/venv -name '*.pyc' -delete | ||
|
||
WORKDIR /opt/venv/src/ | ||
COPY mkdocs.yml /opt/venv/src/mkdocs.yml | ||
COPY docs /opt/venv/src/docs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Python Software Foundation Policies | ||
|
||
This repository acts as the canonical source for the policies published by | ||
the [Python Software Foundation](https://python.org/psf/). | ||
|
||
## Development | ||
|
||
You can use `docker compose up` to start development server with live-reloading as you | ||
edit documents. | ||
|
||
Once it has started, navigate to [http://localhost:10000](http://localhost:10000) | ||
in your browser! Any edits made will render as you save your work. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
version: '3.9' | ||
|
||
services: | ||
docs: | ||
build: | ||
context: . | ||
pull_policy: never | ||
command: mkdocs serve -a 0.0.0.0:8000 -f mkdocs.yml | ||
volumes: | ||
- ./.git:/opt/venv/src/.git:z | ||
- ./mkdocs.yml:/opt/venv/src/mkdocs.yml:z | ||
- ./docs:/opt/venv/src/docs:z | ||
- ./overrides:/opt/venv/src/overrides:z | ||
environment: | ||
- PREVIEW=True | ||
ports: | ||
- "10000:8000" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
--- | ||
title: About | ||
--- | ||
|
||
# About | ||
|
||
This site serves as the canonical location for policies published by the | ||
[Python Software Foundation](https://python.org/psf-landing/). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# .readthedocs.yaml | ||
# Read the Docs configuration file | ||
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details | ||
|
||
# Required | ||
version: 2 | ||
|
||
# Set the version of Python and other tools you might need | ||
build: | ||
os: ubuntu-22.04 | ||
tools: | ||
python: "3.11" | ||
|
||
mkdocs: | ||
configuration: mkdocs.yml | ||
|
||
# Optionally declare the Python requirements required to build your docs | ||
python: | ||
install: | ||
- requirements: requirements.txt |
Oops, something went wrong.