Skip to content

Commit cf98cc6

Browse files
committed
Switch from setup.py to pip
1 parent e1699f0 commit cf98cc6

4 files changed

Lines changed: 11 additions & 12 deletions

File tree

Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
FROM python:3.10-alpine
1+
FROM python:3.13-alpine
22

33
ADD . /usr/src/app
44
WORKDIR /usr/src/app
55

6-
RUN ["python", "setup.py", "install"]
6+
RUN ["python", "-m", "pip", "install", "-r", "requirements.txt"]
7+
RUN ["python", "-m", "pip", "install", "."]
78

89
CMD ["ecs"]

requirements-test.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
-r requirements.txt
2+
13
pytest
24
pytest-cov
35
pytest-mock

requirements.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
click>=7.1.2, <9
2+
click-log==0.3.2
3+
botocore>=1.32.6
4+
boto3>=1.29.6
5+
requests>=2.32.4
6+
dictdiffer>=0.9.0

setup.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,6 @@ def readme():
1010
with open('README.rst') as f:
1111
return f.read()
1212

13-
dependencies = [
14-
'click>=7.1.2, <9',
15-
'click-log==0.3.2',
16-
'botocore>=1.32.6',
17-
'boto3>=1.29.6',
18-
'requests>=2.32.4',
19-
'dictdiffer>=0.9.0',
20-
]
2113

2214
setup(
2315
name='ecs-deploy',
@@ -33,7 +25,6 @@ def readme():
3325
include_package_data=True,
3426
zip_safe=False,
3527
platforms='any',
36-
install_requires=dependencies,
3728
entry_points={
3829
'console_scripts': [
3930
'ecs = ecs_deploy.cli:ecs',
@@ -42,7 +33,6 @@ def readme():
4233
classifiers=[
4334
'Environment :: Console',
4435
'Intended Audience :: Developers',
45-
'License :: OSI Approved :: BSD License',
4636
'Operating System :: POSIX',
4737
'Operating System :: MacOS',
4838
'Operating System :: Unix',

0 commit comments

Comments
 (0)