Skip to content

Commit

Permalink
Merge branch 'main' into no-distutils
Browse files Browse the repository at this point in the history
  • Loading branch information
brettcannon authored Feb 3, 2021
2 parents 13364f7 + c8a2f0b commit 1b7e957
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 11 deletions.
7 changes: 6 additions & 1 deletion CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,12 @@ Changelog
*unreleased*
~~~~~~~~~~~~

* Run [isort](https://pypi.org/project/isort/) over the code base (:issue:`377`)
No unreleased changes.

20.9 - 2021-01-29
~~~~~~~~~~~~~~~~~

* Run `isort <https://pypi.org/project/isort/>`_ over the code base (:issue:`377`)
* Add support for the ``macosx_10_*_universal2`` platform tags (:issue:`379`)
* Introduce ``packaging.utils.parse_wheel_filename()`` and ``parse_sdist_filename()``
(:issue:`387` and :issue:`389`)
Expand Down
14 changes: 7 additions & 7 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,17 +144,17 @@ def release(session):
diff = "\n".join(diff_generator)
session.error(f"Got the wrong files:\n{diff}")

# Get back out into master.
session.run("git", "checkout", "-q", "master", external=True)
# Get back out into main.
session.run("git", "checkout", "-q", "main", external=True)

# Check and upload distribution files.
session.run("twine", "check", *files)

# Push the commits and tag.
# NOTE: The following fails if pushing to the branch is not allowed. This can
# happen on GitHub, if the master branch is protected, there are required
# happen on GitHub, if the main branch is protected, there are required
# CI checks and "Include administrators" is enabled on the protection.
session.run("git", "push", "upstream", "master", release_version, external=True)
session.run("git", "push", "upstream", "main", release_version, external=True)

# Upload the distribution.
session.run("twine", "upload", *files)
Expand Down Expand Up @@ -210,14 +210,14 @@ def _check_git_state(session, version_tag):
)
if result.stdout.rstrip() not in allowed_upstreams:
session.error(f"git remote `upstream` is not one of {allowed_upstreams}")
# Ensure we're on master branch for cutting a release.
# Ensure we're on main branch for cutting a release.
result = subprocess.run(
["git", "rev-parse", "--abbrev-ref", "HEAD"],
capture_output=True,
encoding="utf-8",
)
if result.stdout != "master\n":
session.error(f"Not on master branch: {result.stdout!r}")
if result.stdout != "main\n":
session.error(f"Not on main branch: {result.stdout!r}")

# Ensure there are no uncommitted changes.
result = subprocess.run(
Expand Down
2 changes: 1 addition & 1 deletion packaging/__about__.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
__summary__ = "Core utilities for Python packages"
__uri__ = "https://github.com/pypa/packaging"

__version__ = "20.9.dev0"
__version__ = "20.10.dev0"

__author__ = "Donald Stufft and individual contributors"
__email__ = "[email protected]"
Expand Down
4 changes: 2 additions & 2 deletions packaging/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -372,12 +372,12 @@ def pre(self):

@property
def post(self):
# type: () -> Optional[Tuple[str, int]]
# type: () -> Optional[int]
return self._version.post[1] if self._version.post else None

@property
def dev(self):
# type: () -> Optional[Tuple[str, int]]
# type: () -> Optional[int]
return self._version.dev[1] if self._version.dev else None

@property
Expand Down

0 comments on commit 1b7e957

Please sign in to comment.