specify-extend 1.0.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- specify_extend-1.0.0/.github/workflows/build.yml +40 -0
- specify_extend-1.0.0/.github/workflows/release.yml +49 -0
- specify_extend-1.0.0/.github/workflows/test.yml +50 -0
- specify_extend-1.0.0/.gitignore +52 -0
- specify_extend-1.0.0/AI-AGENTS.md +723 -0
- specify_extend-1.0.0/CHANGELOG.md +178 -0
- specify_extend-1.0.0/CONTRIBUTING.md +338 -0
- specify_extend-1.0.0/EXAMPLES.md +475 -0
- specify_extend-1.0.0/INSTALLATION.md +346 -0
- specify_extend-1.0.0/LICENSE +21 -0
- specify_extend-1.0.0/PKG-INFO +365 -0
- specify_extend-1.0.0/README.md +350 -0
- specify_extend-1.0.0/commands/speckit.bugfix.md +56 -0
- specify_extend-1.0.0/commands/speckit.deprecate.md +107 -0
- specify_extend-1.0.0/commands/speckit.hotfix.md +67 -0
- specify_extend-1.0.0/commands/speckit.modify.md +98 -0
- specify_extend-1.0.0/commands/speckit.refactor.md +65 -0
- specify_extend-1.0.0/docs/architecture.md +518 -0
- specify_extend-1.0.0/docs/constitution-template.md +149 -0
- specify_extend-1.0.0/docs/specify-extend.md +432 -0
- specify_extend-1.0.0/extensions/DEVELOPMENT.md +611 -0
- specify_extend-1.0.0/extensions/QUICKSTART.md +284 -0
- specify_extend-1.0.0/extensions/README.md +58 -0
- specify_extend-1.0.0/extensions/enabled.conf +13 -0
- specify_extend-1.0.0/extensions/workflows/bugfix/README.md +207 -0
- specify_extend-1.0.0/extensions/workflows/bugfix/bug-report-template.md +81 -0
- specify_extend-1.0.0/extensions/workflows/bugfix/command.md +34 -0
- specify_extend-1.0.0/extensions/workflows/deprecate/README.md +417 -0
- specify_extend-1.0.0/extensions/workflows/deprecate/deprecation-template.md +320 -0
- specify_extend-1.0.0/extensions/workflows/deprecate/scan-dependencies.sh +310 -0
- specify_extend-1.0.0/extensions/workflows/hotfix/README.md +362 -0
- specify_extend-1.0.0/extensions/workflows/hotfix/hotfix-template.md +174 -0
- specify_extend-1.0.0/extensions/workflows/hotfix/post-mortem-template.md +258 -0
- specify_extend-1.0.0/extensions/workflows/modify/README.md +311 -0
- specify_extend-1.0.0/extensions/workflows/modify/modification-template.md +196 -0
- specify_extend-1.0.0/extensions/workflows/modify/scan-impact.sh +113 -0
- specify_extend-1.0.0/extensions/workflows/refactor/README.md +385 -0
- specify_extend-1.0.0/extensions/workflows/refactor/measure-metrics.sh +232 -0
- specify_extend-1.0.0/extensions/workflows/refactor/refactor-template.md +258 -0
- specify_extend-1.0.0/pyproject.toml +28 -0
- specify_extend-1.0.0/scripts/create-bugfix.sh +117 -0
- specify_extend-1.0.0/scripts/create-deprecate.sh +219 -0
- specify_extend-1.0.0/scripts/create-hotfix.sh +152 -0
- specify_extend-1.0.0/scripts/create-modification.sh +212 -0
- specify_extend-1.0.0/scripts/create-refactor.sh +180 -0
- specify_extend-1.0.0/specify_extend.py +595 -0
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
name: Build
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [ main, master ]
|
|
6
|
+
pull_request:
|
|
7
|
+
branches: [ main, master ]
|
|
8
|
+
|
|
9
|
+
jobs:
|
|
10
|
+
build:
|
|
11
|
+
runs-on: ubuntu-latest
|
|
12
|
+
|
|
13
|
+
steps:
|
|
14
|
+
- uses: actions/checkout@v4
|
|
15
|
+
|
|
16
|
+
- name: Set up Python
|
|
17
|
+
uses: actions/setup-python@v5
|
|
18
|
+
with:
|
|
19
|
+
python-version: '3.11'
|
|
20
|
+
|
|
21
|
+
- name: Install build dependencies
|
|
22
|
+
run: |
|
|
23
|
+
python -m pip install --upgrade pip
|
|
24
|
+
pip install build hatchling
|
|
25
|
+
|
|
26
|
+
- name: Build package
|
|
27
|
+
run: python -m build
|
|
28
|
+
|
|
29
|
+
- name: Check built package
|
|
30
|
+
run: |
|
|
31
|
+
ls -lh dist/
|
|
32
|
+
pip install dist/*.whl
|
|
33
|
+
specify-extend --version
|
|
34
|
+
|
|
35
|
+
- name: Upload build artifacts
|
|
36
|
+
uses: actions/upload-artifact@v4
|
|
37
|
+
with:
|
|
38
|
+
name: python-package-distributions
|
|
39
|
+
path: dist/
|
|
40
|
+
retention-days: 7
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
name: Release
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
tags:
|
|
6
|
+
- 'v*'
|
|
7
|
+
|
|
8
|
+
permissions:
|
|
9
|
+
contents: write
|
|
10
|
+
|
|
11
|
+
jobs:
|
|
12
|
+
build:
|
|
13
|
+
runs-on: ubuntu-latest
|
|
14
|
+
|
|
15
|
+
steps:
|
|
16
|
+
- uses: actions/checkout@v4
|
|
17
|
+
|
|
18
|
+
- name: Set up Python
|
|
19
|
+
uses: actions/setup-python@v5
|
|
20
|
+
with:
|
|
21
|
+
python-version: '3.11'
|
|
22
|
+
|
|
23
|
+
- name: Install build dependencies
|
|
24
|
+
run: |
|
|
25
|
+
python -m pip install --upgrade pip
|
|
26
|
+
pip install build hatchling
|
|
27
|
+
|
|
28
|
+
- name: Build package
|
|
29
|
+
run: python -m build
|
|
30
|
+
|
|
31
|
+
- name: Create Release
|
|
32
|
+
uses: softprops/action-gh-release@v1
|
|
33
|
+
with:
|
|
34
|
+
files: |
|
|
35
|
+
dist/*.whl
|
|
36
|
+
dist/*.tar.gz
|
|
37
|
+
generate_release_notes: true
|
|
38
|
+
draft: false
|
|
39
|
+
prerelease: ${{ contains(github.ref, 'alpha') || contains(github.ref, 'beta') || contains(github.ref, 'rc') }}
|
|
40
|
+
env:
|
|
41
|
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
42
|
+
|
|
43
|
+
- name: Publish to PyPI
|
|
44
|
+
if: ${{ !contains(github.ref, 'alpha') && !contains(github.ref, 'beta') && !contains(github.ref, 'rc') }}
|
|
45
|
+
uses: pypa/gh-action-pypi-publish@release/v1
|
|
46
|
+
with:
|
|
47
|
+
password: ${{ secrets.PYPI_API_TOKEN }}
|
|
48
|
+
skip-existing: true
|
|
49
|
+
continue-on-error: true
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
name: Test
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [ main, master ]
|
|
6
|
+
pull_request:
|
|
7
|
+
branches: [ main, master ]
|
|
8
|
+
|
|
9
|
+
jobs:
|
|
10
|
+
test:
|
|
11
|
+
runs-on: ${{ matrix.os }}
|
|
12
|
+
strategy:
|
|
13
|
+
matrix:
|
|
14
|
+
os: [ubuntu-latest, macos-latest, windows-latest]
|
|
15
|
+
python-version: ["3.11", "3.12"]
|
|
16
|
+
|
|
17
|
+
steps:
|
|
18
|
+
- uses: actions/checkout@v4
|
|
19
|
+
|
|
20
|
+
- name: Set up Python ${{ matrix.python-version }}
|
|
21
|
+
uses: actions/setup-python@v5
|
|
22
|
+
with:
|
|
23
|
+
python-version: ${{ matrix.python-version }}
|
|
24
|
+
|
|
25
|
+
- name: Install dependencies
|
|
26
|
+
run: |
|
|
27
|
+
python -m pip install --upgrade pip
|
|
28
|
+
pip install -e .
|
|
29
|
+
|
|
30
|
+
- name: Test installation
|
|
31
|
+
run: |
|
|
32
|
+
specify-extend --version
|
|
33
|
+
specify-extend --help
|
|
34
|
+
specify-extend --list
|
|
35
|
+
|
|
36
|
+
- name: Test dry-run mode
|
|
37
|
+
run: |
|
|
38
|
+
mkdir -p test-project/.specify/scripts/bash
|
|
39
|
+
cd test-project
|
|
40
|
+
git init
|
|
41
|
+
git config user.email "test@example.com"
|
|
42
|
+
git config user.name "Test User"
|
|
43
|
+
specify-extend --dry-run --all
|
|
44
|
+
shell: bash
|
|
45
|
+
|
|
46
|
+
- name: Lint with ruff (optional)
|
|
47
|
+
run: |
|
|
48
|
+
pip install ruff
|
|
49
|
+
ruff check specify_extend.py
|
|
50
|
+
continue-on-error: true
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
# IDE
|
|
2
|
+
.idea/
|
|
3
|
+
.vscode/
|
|
4
|
+
*.swp
|
|
5
|
+
*.swo
|
|
6
|
+
*~
|
|
7
|
+
|
|
8
|
+
# OS
|
|
9
|
+
.DS_Store
|
|
10
|
+
Thumbs.db
|
|
11
|
+
|
|
12
|
+
# Temporary files
|
|
13
|
+
*.tmp
|
|
14
|
+
*.bak
|
|
15
|
+
*.log
|
|
16
|
+
|
|
17
|
+
# Documentation builds (if you add docs generation later)
|
|
18
|
+
docs/_build/
|
|
19
|
+
docs/.doctrees/
|
|
20
|
+
|
|
21
|
+
# Test artifacts
|
|
22
|
+
test-results/
|
|
23
|
+
.test-project/
|
|
24
|
+
/tmp/
|
|
25
|
+
|
|
26
|
+
# User customizations (don't commit user-specific enabled workflows)
|
|
27
|
+
# Note: We DO commit the default enabled.conf, users can override locally
|
|
28
|
+
# extensions/enabled.conf.local
|
|
29
|
+
|
|
30
|
+
# Backup files
|
|
31
|
+
*.backup
|
|
32
|
+
*~
|
|
33
|
+
|
|
34
|
+
# Python (if you add Python tooling)
|
|
35
|
+
__pycache__/
|
|
36
|
+
*.py[cod]
|
|
37
|
+
*$py.class
|
|
38
|
+
.Python
|
|
39
|
+
env/
|
|
40
|
+
venv/
|
|
41
|
+
.venv/
|
|
42
|
+
|
|
43
|
+
# Node (if you add JS tooling)
|
|
44
|
+
node_modules/
|
|
45
|
+
npm-debug.log*
|
|
46
|
+
yarn-debug.log*
|
|
47
|
+
yarn-error.log*
|
|
48
|
+
|
|
49
|
+
# Distribution
|
|
50
|
+
dist/
|
|
51
|
+
build/
|
|
52
|
+
*.egg-info/
|