Skip to content

Commit 0023007

Browse files
committed
Stop building our own conda package in favour of conda-forge
1 parent e03cd0d commit 0023007

File tree

5 files changed

+1
-147
lines changed

5 files changed

+1
-147
lines changed

.bumpversion.cfg

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,3 @@ replace = current_version="{new_version}"
2020
[bumpversion:file:pyproject.toml]
2121
search = version = "{current_version}"
2222
replace = version = "{new_version}"
23-
24-
[bumpversion:file:.github/workflows/conda_ci.yml]
25-
search = ={current_version}=py_1
26-
replace = ={new_version}=py_1

.github/workflows/conda_ci.yml

Lines changed: 0 additions & 67 deletions
This file was deleted.

.github/workflows/python_ci_linux.yml

Lines changed: 0 additions & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -178,68 +178,3 @@ jobs:
178178
python .github/milestones.py
179179
env:
180180
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
181-
182-
183-
184-
Conda:
185-
needs: deploy
186-
permissions:
187-
contents: read
188-
runs-on: ubuntu-22.04
189-
if: startsWith(github.ref, 'refs/tags/') || (startsWith(github.event.head_commit.message, 'Bump version') != true)
190-
steps:
191-
- name: Checkout 🛎️
192-
uses: "actions/checkout@v4"
193-
194-
- name: Setup Python 🐍
195-
uses: "actions/setup-python@v5"
196-
with:
197-
python-version: 3.11
198-
199-
- name: Setup Conda
200-
uses: conda-incubator/[email protected]
201-
with:
202-
activate-environment: env
203-
conda-build-version: 3.28.4
204-
miniconda-version: py311_24.1.2-0
205-
python-version: "3.11"
206-
miniforge-variant: Mambaforge
207-
208-
- name: Install dependencies 🔧
209-
run: |
210-
python -VV
211-
python -m site
212-
python -m pip install --upgrade pip setuptools wheel
213-
python -m pip install --upgrade "mkrecipe" "flit-core<4,>=3.2"
214-
# $CONDA is an environment variable pointing to the root of the miniconda directory
215-
$CONDA/bin/conda config --set always_yes yes --set changeps1 no
216-
$CONDA/bin/conda update -n base conda
217-
$CONDA/bin/conda info -a
218-
$CONDA/bin/conda install conda-forge::py-lief=0.14.1
219-
$CONDA/bin/conda config --add channels conda-forge
220-
$CONDA/bin/conda config --add channels domdfcoding
221-
222-
$CONDA/bin/conda config --remove channels defaults
223-
224-
- name: Build Conda Package 📦
225-
run: |
226-
python -m mkrecipe --type wheel || exit 1
227-
$CONDA/bin/conda build conda -c conda-forge -c domdfcoding --output-folder conda/dist
228-
229-
- name: Deploy Conda Package 🚀
230-
if: startsWith(github.ref, 'refs/tags/')
231-
run: |
232-
$CONDA/bin/conda config --set always_yes yes --set changeps1 no
233-
$CONDA/bin/conda install anaconda-client
234-
$CONDA/bin/conda info -a
235-
236-
for f in conda/dist/noarch/consolekit-*.tar.bz2; do
237-
[ -e "$f" ] || continue
238-
echo "$f"
239-
conda install "$f" || exit 1
240-
echo "Deploying to Anaconda.org..."
241-
$CONDA/bin/anaconda -t "$ANACONDA_TOKEN" upload "$f" || exit 1
242-
echo "Successfully deployed to Anaconda.org."
243-
done
244-
env:
245-
ANACONDA_TOKEN: ${{ secrets.ANACONDA_TOKEN }}

pyproject.toml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,6 @@ terminals = [ "psutil>=5.8.0",]
5757
testing = [ "coincidence>=0.1.0", "pytest>=6.0.0", "pytest-regressions>=2.0.2",]
5858
all = [ "coincidence>=0.1.0", "psutil>=5.8.0", "pytest>=6.0.0", "pytest-regressions>=2.0.2",]
5959

60-
[tool.mkrecipe]
61-
conda-channels = [ "conda-forge", "domdfcoding",]
62-
extras = []
63-
license-key = "MIT"
64-
6560
[tool.sphinx-pyproject]
6661
github_username = "domdfcoding"
6762
github_repository = "consolekit"

repo_helper.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,7 @@ min_coverage: 93.5
1414
docs_fail_on_warning: true
1515
mypy_version: "0.971"
1616
on_conda_forge: true
17-
18-
conda_extras:
19-
- none
17+
enable_conda: false
2018

2119
python_versions:
2220
3.7:
@@ -62,9 +60,6 @@ classifiers:
6260
- 'Intended Audience :: Developers'
6361
- 'Topic :: Software Development :: Libraries :: Python Modules'
6462

65-
conda_channels:
66-
- conda-forge
67-
6863
additional_ignore:
6964
- _command.py
7065

0 commit comments

Comments
 (0)