Skip to content

Commit

Permalink
address review
Browse files Browse the repository at this point in the history
  • Loading branch information
ofek committed Aug 20, 2022
1 parent c95a6d3 commit 6db433c
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 10 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/diff_shades.yml
Expand Up @@ -33,6 +33,7 @@ jobs:
id: set-config
env:
GITHUB_TOKEN: ${{ github.token }}
HATCH_BUILD_HOOKS_ENABLE: "1"
run: >
python scripts/diff_shades_gha_helper.py config ${{ github.event_name }} ${{ matrix.mode }}
Expand All @@ -41,6 +42,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 +82,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 +95,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 @@ -69,7 +69,8 @@

<!-- Changes to how Black is packaged, such as dependency requirements -->

- 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 6db433c

Please sign in to comment.