Skip to content

Commit e84c2d3

Browse files
committed
Use consistent capitalisation for names when building conda packages.
1 parent 7cc6b84 commit e84c2d3

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

repo_helper/build.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@ def write_conda_index(self, build_number: int = 1):
411411
)
412412

413413
index = {
414-
"name": self.config["repo_name"].lower(),
414+
"name": self.config["pypi_name"].lower(),
415415
"version": self.config["version"],
416416
"build": build_string,
417417
"build_number": build_number,
@@ -538,7 +538,7 @@ def create_conda_archive(self, wheel_contents_dir: PathLike, build_number: int =
538538

539539
self.out_dir.maybe_make(parents=True)
540540

541-
conda_filename = self.out_dir / f"{self.config['repo_name']}-{self.config['version']}-{build_string}.tar.bz2"
541+
conda_filename = self.out_dir / f"{self.config['pypi_name'].lower()}-{self.config['version']}-{build_string}.tar.bz2"
542542

543543
site_packages = PathPlus("site-packages")
544544

repo_helper/templates/actions_deploy_conda.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ conda update -q conda
1212
conda install anaconda-client
1313
conda info -a
1414

15-
for f in conda/dist/noarch/{{ pypi_name }}-*.tar.bz2; do
15+
for f in conda/dist/noarch/{{ pypi_name.lower() }}-*.tar.bz2; do
1616
[ -e "$f" ] || continue
1717
echo "$f"
1818
conda install "$f" || exit 1

repo_helper/templates/github_conda_ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
{# TODO: Install deps then install package, as current approach doesn't seem to work either #}
4141
python -m repo_helper build --conda --out-dir conda-bld/noarch
4242
$CONDA/bin/conda index ./conda-bld || exit 1
43-
$CONDA/bin/conda install -c file://$(pwd)/conda-bld {{ pypi_name }} -y || exit 1
43+
$CONDA/bin/conda install -c file://$(pwd)/conda-bld {{ pypi_name.lower() }} -y || exit 1
4444
4545
{# - name: "Run Tests for Python ${{ "{{" }} matrix.python-version {{ "}}" }}"
4646
run: |

0 commit comments

Comments
 (0)