Skip to content

Commit 335c9fe

Browse files
author
Eduardo Aguad
committed
Deprecate this repository: Exceptionite continues at masonitedev/exceptionite
Exceptionite development continues at https://github.com/masonitedev/exceptionite as part of Masonite 5. This repository covers exceptionite <= 3.0.0 and will receive no further updates. - README: deprecation banner (also shown on the PyPI project page), in memory of Joe Mancuso - exceptionite/__init__.py: emit a FutureWarning on import - version 3.0.0.post1, Development Status :: 7 - Inactive - pythonpublish.yml: minimal build+twine job; the compiled assets are committed so the Node 14 build and tag rewrite are not needed for a notice-only post release
1 parent 9bd0071 commit 335c9fe

5 files changed

Lines changed: 32 additions & 41 deletions

File tree

.github/workflows/pythonpublish.yml

Lines changed: 10 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -10,47 +10,18 @@ jobs:
1010
steps:
1111
- uses: actions/checkout@v4
1212
- name: Set up Python
13-
uses: actions/setup-python@v4
13+
uses: actions/setup-python@v5
1414
with:
15-
python-version: "3.x"
16-
- name: Install dependencies
17-
run: |
18-
make init
19-
- name: Set up Node.js 14
20-
uses: actions/setup-node@v4
21-
with:
22-
node-version: "14.x"
23-
- name: Install Dependencies
24-
run: npm install --legacy-peer-deps
25-
- name: Compile frontend assets
26-
run: |
27-
npm run production
28-
# here we run tests after having compiled the assets, because tests can use it
29-
- name: Publish only packages passing test
30-
run: |
31-
make test
32-
# we need to use --allow-empty when compiled assets don't change from one version to the next
33-
- name: Bump version with compiled assets
34-
shell: bash
35-
env:
36-
RELEASE_VERSION: ${{ github.event.release.tag_name }}
37-
run: |
38-
git config --local user.email "action@github.com"
39-
git config --local user.name "GitHub Action"
40-
git add -f src/exceptionite/templates/exceptionite.js
41-
git add -f src/exceptionite/templates/exceptionite.css
42-
git commit -m"Release $RELEASE_VERSION" --allow-empty
43-
- name: Push compiled assets
44-
uses: ad-m/github-push-action@master
45-
with:
46-
github_token: ${{ secrets.GITHUB_TOKEN }}
47-
branch: ${{ github.event.release.target_commitish }}
48-
# override the tag created by GitHub release, now this tag will contains the compiled assets
49-
tags: true
50-
force: true
51-
- name: Publish package
15+
python-version: "3.10"
16+
- name: Build and publish
17+
# The compiled frontend assets (src/exceptionite/templates/*.js|css)
18+
# are committed in the repository, so no npm build is needed for a
19+
# notice-only post release.
5220
env:
5321
TWINE_USERNAME: ${{ secrets.TWINE_USERNAME }}
5422
TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }}
5523
run: |
56-
make publish
24+
python -m pip install --upgrade pip
25+
pip install setuptools wheel twine
26+
python setup.py sdist bdist_wheel
27+
twine upload dist/*

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
# ⚠️ This repository is no longer maintained
2+
3+
> **Exceptionite development continues at [masonitedev/exceptionite](https://github.com/masonitedev/exceptionite)** as part of Masonite 5 (a new PyPI package name is coming soon).
4+
> This repository covers `exceptionite` ≤ 3.0.0, which will receive **no further updates** (including security fixes).
5+
>
6+
> - 📖 Masonite documentation: <https://docs.masonite.dev>
7+
>
8+
> ❤️ In memory of [Joseph "Joe" Mancuso](https://github.com/josephmancuso), creator of Masonite.
9+
10+
---
111

212
# Exceptionite
313

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
# 3 - Alpha
3535
# 4 - Beta
3636
# 5 - Production/Stable
37-
"Development Status :: 5 - Production/Stable",
37+
"Development Status :: 7 - Inactive",
3838
# Indicate who your project is intended for
3939
"Intended Audience :: Developers",
4040
"Topic :: Software Development :: Build Tools",

src/exceptionite/__init__.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,14 @@
11
# flake8: noqa F401
2+
import warnings
3+
4+
warnings.warn(
5+
"The 'exceptionite' package is unmaintained and will receive no further "
6+
"updates. Exceptionite development continues at "
7+
"https://github.com/masonitedev/exceptionite as part of Masonite 5.",
8+
FutureWarning,
9+
stacklevel=2,
10+
)
11+
212
from .Handler import Handler, DefaultOptions
313
from .Block import Block
414
from .Tab import Tab

src/exceptionite/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "3.0.0"
1+
__version__ = "3.0.0.post1"

0 commit comments

Comments
 (0)