Skip to content

Commit

Permalink
Merge pull request #33 from azavea/feature/support-default-network-modes
Browse files Browse the repository at this point in the history
  • Loading branch information
rajadain authored Dec 18, 2023
2 parents 26438c4 + 90b53c8 commit 735fe77
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 22 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/continuous_integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.6", "3.7", "3.8"]
python-version: ["3.8", "3.10", "3.12"]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

Expand Down
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Added
- Add support for Django 3.2, 4.2, 5.0 [#33](https://github.com/azavea/django-ecsmanage/pull/33)

### Changed
- Support default network modes [#33](https://github.com/azavea/django-ecsmanage/pull/33)
- Upgrade CI to use newer GitHub Actions for `checkout` and `setup-python` [#33](https://github.com/azavea/django-ecsmanage/pull/33)

### Removed
- Remove support for end-of-life Python 3.6 and 3.7, Django 2.2, 3.0, and 3.1 [#33](https://github.com/azavea/django-ecsmanage/pull/33)

## [2.0.1] - 2020-11-24
### Added
- Add ASSIGN_PUBLIC_IP configuration option [#28](https://github.com/azavea/django-ecsmanage/pull/28)
Expand Down
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ Developing
----------

Local development is managed with Python virtual environments. Make sure
that you have Python 3.6+ and pip installed before starting.
that you have Python 3.8+ and pip installed before starting.

Install the development package in a virtual environment:

Expand Down
2 changes: 1 addition & 1 deletion ecsmanage/management/commands/ecsmanage.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ def run_task(self, config, task_def_arn, security_group_id, subnet_id, cmd):

# Only the awsvpc network mode supports the networkConfiguration
# input value.
if task_def["networkMode"] == "awsvpc":
if task_def.get("networkMode") == "awsvpc":
kwargs["networkConfiguration"] = {
"awsvpcConfiguration": {
"subnets": [subnet_id],
Expand Down
14 changes: 7 additions & 7 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,22 @@ license = Apache License 2.0
classifiers =
Environment :: Web Environment
Framework :: Django
Framework :: Django :: 2.2
Framework :: Django :: 3.0
Framework :: Django :: 3.1
Framework :: Django :: 3.2
Framework :: Django :: 4.2
Framework :: Django :: 5.0
Intended Audience :: Developers
License :: OSI Approved :: Apache Software License
Programming Language :: Python
Programming Language :: Python :: 3
Programming Language :: Python :: 3 :: Only
Programming Language :: Python :: 3.6
Programming Language :: Python :: 3.7
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.10
Programming Language :: Python :: 3.12

[options]
include_package_data = True
packages = find:
python_requires = >=3.6
python_requires = >=3.8
install_requires =
Django >=2.2
boto3 >=1.9.0
Expand All @@ -34,4 +34,4 @@ setup_requires =
[options.extras_require]
tests =
flake8 >=3.7.7
black; python_version > "3.6"
black; python_version > "3.8"
20 changes: 10 additions & 10 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
[tox]
envlist =
lint
py{36,37,38}-django22
py{36,37,38}-django30
py{36,37,38}-django31
py{36,37,38}-djangomaster
py{38,310,312}-django32
py{310,312}-django42
py{310,312}-django50
py{310,312}-djangomaster

[gh-actions]
python =
3.6: py36, lint
3.7: py37
3.8: py38
3.10: py310
3.12: py312

[testenv]
passenv = PYTHONPATH DJANGO_SETTINGS_MODULE
passenv = PYTHONPATH,DJANGO_SETTINGS_MODULE
deps =
django22: Django>=2.2,<2.3
django30: Django>=3.0,<3.1
django31: Django>=3.1,<3.2
django32: Django>=3.2,<3.3
django42: Django>=4.2,<4.3
django50: Django>=5.0,<5.1
djangomaster: https://github.com/django/django/archive/master.tar.gz
commands =
django-admin test --noinput
Expand Down

0 comments on commit 735fe77

Please sign in to comment.