Skip to content

Commit

Permalink
address review
Browse files Browse the repository at this point in the history
  • Loading branch information
ofek committed Aug 28, 2022
1 parent e9c5899 commit cb0e5ef
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/diff_shades.yml
Expand Up @@ -41,6 +41,7 @@ jobs:
needs: configure
runs-on: ubuntu-latest
env:
HATCH_BUILD_HOOKS_ENABLE: "1"
# Clang is less picky with the C code it's given than gcc (and may
# generate faster binaries too).
CC: clang-12
Expand Down Expand Up @@ -80,10 +81,9 @@ jobs:
if: steps.baseline-cache.outputs.cache-hit != 'true'
env:
GITHUB_TOKEN: ${{ github.token }}
HATCH_BUILD_HOOKS_ENABLE: "1"
run: >
${{ matrix.baseline-setup-cmd }}
&& python -m pip install . && rm dist -r
&& python -m pip install .
- name: Analyze baseline revision
if: steps.baseline-cache.outputs.cache-hit != 'true'
Expand All @@ -94,7 +94,6 @@ jobs:
- name: Build and install target revision
env:
GITHUB_TOKEN: ${{ github.token }}
HATCH_BUILD_HOOKS_ENABLE: "1"
run: >
${{ matrix.target-setup-cmd }}
&& python -m pip install .
Expand Down
3 changes: 2 additions & 1 deletion CHANGES.md
Expand Up @@ -74,7 +74,8 @@
<!-- Changes to how Black is packaged, such as dependency requirements -->

- Python 3.11 is now supported, except for `blackd` (#3234)
- Hatchling is now used as the build backend. (#3233)
- Hatchling is now used as the build backend. This will not have any effect for users
who install Black with its wheels from PyPI. (#3233)

### Parser

Expand Down
12 changes: 6 additions & 6 deletions pyproject.toml
Expand Up @@ -97,12 +97,10 @@ Homepage = "https://github.com/psf/black"

[tool.hatch.metadata.hooks.fancy-pypi-readme]
content-type = "text/markdown"

[[tool.hatch.metadata.hooks.fancy-pypi-readme.fragments]]
path = "README.md"

[[tool.hatch.metadata.hooks.fancy-pypi-readme.fragments]]
path = "CHANGES.md"
fragments = [
{ path = "README.md" },
{ path = "CHANGES.md" },
]

[tool.hatch.version]
source = "vcs"
Expand All @@ -126,6 +124,8 @@ dependencies = [
]
require-runtime-dependencies = true
exclude = [
# There's no good reason for blackd to be compiled.
"/src/blackd",
# Not performance sensitive, so save bytes + compilation time:
"/src/blib2to3/__init__.py",
"/src/blib2to3/pgen2/__init__.py",
Expand Down

0 comments on commit cb0e5ef

Please sign in to comment.