Skip to content

Commit 0643000

Browse files
authored
Merge pull request #1 from regro/skeleton
feat: add skeleton of project
2 parents 3f883b1 + dbb9e54 commit 0643000

File tree

8 files changed

+156
-0
lines changed

8 files changed

+156
-0
lines changed

.git_archival.txt

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
node: $Format:%H$
2+
node-date: $Format:%cI$
3+
describe-name: $Format:%(describe:tags=true)$
4+
ref-names: $Format:%D$

.gitattributes

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.git_archival.txt export-subst

.github/workflows/tests.yml

+54
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
name: tests
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request: null
8+
9+
env:
10+
PY_COLORS: "1"
11+
12+
concurrency:
13+
group: ${{ github.workflow }}-${{ github.ref }}
14+
cancel-in-progress: true
15+
16+
jobs:
17+
tests:
18+
name: tests
19+
runs-on: "ubuntu-latest"
20+
defaults:
21+
run:
22+
shell: bash -leo pipefail {0}
23+
24+
steps:
25+
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
26+
27+
- uses: mamba-org/setup-micromamba@f8b8a1e23a26f60a44c853292711bacfd3eac822 # v1
28+
with:
29+
environment-file: environment.yml
30+
31+
- name: configure conda and install code
32+
run: |
33+
micromamba install \
34+
pip setuptools setuptools_scm python-build \
35+
pytest \
36+
flaky
37+
pip install --no-deps --no-build-isolation -e .
38+
39+
- name: test versions
40+
run: |
41+
cd ..
42+
python -c "import conda_forge_feedstock_ops; assert conda_forge_feedstock_ops.__version__ != '0.0.0'"
43+
cd -
44+
45+
pip uninstall conda-forge-feedstock-ops --yes
46+
rm -rf dist/*
47+
python -m build --sdist . --outdir dist
48+
pip install --no-deps --no-build-isolation dist/*.tar.gz
49+
cd ..
50+
python -c "import conda_forge_feedstock_ops; assert conda_forge_feedstock_ops.__version__ != '0.0.0'"
51+
cd -
52+
pip uninstall conda-forge-feedstock-ops --yes
53+
54+
python -m pip install -v --no-deps --no-build-isolation -e .

.pre-commit-config.yaml

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
ci:
2+
autofix_commit_msg: |
3+
[pre-commit.ci] auto fixes from pre-commit.com hooks
4+
5+
for more information, see https://pre-commit.ci
6+
autofix_prs: false
7+
autoupdate_commit_msg: '[pre-commit.ci] pre-commit autoupdate'
8+
autoupdate_schedule: monthly
9+
skip: []
10+
submodules: false
11+
12+
repos:
13+
- repo: https://github.com/pre-commit/pre-commit-hooks
14+
rev: v4.6.0
15+
hooks:
16+
- id: end-of-file-fixer
17+
- id: trailing-whitespace
18+
- repo: https://github.com/astral-sh/ruff-pre-commit
19+
rev: v0.5.6
20+
hooks:
21+
- id: ruff
22+
args: [ --fix ]
23+
- id: ruff-format

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
# conda-forge-feedstock-ops
2+
[![tests](https://github.com/regro/conda-forge-feedstock-ops/actions/workflows/tests.yml/badge.svg)](https://github.com/regro/conda-forge-feedstock-ops/actions/workflows/tests.yml) [![pre-commit.ci status](https://results.pre-commit.ci/badge/github/regro/conda-forge-feedstock-ops/main.svg)](https://results.pre-commit.ci/latest/github/regro/conda-forge-feedstock-ops/main)
3+
24
A package of containerized feedstock maintenance operations

conda_forge_feedstock_ops/__init__.py

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from ._version import __version__ # noqa

environment.yml

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: cf-feedstock-ops
2+
channels:
3+
- conda-forge
4+
platforms:
5+
- linux-64
6+
- osx-64
7+
- osx-arm64
8+
dependencies:
9+
- python-rapidjson
10+
- requests
11+
- ruamel.yaml
12+
- conda
13+
- conda-package-handling
14+
- conda-smithy
15+
- conda-build
16+
- libmambapy >=1.5.1,<2.0a0
17+
- ruamel.yaml.jinja2
18+
- conda-forge-metadata >=0.2.0
19+
- wurlitzer
20+
- requests
21+
- zstandard
22+
- boltons >=23.0.0
23+
- py-rattler >=0.6.2,<0.7a0

pyproject.toml

+48
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
[build-system]
2+
requires = [
3+
"setuptools>=45",
4+
"setuptools_scm>=8",
5+
"tomli>=1.0.0; python_version < '3.11'",
6+
]
7+
build-backend = "setuptools.build_meta"
8+
9+
[project]
10+
name = "conda-forge-feedstock-ops"
11+
authors = [
12+
{name = "conda-forge-tick development team", email = "[email protected]"},
13+
]
14+
description = "A package of containerized feedstock maintenance operations"
15+
dynamic = ["version"]
16+
license = {file = "LICENSE"}
17+
readme = "README.md"
18+
19+
[project.urls]
20+
home = "https://github.com/regro/conda-forge-feedstock-ops"
21+
22+
[tool.setuptools.packages.find]
23+
exclude = ['tests*']
24+
25+
[tool.setuptools_scm]
26+
write_to = "conda_forge_feedstock_ops/_version.py"
27+
write_to_template = "__version__ = '{version}'\n"
28+
29+
[tool.ruff.lint]
30+
ignore = [
31+
"E501", # https://docs.astral.sh/ruff/faq/#is-the-ruff-linter-compatible-with-black
32+
]
33+
select = [
34+
# pyflakes
35+
"F",
36+
# pycodestyle
37+
"E", "W",
38+
# isort
39+
"I",
40+
# pep8-naming
41+
"N",
42+
# pypugrade
43+
"UP",
44+
# flake8-logging-format
45+
"G",
46+
# flake8-tidy-imports
47+
"TID",
48+
]

0 commit comments

Comments
 (0)