Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions .github/workflows/publish.yml
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
82 changes: 82 additions & 0 deletions .github/workflows/python-version-tests.yml
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:
Comment on lines +22 to +62
Copy link
Copy Markdown
Contributor Author

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

- 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 }}"
- name: Lint with flake8 and pylint
run: |
make lint
- name: Test with custom Django runner
run: |
make test
61 changes: 0 additions & 61 deletions .github/workflows/tox.yml

This file was deleted.

12 changes: 12 additions & 0 deletions AUTHORS.md
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)
12 changes: 0 additions & 12 deletions AUTHORS.rst

This file was deleted.

101 changes: 101 additions & 0 deletions CHANGELOG.md
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.
Loading