Skip to content

Commit

Permalink
checkpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
moshez committed Jan 11, 2024
1 parent 35f41e5 commit fde4c6c
Show file tree
Hide file tree
Showing 4 changed files with 69 additions and 4 deletions.
55 changes: 55 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: Release

on:
push:
branches:
- master

permissions: # added using https://github.com/step-security/secure-workflows
contents: read

jobs:
build:
name: Build
runs-on: ubuntu-latest
permissions:
id-token: write
steps:
- uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2

- uses: actions/setup-python@57ded4d7d5e986d7296eab16560982c6dd7c923b
with:
python-version: "3.x"
cache: "pip"
cache-dependency-path: pyproject.toml

- name: deps
run: python -m pip install -U build

- name: env
run: env

- name: build
run: python -m build

- name: Upload built packages
uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2
with:
name: built-packages
path: ./dist/
if-no-files-found: warn

release-pypi:
needs: build
runs-on: ubuntu-latest
permissions:
# Used to authenticate to PyPI via OIDC.
id-token: write
steps:
- name: Download artifacts directories # goes to current working directory
uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a # v3.0.2

- name: publish
uses: pypa/gh-action-pypi-publish@0bf742be3ebe032c25dd15117957dc15d0cfc38d
with:
packages_dir: built-packages/
5 changes: 5 additions & 0 deletions git-log-head
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
commit 35f41e5b6c28ebb0b20a8c964b9bef45d9b18539
Author: Moshe Zadka <[email protected]>
Date: 2024-01-11 01:17:54 +0000

checkpoint
11 changes: 9 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
[build-system]
requires = [
"setuptools"
"setuptools", "autocalver"
]
build-backend = "setuptools.build_meta"

[project]
name = "gather"
version = "2024.1.5.3"
dynamic = ["version"]
description = "A gatherer"
readme = "README.rst"
authors = [{name = "Moshe Zadka", email = "[email protected]"}]
Expand Down Expand Up @@ -48,5 +48,12 @@ Development = "https://github.com/elcaminoreal/gather"
Documentation = "https://gather.readthedocs.io/en/latest/"
Blog = "https://gather.works"

[tool.autocalver]
use = true
log = "git-log-head"
log_command = "git log -n 1 --date=iso"
is_main_var = "GITHUB_REF"
is_main_match = ".*/trunk$"

[project.entry-points.gather]
gather = "gather"
2 changes: 0 additions & 2 deletions src/gather/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,8 @@
Gather can be used to collect anything.
"""
import collections
import contextlib
import importlib.metadata
import sys
import warnings

import attr
import venusian
Expand Down

0 comments on commit fde4c6c

Please sign in to comment.