-
Notifications
You must be signed in to change notification settings - Fork 21
update publish action to work #66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
4867ebf
update publish action to work
cnotbohm 10a6291
pin version
cnotbohm b3b4e33
add author
cnotbohm 8d0a6b9
fix test action
cnotbohm 07f3826
fix make commands
cnotbohm 4709393
re-lock
cnotbohm c774dd6
update publish action
cnotbohm File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,30 @@ | ||
| name: Client Build and Publish | ||
|
|
||
| on: | ||
| workflow_dispatch: | ||
|
|
||
| jobs: | ||
| pypi-publish: | ||
| name: Upload release to PyPI | ||
| runs-on: ubuntu-latest | ||
| environment: | ||
| name: pypi | ||
| url: https://pypi.org/p/richenum | ||
| permissions: | ||
| contents: read | ||
| id-token: write | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - name: Set up Python | ||
| uses: actions/setup-python@v5 | ||
| with: | ||
| python-version: "3.14" | ||
| - name: Install Poetry and Dependencies | ||
| run: | | ||
| make quickstart-build | ||
| - name: Build package | ||
| run: | | ||
| make build | ||
| - name: Publish package distributions to PyPI | ||
| uses: pypa/gh-action-pypi-publish@ed0c5390c58e727690666d924fdd9d4791c13d80 | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| Developed and maintained by [Hearsay Social, Inc.](http://hearsaysocial.com). | ||
|
|
||
| ## Contributors | ||
|
|
||
| - [Adam DePue](http://github.com/adepue) | ||
| - [Aron Radics](http://github.com/radaron) | ||
| - [Akshay Shah](http://github.com/akshayjshah) | ||
| - [Cordelia Notbohm](http://github.com/cnotbohm) | ||
| - [Dale Hui](http://github.com/dhui) | ||
| - [Istvan Nemeth](http://github.com/archiezgg) | ||
| - [Lachlan Imel](http://github.com/limelator) | ||
| - [Robert MacCloy](http://github.com/rbm) | ||
| - [Sam Vilain](http://github.com/samv) | ||
| - [Wyatt Paul](http://github.com/wyguy444) |
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,52 @@ | ||
| # Changelog | ||
|
|
||
| ## 2.1.0 (2026-16-03) | ||
| - Add Python 3.14 support and migrate to Poetry | ||
|
|
||
| ## 2.0.2 (2024-10-01) | ||
|
|
||
| - Remove unavailable link for blog post from `README.md`. | ||
|
|
||
| ## 2.0.1 (2024-06-06) | ||
|
|
||
| - Fix `README.md`. | ||
|
|
||
| ## 2.0.0 (2024-06-04) | ||
|
|
||
| - Remove six | ||
| - Remove Python 3.7 support | ||
| - Add Python 3.9 and 3.10 support | ||
| - Remove `tox.ini` | ||
|
|
||
| ## 1.2.1 (2016-09-16) | ||
|
|
||
| - `EnumLookupError` now inherits from built-in `LookupError`. | ||
|
|
||
| ## 1.2.0 (2016-04-15) | ||
|
|
||
| - Add simple `LookupError` members that are thrown when `RichEnum.lookup` is called for a nonexistent attr/val pair. | ||
| - Users can choose to catch either the specific `LookupError` or continue to catch `EnumLookupError`. | ||
|
|
||
| ## 1.1.0 (2014-04-17) | ||
|
|
||
| - Support for Python 3 and PyPy | ||
|
|
||
| ## 1.0.4 (2013-12-03) | ||
|
|
||
| - Better unicode handling in `__str__`, `__unicode__`, and `__repr__`. | ||
|
|
||
| ## 1.0.3 (2013-12-03) | ||
|
|
||
| - Stop throwing warnings. | ||
|
|
||
| ## 1.0.2 (2013-11-05) | ||
|
|
||
| - Suppress warnings from mismatched type comparisons when generated in `RichEnum.lookup`. | ||
|
|
||
| ## 1.0.1 (2013-09-20) | ||
|
|
||
| - Raise warnings when comparing enum values to other types, but not when checking membership or comparing to `None`. | ||
|
|
||
| ## 1.0.0 (2013-08-16) | ||
|
|
||
| - Initial public release. |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,83 @@ | ||
| # richenum | ||
|
|
||
|  | ||
| [](https://pypi.python.org/pypi/richenum/) | ||
| [](https://pypi.org/project/richenum/) | ||
| [](https://pypi.org/project/richenum/) | ||
|
|
||
| ## About | ||
|
|
||
| An enum library for Python. | ||
|
|
||
| - `enum`: A simple enum implementation that maps a variable to a constant. | ||
| - `RichEnum`: An enum implementation that offers more functionality than a basic enum, including a canonical name and a display name. | ||
| - `OrderedRichEnum`: Like `RichEnum`, but each enum value also has an index and iteration is sorted by index. | ||
|
|
||
| ## Links | ||
|
|
||
| - [GitHub](https://github.com/hearsaycorp/richenum) | ||
| - [PyPI](https://pypi.python.org/pypi/richenum/) | ||
|
|
||
| ## Installation | ||
|
|
||
| ```bash | ||
| pip install richenum | ||
| ``` | ||
|
|
||
| ## Example Usage | ||
|
|
||
| ### enum | ||
|
|
||
| ```python | ||
| >>> from richenum import enum | ||
| >>> MY_ENUM = enum(FOO=1, BAR=2) | ||
| >>> MY_ENUM.FOO | ||
| 1 | ||
| >>> MY_ENUM.BAR | ||
| 2 | ||
| ``` | ||
|
|
||
| ### RichEnum | ||
|
|
||
| ```python | ||
| >>> from richenum import RichEnum, RichEnumValue | ||
| >>> class MyRichEnum(RichEnum): | ||
| ... FOO = RichEnumValue(canonical_name="foo", display_name="Foo") | ||
| ... BAR = RichEnumValue(canonical_name="bar", display_name="Bar") | ||
| ... | ||
| >>> MyRichEnum.FOO | ||
| RichEnumValue - canonical_name: 'foo' display_name: 'Foo' | ||
| >>> MyRichEnum.from_canonical("foo") | ||
| RichEnumValue - canonical_name: 'foo' display_name: 'Foo' | ||
| ``` | ||
|
|
||
| ### OrderedRichEnum | ||
|
|
||
| ```python | ||
| >>> from richenum import OrderedRichEnum, OrderedRichEnumValue | ||
| >>> class MyOrderedRichEnum(OrderedRichEnum): | ||
| ... FOO = OrderedRichEnumValue(index=1, canonical_name="foo", display_name="Foo") | ||
| ... BAR = OrderedRichEnumValue(index=2, canonical_name="bar", display_name="Bar") | ||
| ... | ||
| >>> MyOrderedRichEnum.FOO | ||
| OrderedRichEnumValue - idx: 1 canonical_name: 'foo' display_name: 'Foo' | ||
| >>> MyOrderedRichEnum.from_canonical("foo") | ||
| OrderedRichEnumValue - idx: 1 canonical_name: 'foo' display_name: 'Foo' | ||
| >>> MyOrderedRichEnum.from_index(1) | ||
| OrderedRichEnumValue - idx: 1 canonical_name: 'foo' display_name: 'Foo' | ||
| ``` | ||
|
|
||
| ## Related Packages | ||
|
|
||
| - `django-richenum`: Makes `RichEnum` and `OrderedRichEnum` available as model and form fields in Django. | ||
| [GitHub](https://github.com/hearsaycorp/django-richenum), [PyPI](https://pypi.python.org/pypi/django-richenum/) | ||
| - `enum`: Starting with Python 3.4, there is a standard library for enumerations. This package has a similar API but is not directly compatible. | ||
|
|
||
| ## Contributing | ||
|
|
||
| 1. Fork the repo from [GitHub](https://github.com/hearsaycorp/richenum). | ||
| 2. Make your changes. | ||
| 3. Add unittests for your changes. | ||
| 4. Run [pep8](https://pypi.python.org/pypi/pep8), [pyflakes](https://pypi.python.org/pypi/pyflakes), and [pylint](https://pypi.python.org/pypi/pylint) to make sure your changes follow the Python style guide and do not have any errors. | ||
| 5. Add yourself to the AUTHORS file (in alphabetical order). | ||
| 6. Send a pull request from your fork to the main repo. |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This workflow now listens only to
workflow_dispatch, so publishing no longer runs when a release is created (the previousclient_build.ymlhandledreleaseevents). If your release process expects PyPI artifacts to be published automatically on release, this silently breaks that path and requires a manual run every time.Useful? React with 👍 / 👎.