Skip to content

Commit

Permalink
Update version + CHANGES.md for 6.0.0 release (#1199)
Browse files Browse the repository at this point in the history
- Add config options to docs explaining valid setting + docs fixes
  • Loading branch information
cooperlees authored Sep 1, 2022
1 parent 785aa61 commit e455dda
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 8 deletions.
4 changes: 2 additions & 2 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

## New Features

- Add PEP691 simple index support `PR #1154`
- Add example nginx serving for *PEP 691* `PR #1161`
- Add [PEP691](https://peps.python.org/pep-0691/) simple index support `PR #1154`
- Add example nginx serving for PEP 691 `PR #1161`

# 5.3.0 (2022-07-29)

Expand Down
2 changes: 1 addition & 1 deletion docs/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ Docker is an easy way to get minio to run for tests to pass.
docker run \
-p 9000:9000 \
-p 9001:9001 \
--name minio1 \
--name minio \
-v /Users/cooper/tmp/minio:/data \
minio/minio server /data --console-address ":9001"
```
Expand Down
9 changes: 7 additions & 2 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,12 @@ or packages since the last run's serial. bandersnatch then uses the JSON API
of PyPI to get shasums and release file paths to download and workout where
to layout the package files on a POSIX file system.

As of 4.0 bandersnatch:
As of 6.0:

- Supports PEP691
- HTML + JSON Simple Index

As of 4.0:

- Is fully asyncio based (mainly via aiohttp)
- Only stores PEP503 nomalized packages names for the /simple API
Expand All @@ -29,7 +34,7 @@ Contents
--------

.. toctree::
:maxdepth: 3
:maxdepth: 4

installation
storage_options
Expand Down
19 changes: 18 additions & 1 deletion docs/mirror_configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -226,10 +226,27 @@ proxy=http://myproxy.com
By default bandersnatch downloads packages from the URL supplied in the master server server's json response.
This option asks bandersnatch to try to download from the configured PyPI mirror first, and fallback to the
URL supplied by the master server if it was not successful (unable to get content or checksum mismatch).
This is useful to sync most of the files from an existing, nearby mirror, for example when setting up a new server sitting next to an existing one for the purpose of load sharing.
This is useful to sync most of the files from an existing, nearby mirror, for example when setting up a new
server sitting next to an existing one for the purpose of load sharing.

Example:
```ini
[mirror]
download-mirror = https://pypi-mirror.example.com/
```

## simple-format

Format for Simple API to be stored in. With PEP691 we now have HTML and JSON formats.

Valid options are:

- ALL
- HTML
- JSON

Default: `ALL` formats

```ini
simple-format = ALL
```
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ project_urls =
Source Code = https://github.com/pypa/bandersnatch
Change Log = https://github.com/pypa/bandersnatch/blob/master/CHANGES.md
url = https://github.com/pypa/bandersnatch/
version = 6.0.0.dev0
version = 6.0.0

[options]
install_requires =
Expand Down
2 changes: 1 addition & 1 deletion src/bandersnatch/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def version_str(self) -> str:
major=6,
minor=0,
micro=0,
releaselevel="dev0",
releaselevel="",
serial=0, # Not currently in use with Bandersnatch versioning
)
__version__ = __version_info__.version_str

0 comments on commit e455dda

Please sign in to comment.