Skip to content

Commit 22318fb

Browse files
committed
fix: dependecies and conda build
1 parent b288780 commit 22318fb

9 files changed

Lines changed: 1576 additions & 1053 deletions

File tree

.github/dependabot.yml

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,14 @@ updates:
1010
directory: "/"
1111
schedule:
1212
interval: "monthly"
13-
14-
- package-ecosystem: "pip"
15-
directory: "/docs"
16-
# Disable automatic updates for docs dependencies
17-
schedule:
18-
interval: "never"
13+
# Ignore optional dependency groups (docs, release, test)
14+
ignore:
15+
# Release dependencies (optional group)
16+
- dependency-name: "bump-my-version"
17+
- dependency-name: "git-changelog"
18+
- dependency-name: "pandoc"
19+
# Docs dependencies (optional group)
20+
- dependency-name: "sphinx*"
21+
- dependency-name: "sphinx-rtd-theme"
22+
# Test dependencies
23+
- dependency-name: "pytest*"

.github/workflows/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@ jobs:
1313
strategy:
1414
matrix:
1515
os: [Ubuntu, macOS, Windows]
16-
python-version: ["3.9", "3.10", "3.11", "3.12"]
16+
python-version: ["3.10", "3.11", "3.12", "3.13"]
1717
include:
1818
- os: Ubuntu
1919
image: ubuntu-22.04
2020
- os: Windows
2121
image: windows-2022
2222
- os: macOS
23-
image: macos-12
23+
image: macos-14
2424
fail-fast: false
2525
defaults:
2626
run:

.github/workflows/publish_conda.yml

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,15 @@ jobs:
88
publish:
99
runs-on: ubuntu-latest
1010
steps:
11-
- uses: actions/checkout@v2
12-
- name: publish-to-conda
13-
uses: fcakyon/conda-publish-action@v1.3
11+
- uses: actions/checkout@v4
12+
- name: Setup Miniconda
13+
uses: conda-incubator/setup-miniconda@v3
1414
with:
15-
subdir: 'conda'
16-
anacondatoken: ${{ secrets.ANACONDA_TOKEN }}
17-
platforms: 'win osx linux'
15+
auto-activate-base: true
16+
activate-environment: ""
17+
- name: Build and publish to conda
18+
shell: bash -l {0}
19+
run: |
20+
conda install -y conda-build anaconda-client
21+
conda build conda --output-folder build
22+
anaconda -t ${{ secrets.ANACONDA_TOKEN }} upload build/noarch/*.tar.bz2 --force

.github/workflows/test_conda.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Test Conda Build
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- 'conda/**'
7+
- 'pyproject.toml'
8+
workflow_dispatch:
9+
10+
jobs:
11+
test-conda-build:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v4
15+
16+
- name: Setup Miniconda
17+
uses: conda-incubator/setup-miniconda@v3
18+
with:
19+
auto-activate-base: true
20+
activate-environment: ""
21+
22+
- name: Test conda build
23+
shell: bash -l {0}
24+
run: |
25+
conda install -y conda-build
26+
conda build conda --no-anaconda-upload --output-folder build
27+
28+
- name: Show build artifacts
29+
shell: bash -l {0}
30+
run: |
31+
ls -lh build/noarch/
32+
33+
- name: Verify package contents
34+
shell: bash -l {0}
35+
run: |
36+
conda install -y conda-verify
37+
conda verify build/noarch/*.tar.bz2

.pyup.yml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
# PyUp configuration
2+
# See https://pyup.io/docs/configuration/
3+
4+
# Update schedule
5+
schedule: "every month"
6+
7+
# Branch to create PRs against
8+
branch: master
9+
10+
# Only update direct dependencies in pyproject.toml main group
11+
# Ignore all optional dependencies and transitive dependencies
12+
update: insecure
13+
14+
# Ignore all optional dependency groups
15+
ignore:
16+
# All docs dependencies (optional group)
17+
- sphinx
18+
- sphinx-rtd-theme
19+
20+
# All release dependencies (optional group)
21+
- git-changelog
22+
- bump-my-version
23+
- pandoc
24+
25+
# All test dependencies
26+
- pytest
27+
- pytest-cov
28+
- pytest-randomly
29+
30+
# Transitive dependencies (let main deps pull these)
31+
- certifi
32+
- charset-normalizer
33+
- idna
34+
- requests
35+
- urllib3
36+
- pillow
37+
- docutils
38+
- babel
39+
- markupsafe
40+
- pygments
41+
- jinja2
42+
- packaging
43+
- pyparsing
44+
- fonttools
45+
- kiwisolver
46+
- contourpy
47+
- snowballstemmer
48+
- pytz
49+
- tzdata
50+
51+
# Only track core dependencies: numpy, pandas, openpyxl, matplotlib
52+
requirements:
53+
- pyproject.toml
54+
55+
# Label for PRs
56+
label_prs: dependencies

conda/conda_build_config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
python:
2-
- 3.9
32
- 3.10
43
- 3.11
5-
- 3.12
4+
- 3.12
5+
- 3.13

conda/meta.yaml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,20 @@ source:
1010

1111
build:
1212
number: 0
13-
script: {{ PYTHON }} -m pip install . -vv
13+
noarch: python
14+
script: {{ PYTHON }} -m pip install . -vv --no-deps --ignore-installed
1415

1516
requirements:
1617
host:
17-
- python
18+
- python >=3.9,<3.14
1819
- pip
19-
- setuptools
20-
- wheel
20+
- poetry-core >=1.0.0
2121
run:
22-
- python
22+
- python >=3.9,<3.14
23+
- numpy >=1.26.1
24+
- pandas >=2.1.1
25+
- openpyxl >=3.1.2
26+
- matplotlib >=3.8.0
2327

2428
about:
2529
home: {{ poetry.get('homepage') }}

0 commit comments

Comments
 (0)