Releases: EpicWink/proxpi
Releases · EpicWink/proxpi
Version 1.0rc0
Changes since v0.1
Features
- Add home page with index invalidation and link to index root
- Add environment variable
PROXPI_CACHE_DIR
to set file-cache directory
Improvements
- Reduced Docker image size
- Avoid requesting index by assuming package URL
- Use single request session for cache
- Protect file-cache eviction with a lock
- Remove smallest files first when evict from file-cache
- Convert user-assert into RuntimeError
Fixes
- Download-fail response not cached
Version 0.1
Initial release
Features
- Host a proxy PyPI mirror server with caching
- Cache the index (package list and packages' file list)
- Cache the package files
- Support multiple indices
- Set index cache times-to-live (individually for each index)
- Set files cache max-size on disk
- Manually invalidate index cache
pip install proxpi==0.1
docker pull epicwink/proxpi:v0.1.0
Version 0.1rc0
Features
- Cache configuration is logged (info level) on start-up
- Add CI-specific documentation in the README
Changes
- Extra index URLs and TTLs in environment variables
PROXPI_EXTRA_INDEX_URLS
andPROXPI_EXTRA_INDEX_TTLS
are comma-separated instead of white-space separated - Package file download (eg due to cache directory permissions, or to unauthorised request) will redirect client to download from original URL instead of crashing server
Improvements
- Jinja is required
- Cached files are saved using original filename
Fixes
- Docker image has
lxml
installed
Version 0.1a3
Changes
- Main index environment variables have been renamed (dropped the
ROOT
part)
Improvements
- Files aren't downloaded at all if file-cache is disabled (ie max file cache size is 0)
- Passwords are masked in logged URLs
Version 0.1a2
Features
- Index and package file list cache invalidation
- Set max disk-usage of cached files
- Support coloured logging when
coloredlogs
is installed - Expose cache functionality
- All files from all indices for a package is returned, instead of just the first index the package was found in
- Any fragment in the original index is returned
- Any attributes in the original index is returned
Changes
- Change package structure: app is now at
proxpi.server.app
- An exception during file-download will be raised instead of returning the original URL
- Environment variables have been renamed, and are now all prefixed with
PROXPI_
- Debug-logging only enabled during testing and debugging: otherwise uses info-logging
Improvements
- Use
lxml
for HTML parsing: significant speed up in package-list from PyPI - Added integration tests
- Cache isn't initialised unless
proxpi.server
is imported - Cache initialisation happens asynchronously
- URLs are built in templates
- Index caches are thread-safe
Version 0.1a1
Features
- Add cache-miss logging
Version 0.1a0
Features
- Host a proxy PyPI mirror server with caching
- Support extra index URLs
- Support index cache times-to-live (individually for each index)