Skip to content

Commit 146f505

Browse files
committed
Rework the package layout towards my these-days "usual" one.
* tox -> nox * nox-based GH Actions * setuptools -> hatchling * flake8 -> ruff * no src/ * random pyright flailing (which probably still is a regression but I haven't gotten a chance to look into + report it) * probably a small additional thing or two No functional changes still, yet.
1 parent 6989781 commit 146f505

30 files changed

+495
-604
lines changed

.flake8

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

.github/CODEOWNERS

Lines changed: 0 additions & 1 deletion
This file was deleted.

.github/SECURITY.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Security Policy
2+
3+
## Supported Versions
4+
5+
In general, only the latest released `referencing` version is supported and will receive updates.
6+
7+
## Reporting a Vulnerability
8+
9+
To report a security vulnerability, please send an email to `Julian+Security` at `GrayVines.com` with subject line `SECURITY (referencing)`.
10+
11+
I will do my best to respond within 48 hours to acknowledge the message and discuss further steps.
12+
13+
If the vulnerability is accepted, an advisory will be sent out via GitHub's security advisory functionality.
14+
15+
For non-sensitive discussion related to this policy itself, feel free to open an issue on the issue tracker.

.github/dependabot.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "github-actions"
4+
directory: "/"
5+
schedule:
6+
interval: "weekly"
7+
8+
- package-ecosystem: "pip"
9+
directory: "/"
10+
schedule:
11+
interval: "weekly"
12+
13+
- package-ecosystem: "pip"
14+
directory: "/docs"
15+
schedule:
16+
interval: "weekly"

.github/release-drafter.yml

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

.github/release.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
changelog:
2+
exclude:
3+
authors:
4+
- dependabot
5+
- pre-commit-ci

.github/workflows/ack.yml

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

.github/workflows/ci.yml

Lines changed: 104 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,104 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
tags:
6+
- "v*"
7+
pull_request:
8+
release:
9+
types: [published]
10+
schedule:
11+
# Daily at 8:33
12+
- cron: "33 8 * * *"
13+
14+
env:
15+
PIP_DISABLE_PIP_VERSION_CHECK: "1"
16+
PIP_NO_PYTHON_VERSION_WARNING: "1"
17+
18+
jobs:
19+
list:
20+
runs-on: ubuntu-latest
21+
outputs:
22+
noxenvs: ${{ steps.noxenvs-matrix.outputs.noxenvs }}
23+
steps:
24+
- uses: actions/checkout@v4
25+
- name: Set up nox
26+
uses: wntrblm/[email protected]
27+
- id: noxenvs-matrix
28+
run: |
29+
echo >>$GITHUB_OUTPUT noxenvs=$(
30+
nox --list-sessions --json | jq '[.[].session]'
31+
)
32+
33+
ci:
34+
needs: list
35+
runs-on: ubuntu-latest
36+
strategy:
37+
fail-fast: false
38+
matrix:
39+
noxenv: ${{ fromJson(needs.list.outputs.noxenvs) }}
40+
posargs: [""]
41+
include:
42+
- noxenv: tests-3.11
43+
posargs: coverage github
44+
45+
steps:
46+
- uses: actions/checkout@v4
47+
with:
48+
submodules: "recursive"
49+
- name: Install dependencies
50+
run: sudo apt-get update && sudo apt-get install -y libenchant-2-dev
51+
if: runner.os == 'Linux' && startsWith(matrix.noxenv, 'docs')
52+
- name: Install dependencies
53+
run: brew install enchant
54+
if: runner.os == 'macOS' && startsWith(matrix.noxenv, 'docs')
55+
- name: Set up Python
56+
uses: actions/setup-python@v5
57+
with:
58+
python-version: |
59+
3.8
60+
3.9
61+
3.10
62+
3.11
63+
3.12
64+
pypy3.10
65+
allow-prereleases: true
66+
cache: pip
67+
- name: Set up nox
68+
uses: wntrblm/[email protected]
69+
- name: Run nox
70+
run: nox -s "${{ matrix.noxenv }}" -- ${{ matrix.posargs }}
71+
72+
packaging:
73+
needs: ci
74+
runs-on: ubuntu-latest
75+
environment:
76+
name: PyPI
77+
url: https://pypi.org/p/schemastore
78+
permissions:
79+
contents: write
80+
id-token: write
81+
82+
steps:
83+
- uses: actions/checkout@v4
84+
with:
85+
submodules: "recursive"
86+
- name: Set up Python
87+
uses: actions/setup-python@v5
88+
with:
89+
cache: pip
90+
python-version: "3.x"
91+
- name: Install dependencies
92+
run: python -m pip install build
93+
- name: Create packages
94+
run: python -m build .
95+
- name: Publish to PyPI
96+
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
97+
uses: pypa/gh-action-pypi-publish@release/v1
98+
- name: Create a Release
99+
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
100+
uses: softprops/action-gh-release@v2
101+
with:
102+
files: |
103+
dist/*
104+
generate_release_notes: true

.github/workflows/push.yml

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

.github/workflows/release.yml

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

0 commit comments

Comments
 (0)