-
Notifications
You must be signed in to change notification settings - Fork 20
migrate to poetry #80
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 1 commit
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
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 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,32 @@ | ||
| 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/django-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.11" | ||
| - name: Install Poetry | ||
| run: | | ||
| make poetry | ||
| - name: Install dependencies | ||
| run: | | ||
| make install-build | ||
| - name: Build package | ||
| run: | | ||
| make build | ||
| - name: Publish package distributions to PyPI | ||
| uses: pypa/gh-action-pypi-publish@release/v1 |
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,82 @@ | ||
| name: Python Version Tests | ||
|
|
||
| on: | ||
| push: | ||
| branches: ["master"] | ||
| pull_request: | ||
| branches: ["master"] | ||
| workflow_dispatch: | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| jobs: | ||
| build: | ||
| runs-on: ubuntu-latest | ||
| env: | ||
| SECRET_KEY: placeholder | ||
| DJANGO_DB_ENGINE: ${{ matrix.db-engine }} | ||
| DJANGO_DB_HOST: 127.0.0.1 | ||
| DJANGO_DB_USER: travis | ||
| DJANGO_DB_PASSWORD: travis | ||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| python-version: ["3.8", "3.9", "3.10", "3.11"] | ||
| django-version: ["3.2", "4.0", "4.1", "4.2"] | ||
| db-engine: ["sqlite", "mysql", "postgres"] | ||
| exclude: | ||
| - python-version: "3.11" | ||
| django-version: "3.2" | ||
| - python-version: "3.11" | ||
| django-version: "4.0" | ||
| services: | ||
| postgres: | ||
| image: postgres:12 | ||
| ports: | ||
| - 5432:5432 | ||
| options: >- | ||
| --health-cmd=pg_isready | ||
| --health-interval=10s | ||
| --health-timeout=5s | ||
| --health-retries=5 | ||
| env: | ||
| POSTGRES_DB: testdb | ||
| POSTGRES_USER: travis | ||
| POSTGRES_PASSWORD: travis | ||
| mysql: | ||
| image: mysql:8 | ||
| ports: | ||
| - 3306:3306 | ||
| options: >- | ||
| --health-cmd="mysqladmin ping" | ||
| --health-interval=10s | ||
| --health-timeout=5s | ||
| --health-retries=5 | ||
| env: | ||
| MYSQL_USER: travis | ||
| MYSQL_PASSWORD: travis | ||
| MYSQL_ALLOW_EMPTY_PASSWORD: true | ||
| MYSQL_DATABASE: test_testdb | ||
|
|
||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - name: Set up Python ${{ matrix.python-version }} | ||
| uses: actions/setup-python@v5 | ||
| with: | ||
| python-version: ${{ matrix.python-version }} | ||
| - name: Install Poetry | ||
| run: | | ||
| make poetry | ||
| - name: Install dependencies | ||
| run: | | ||
| make install-dev | ||
| - name: Pin Django version | ||
| run: | | ||
| poetry run pip install "Django==${{ matrix.django-version }}" | ||
cnotbohm marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| - name: Lint with flake8 and pylint | ||
| run: | | ||
| make lint | ||
| - name: Test with custom Django runner | ||
| run: | | ||
| make test | ||
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,12 @@ | ||
| Developed and maintained by [Hearsay Social, Inc.](https://hearsaysocial.com). | ||
|
|
||
| ## Contributors | ||
|
|
||
| - [Adam DePue](https://github.com/adepue) | ||
| - [Akshay Shah](https://github.com/akshayjshah) | ||
| - [Cordelia Notbohm](https://github.com/cnotbohm) | ||
| - [Dale Hui](https://github.com/dhui) | ||
| - [Robert MacCloy](https://github.com/rbm) | ||
| - [Ben Lopatin](https://github.com/bennylope) | ||
| - [Asher Foa](https://github.com/asherf) | ||
| - [Krisztian Csizmazia](https://github.com/csizmaziakiki) |
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,101 @@ | ||
| # Changelog | ||
|
|
||
| ## 5.1.0 (2023-3-4) | ||
| - Migrate to poetry | ||
|
|
||
| ## 4.1.0 (2023-12-12) | ||
|
|
||
| - Support for Django 4.2 | ||
| - Support for Python 3.11 | ||
| - Remove support for Django 2.2, 3.0, 3.1 | ||
| - Remove support for Python 3.7 | ||
| - Require MySQL 8 and Postgres 12 | ||
|
|
||
| ## 3.7.0 (2019-09-05) | ||
|
|
||
| - Support for Django 2.3 | ||
|
|
||
| ## 3.6.0 (2019-07-09) | ||
|
|
||
| - Support for Django 2.2 | ||
| - Support for Python 3.7 | ||
| - Remove support for Django 2.0 | ||
|
|
||
| ## 3.5.0 (2018-09-10) | ||
|
|
||
| - Fix [deprecation of context param for Field.from_db_value](https://code.djangoproject.com/ticket/28370) | ||
| - Support for Django 2.1 | ||
| - Switch tests suite to use pytest | ||
| - Remove pylint-django plugin, no longer needed | ||
|
|
||
| ## 3.4.0 (2018-02-10) | ||
|
|
||
| - Drop support for old Django versions | ||
|
|
||
| ## 3.3.0 (2018-01-21) | ||
|
|
||
| - removed Python 3.4 | ||
| - add support for Python 3.6 | ||
| - add support for Django 2.0 | ||
| - Properly mark raw strings (used as regex) | ||
|
|
||
| ## 3.2.0 (2016-08-22) | ||
|
|
||
| - Python 3.4 & 3.5 support | ||
|
|
||
| ## 3.1.0 (2015-08-02) | ||
|
|
||
| - Django 1.10 support | ||
|
|
||
| ## 3.0.1 (2015-07-13) | ||
|
|
||
| - Prepare for python 3 support | ||
|
|
||
| ## 2.4.1 (2015-05-04) | ||
|
|
||
| - replace mysql client library (for tests) | ||
| - stop using lambdas | ||
|
|
||
| ## 2.3.0 (2015-05-04) | ||
|
|
||
| - Support Django 1.8 | ||
|
|
||
| ## 2.2.0 (2015-03-11) | ||
|
|
||
| - Support ModelForms for non-SQLite DB backends | ||
|
|
||
| ## 2.1.0 (2014-11-01) | ||
|
|
||
| - Support migration in Django 1.7 | ||
|
|
||
| ## 2.0.0 (2014-09-04) | ||
|
|
||
| - Support Django 1.7, drop support for Python 2.6. | ||
|
|
||
| ## 1.2.2 (2014-08-02) | ||
|
|
||
| - Support Django 1.3 | ||
|
|
||
| ## 1.2.1 (2014-06-02) | ||
|
|
||
| - Remove uses of BaseException.message. | ||
|
|
||
| ## 1.2.0 (2013-12-03) | ||
|
|
||
| - Add enum-aware versions of TypedMultipleChoiceField. | ||
|
|
||
| ## 1.1.0 (2013-12-03) | ||
|
|
||
| - Fix form fields to support Django 1.6 (while maintaining compatibility with 1.4 and 1.5). | ||
|
|
||
| ## 1.0.2 (2013-11-05) | ||
|
|
||
| - Make EnumField.run_validators a no-op. This stops some warnings from type comparison, and it doesn't seem useful in an EnumField context. | ||
|
|
||
| ## 1.0.1 (2013-09-10) | ||
|
|
||
| - Support South. | ||
|
|
||
| ## 1.0.0 (2013-08-16) | ||
|
|
||
| - Initial public release. |
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 should make sure tests are run as they were before