Skip to content

Commit a8a1f3e

Browse files
authored
migrate to poetry (#80)
* migrate to poetry * address commend * remove manifest
1 parent b9af854 commit a8a1f3e

File tree

17 files changed

+1039
-497
lines changed

17 files changed

+1039
-497
lines changed

.github/workflows/publish.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Client Build and Publish
2+
3+
on:
4+
workflow_dispatch:
5+
6+
jobs:
7+
pypi-publish:
8+
name: Upload release to PyPI
9+
runs-on: ubuntu-latest
10+
environment:
11+
name: pypi
12+
url: https://pypi.org/p/django-richenum
13+
permissions:
14+
contents: read
15+
id-token: write
16+
steps:
17+
- uses: actions/checkout@v4
18+
- name: Set up Python
19+
uses: actions/setup-python@v5
20+
with:
21+
python-version: "3.11"
22+
- name: Install Poetry
23+
run: |
24+
make poetry
25+
- name: Install dependencies
26+
run: |
27+
make install-build
28+
- name: Build package
29+
run: |
30+
make build
31+
- name: Publish package distributions to PyPI
32+
uses: pypa/gh-action-pypi-publish@release/v1
Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
name: Python Version Tests
2+
3+
on:
4+
push:
5+
branches: ["master"]
6+
pull_request:
7+
branches: ["master"]
8+
workflow_dispatch:
9+
10+
permissions:
11+
contents: read
12+
13+
jobs:
14+
build:
15+
runs-on: ubuntu-latest
16+
env:
17+
SECRET_KEY: placeholder
18+
DJANGO_DB_ENGINE: ${{ matrix.db-engine }}
19+
DJANGO_DB_HOST: 127.0.0.1
20+
DJANGO_DB_USER: travis
21+
DJANGO_DB_PASSWORD: travis
22+
strategy:
23+
fail-fast: false
24+
matrix:
25+
python-version: ["3.8", "3.9", "3.10", "3.11"]
26+
django-version: ["3.2", "4.0", "4.1", "4.2"]
27+
db-engine: ["sqlite", "mysql", "postgres"]
28+
exclude:
29+
- python-version: "3.11"
30+
django-version: "3.2"
31+
- python-version: "3.11"
32+
django-version: "4.0"
33+
services:
34+
postgres:
35+
image: postgres:12
36+
ports:
37+
- 5432:5432
38+
options: >-
39+
--health-cmd=pg_isready
40+
--health-interval=10s
41+
--health-timeout=5s
42+
--health-retries=5
43+
env:
44+
POSTGRES_DB: testdb
45+
POSTGRES_USER: travis
46+
POSTGRES_PASSWORD: travis
47+
mysql:
48+
image: mysql:8
49+
ports:
50+
- 3306:3306
51+
options: >-
52+
--health-cmd="mysqladmin ping"
53+
--health-interval=10s
54+
--health-timeout=5s
55+
--health-retries=5
56+
env:
57+
MYSQL_USER: travis
58+
MYSQL_PASSWORD: travis
59+
MYSQL_ALLOW_EMPTY_PASSWORD: true
60+
MYSQL_DATABASE: test_testdb
61+
62+
steps:
63+
- uses: actions/checkout@v4
64+
- name: Set up Python ${{ matrix.python-version }}
65+
uses: actions/setup-python@v5
66+
with:
67+
python-version: ${{ matrix.python-version }}
68+
- name: Install Poetry
69+
run: |
70+
make poetry
71+
- name: Install dependencies
72+
run: |
73+
make install-dev
74+
- name: Pin Django version
75+
run: |
76+
poetry run pip install "Django==${{ matrix.django-version }}.*"
77+
- name: Lint with flake8 and pylint
78+
run: |
79+
make lint
80+
- name: Test with custom Django runner
81+
run: |
82+
make test

.github/workflows/tox.yml

Lines changed: 0 additions & 61 deletions
This file was deleted.

AUTHORS.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
Developed and maintained by [Hearsay Social, Inc.](https://hearsaysocial.com).
2+
3+
## Contributors
4+
5+
- [Adam DePue](https://github.com/adepue)
6+
- [Akshay Shah](https://github.com/akshayjshah)
7+
- [Cordelia Notbohm](https://github.com/cnotbohm)
8+
- [Dale Hui](https://github.com/dhui)
9+
- [Robert MacCloy](https://github.com/rbm)
10+
- [Ben Lopatin](https://github.com/bennylope)
11+
- [Asher Foa](https://github.com/asherf)
12+
- [Krisztian Csizmazia](https://github.com/csizmaziakiki)

AUTHORS.rst

Lines changed: 0 additions & 12 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 101 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,101 @@
1+
# Changelog
2+
3+
## 5.1.0 (2023-3-4)
4+
- Migrate to poetry
5+
6+
## 4.1.0 (2023-12-12)
7+
8+
- Support for Django 4.2
9+
- Support for Python 3.11
10+
- Remove support for Django 2.2, 3.0, 3.1
11+
- Remove support for Python 3.7
12+
- Require MySQL 8 and Postgres 12
13+
14+
## 3.7.0 (2019-09-05)
15+
16+
- Support for Django 2.3
17+
18+
## 3.6.0 (2019-07-09)
19+
20+
- Support for Django 2.2
21+
- Support for Python 3.7
22+
- Remove support for Django 2.0
23+
24+
## 3.5.0 (2018-09-10)
25+
26+
- Fix [deprecation of context param for Field.from_db_value](https://code.djangoproject.com/ticket/28370)
27+
- Support for Django 2.1
28+
- Switch tests suite to use pytest
29+
- Remove pylint-django plugin, no longer needed
30+
31+
## 3.4.0 (2018-02-10)
32+
33+
- Drop support for old Django versions
34+
35+
## 3.3.0 (2018-01-21)
36+
37+
- removed Python 3.4
38+
- add support for Python 3.6
39+
- add support for Django 2.0
40+
- Properly mark raw strings (used as regex)
41+
42+
## 3.2.0 (2016-08-22)
43+
44+
- Python 3.4 & 3.5 support
45+
46+
## 3.1.0 (2015-08-02)
47+
48+
- Django 1.10 support
49+
50+
## 3.0.1 (2015-07-13)
51+
52+
- Prepare for python 3 support
53+
54+
## 2.4.1 (2015-05-04)
55+
56+
- replace mysql client library (for tests)
57+
- stop using lambdas
58+
59+
## 2.3.0 (2015-05-04)
60+
61+
- Support Django 1.8
62+
63+
## 2.2.0 (2015-03-11)
64+
65+
- Support ModelForms for non-SQLite DB backends
66+
67+
## 2.1.0 (2014-11-01)
68+
69+
- Support migration in Django 1.7
70+
71+
## 2.0.0 (2014-09-04)
72+
73+
- Support Django 1.7, drop support for Python 2.6.
74+
75+
## 1.2.2 (2014-08-02)
76+
77+
- Support Django 1.3
78+
79+
## 1.2.1 (2014-06-02)
80+
81+
- Remove uses of BaseException.message.
82+
83+
## 1.2.0 (2013-12-03)
84+
85+
- Add enum-aware versions of TypedMultipleChoiceField.
86+
87+
## 1.1.0 (2013-12-03)
88+
89+
- Fix form fields to support Django 1.6 (while maintaining compatibility with 1.4 and 1.5).
90+
91+
## 1.0.2 (2013-11-05)
92+
93+
- Make EnumField.run_validators a no-op. This stops some warnings from type comparison, and it doesn't seem useful in an EnumField context.
94+
95+
## 1.0.1 (2013-09-10)
96+
97+
- Support South.
98+
99+
## 1.0.0 (2013-08-16)
100+
101+
- Initial public release.

0 commit comments

Comments
 (0)