Skip to content

Commit 1fa05b6

Browse files
committed
v0.7.0 — New methods, typing, and PEP 629
- Drop support for Python 2.7, Python 3.4, and Python 3.5 - `DistributionPackage.has_sig` is now `None` if the package repository does not report this information - Added type annotations - Moved documentation from README file to a Read the Docs site - Added new methods to `PyPISimple`: - `get_index_page()` — Returns an `IndexPage` instance with a `projects: List[str]` attribute plus other attributes for repository metadata - `get_project_page()` — Returns a `ProjectPage` instance with a `packages: List[DistributionPackage]` attribute plus other attributes for repository metadata - `stream_project_names()` — Retrieves project names from a repository using a streaming request - New utility functions: - `parse_repo_links()` — Parses an HTML page and returns a pair of repository metadata and a list of `Link` objects - `parse_repo_project_page()` — Parses a project page and returns a `ProjectPage` instance - `parse_repo_project_response()` — Parses a `requests.Response` object containing a project page and returns a `ProjectPage` instance - `parse_links_stream()` — Parses an HTML page as stream of `bytes` or `str` and returns a generator of `Link` objects - `parse_links_stream_response()` — Parses a streaming `requests.Response` object containing an HTML page and returns a generator of `Link` objects - `parse_repo_index_page()` — Parses a simple repository index/root page and returns an `IndexPage` instance - `parse_repo_index_response()` — Parses a `requests.Response` object containing an index page and returns an `IndexPage` instance - The following functions & methods are now deprecated and will be removed in a future version: - `PyPISimple.get_projects()` - `PyPISimple.get_project_files()` - `parse_simple_index()` - `parse_project_page()` - `parse_links()` - Support Warehouse's ``X-PyPI-Last-Serial`` header by attaching the value to the objects returned by `get_index_page()` and `get_project_page()` - Support PEP 629 by attaching the repository version to the objects returned by `get_index_page()` and `get_project_page()` and by raising an `UnsupportedRepoVersionError` when a repository with an unsupported version is encountered
1 parent e76f23f commit 1fa05b6

File tree

3 files changed

+10
-5
lines changed

3 files changed

+10
-5
lines changed

CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
v0.7.0 (in development)
2-
-----------------------
1+
v0.7.0 (2020-10-15)
2+
-------------------
33
- Drop support for Python 2.7, Python 3.4, and Python 3.5
44
- `DistributionPackage.has_sig` is now `None` if the package repository does
55
not report this information

docs/changelog.rst

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
Changelog
44
=========
55

6-
v0.7.0 (in development)
7-
-----------------------
6+
v0.7.0 (2020-10-15)
7+
-------------------
88
- Drop support for Python 2.7, Python 3.4, and Python 3.5
99
- `DistributionPackage.has_sig` is now `None` if the package repository does
1010
not report this information
@@ -63,6 +63,7 @@ v0.6.0 (2020-03-01)
6363
- `DistributionPackage.sig_url` is now always non-`None`, as Warehouse does not
6464
report proper values for `~DistributionPackage.has_sig`
6565

66+
6667
v0.5.0 (2019-05-12)
6768
-------------------
6869
- The `PyPISimple` constructor now takes an optional ``session`` argument which
@@ -71,25 +72,29 @@ v0.5.0 (2019-05-12)
7172
- Support for PEP 592; `DistributionPackage` now has a
7273
`~DistributionPackage.yanked` attribute
7374

75+
7476
v0.4.0 (2018-09-06)
7577
-------------------
7678
- Publicly (i.e., in the README) document the utility functions
7779
- Gave `PyPISimple` an ``auth`` parameter for specifying login/authentication
7880
details
7981

82+
8083
v0.3.0 (2018-09-03)
8184
-------------------
8285
- When fetching the list of files for a project, the project name is now used
8386
to resolve ambiguous filenames.
8487
- The filename parser now requires all filenames to be all-ASCII (except for
8588
wheels).
8689

90+
8791
v0.2.0 (2018-09-01)
8892
-------------------
8993
- The filename parser now rejects invalid project names, blatantly invalid
9094
versions, and non-ASCII digits.
9195
- RPM packages are now recognized.
9296

97+
9398
v0.1.0 (2018-08-31)
9499
-------------------
95100
Initial release

src/pypi_simple/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
for more information.
1414
"""
1515

16-
__version__ = '0.7.0.dev1'
16+
__version__ = '0.7.0'
1717
__author__ = 'John Thorvald Wodder II'
1818
__author_email__ = '[email protected]'
1919
__license__ = 'MIT'

0 commit comments

Comments
 (0)