Skip to content

Commit

Permalink
Merge pull request #11 from spreaker/upgrade-deps
Browse files Browse the repository at this point in the history
Upgrade Python to 3.11 and dependencies to latest version
  • Loading branch information
Rocco Zanni authored Oct 5, 2023
2 parents b855a50 + 969d2cf commit eaaef92
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 14 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

### 2.0.0 (2023-10-05)
- Upgrade to Python 3.11
- Upgrade dependencies

### 1.1.1 (2019-04-04)
- [BUGFIX] Do not fail the reconciling if there are no instances registered to the service - PR [#8](https://github.com/spreaker/aws-cloud-unmap/pull/8)
- Documented required IAM privileges - PR [#7](https://github.com/spreaker/aws-cloud-unmap/pull/7)
Expand Down
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM alpine:3.9
FROM alpine:3.18

RUN apk add --update --no-cache python3~=3.6 && \
python3 -m pip install aws-cloud-unmap==1.1.1 --no-cache-dir
RUN apk add --update --no-cache python3~=3.11 py3-pip && \
pip3 install aws-cloud-unmap==2.0.0 --no-cache-dir

# Run as non-root
RUN adduser app -S -u 1000
Expand Down
6 changes: 4 additions & 2 deletions Dockerfile-dev
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
FROM alpine:3.9
FROM alpine:3.18

# Installing required packages
RUN apk add --update --no-cache \
python3~=3.6
gcc libc-dev libffi-dev \
python3~=3.11 python3-dev~=3.11 \
py3-pip

# Install app code
RUN mkdir /app
Expand Down
2 changes: 1 addition & 1 deletion LICENSE.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright 2019 Marco Pracucci - Spreaker, Inc.
Copyright 2023 - Spreaker, Inc.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

Expand Down
2 changes: 1 addition & 1 deletion cloudunmap/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def main(args):

# Init logger
logHandler = logging.StreamHandler()
formatter = jsonlogger.JsonFormatter("(asctime) (levelname) (message)", datefmt="%Y-%m-%d %H:%M:%S")
formatter = jsonlogger.JsonFormatter("%(asctime)s %(levelname)s %(message)s", datefmt="%Y-%m-%d %H:%M:%S")
logHandler.setFormatter(formatter)

logger = logging.getLogger()
Expand Down
2 changes: 2 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,5 @@ services:
volumes:
- .:/app:delegated
- ~/.aws:/home/app/.aws:ro
environment:
- AWS_DEFAULT_REGION=us-east-1
14 changes: 7 additions & 7 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from setuptools import setup

# Version
version = "1.1.1"
version = "2.0.0"

# Requires Python 3
if sys.version_info.major < 3:
Expand All @@ -19,18 +19,18 @@
description = 'Remove terminated EC2 instances from AWS CloudMap service',
long_description = long_description,
long_description_content_type = 'text/markdown',
author = 'Marco Pracucci',
author_email = 'marco@pracucci.com',
author = 'Spreaker',
author_email = 'dev@spreaker.com',
url = 'https://github.com/spreaker/aws-cloud-unmap',
download_url = f'https://github.com/spreaker/aws-cloud-unmap/archive/{version}.tar.gz',
keywords = ['aws', 'cloud map'],
classifiers = [],
python_requires = ' >= 3',
install_requires = ["boto3==1.9.123", "python-json-logger==0.1.10", "prometheus_client==0.6.0"],
python_requires = ' >= 3.11',
install_requires = ["boto3==1.28.53", "python-json-logger==2.0.7", "prometheus_client==0.17.1"],
extras_require = {
'dev': [
'flake8==3.7.7',
'twine==1.13.0'
'flake8==6.1.0',
'twine==4.0.2'
]
},
entry_points = {
Expand Down

0 comments on commit eaaef92

Please sign in to comment.