Skip to content

Commit e844123

Browse files
David MurphyMegan Wilhite
authored andcommitted
Initial removal usage of distutils and replacement with setuptools
1 parent 66d35aa commit e844123

60 files changed

Lines changed: 461 additions & 118 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/twine-check.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,12 @@ jobs:
2424
run: |
2525
pip install --upgrade pip setuptools wheel
2626
pip install twine>=3.4.1
27+
# pip install build # add build when implement pyproject.toml
2728
2829
- name: Create Source Tarball
2930
run: |
3031
python3 setup.py sdist
32+
# TBD python3 -m build --sdist # replace with build when implement pyproject.toml
3133
3234
- name: Twine check
3335
run: |

NOTICE

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
Copyright 2012-2022 VMware, Inc.
2+
3+
Licensed under the Apache License, Version 2.0 (the "License");
4+
you may not use this file except in compliance with the License.
5+
You may obtain a copy of the License at
6+
7+
http://www.apache.org/licenses/LICENSE-2.0
8+
9+
Unless required by applicable law or agreed to in writing, software
10+
distributed under the License is distributed on an "AS IS" BASIS,
11+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
See the License for the specific language governing permissions and
13+
limitations under the License.

changelog/60476.removed

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Removed distutils and replaced with setuptools, given distutils is deprecated and removed in Python 3.12

noxfile.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1308,6 +1308,7 @@ def lint_salt(session):
13081308
if session.posargs:
13091309
paths = session.posargs
13101310
else:
1311+
# TBD replace paths entries when implement pyproject.toml
13111312
paths = ["setup.py", "noxfile.py", "salt/", "tasks/"]
13121313
_lint(session, ".pylintrc", flags, paths)
13131314

requirements/base.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,10 @@ psutil>=5.0.0
99

1010
# We need contextvars for salt-ssh
1111
contextvars
12+
13+
# since removal of distutils support
14+
setuptools
15+
looseversion
16+
# pyparsing!=3.0.5,>=2.0.2
17+
pyparsing==3.0.9
18+
packaging==21.3

requirements/darwin.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ setproctitle>=1.2.3 ; python_version >= '3.10'
2020
timelib>=0.2.5
2121
vultr>=1.0.1
2222

23-
importlib_metadata>=3.3.0; python_version >= '3.6' and python_version < '3.10'
23+
importlib_metadata>=3.3.0; python_version < '3.10'

requirements/static/ci/py3.10/cloud.txt

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -485,6 +485,8 @@ kubernetes==3.0.0
485485
# via -r requirements/static/ci/common.in
486486
libnacl==1.8.0 ; sys_platform != "win32" and sys_platform != "darwin"
487487
# via -r requirements/static/ci/common.in
488+
looseversion==1.0.2
489+
# via -r requirements/base.txt
488490
lxml==4.9.1
489491
# via
490492
# junos-eznc
@@ -621,8 +623,10 @@ oauthlib==3.2.1
621623
# via requests-oauthlib
622624
oscrypto==1.2.1
623625
# via certvalidator
624-
packaging==21.0
625-
# via pytest
626+
packaging==21.3
627+
# via
628+
# -r requirements/base.txt
629+
# pytest
626630
paramiko==2.10.1 ; sys_platform != "win32" and sys_platform != "darwin"
627631
# via
628632
# -r requirements/static/ci/common.in
@@ -669,8 +673,9 @@ pyopenssl==20.0.1
669673
# via
670674
# -r requirements/static/pkg/linux.in
671675
# etcd3-py
672-
pyparsing==2.4.7
676+
pyparsing==3.0.9
673677
# via
678+
# -r requirements/base.txt
674679
# junos-eznc
675680
# packaging
676681
pypsexec==0.1.0

requirements/static/ci/py3.10/darwin.txt

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -486,6 +486,8 @@ kubernetes==3.0.0
486486
# via -r requirements/static/ci/common.in
487487
linode-python==1.1.1
488488
# via -r requirements/darwin.txt
489+
looseversion==1.0.2
490+
# via -r requirements/base.txt
489491
lxml==4.9.1
490492
# via
491493
# junos-eznc
@@ -620,8 +622,10 @@ oauthlib==3.2.1
620622
# via requests-oauthlib
621623
oscrypto==1.2.0
622624
# via certvalidator
623-
packaging==19.2
624-
# via pytest
625+
packaging==21.3
626+
# via
627+
# -r requirements/base.txt
628+
# pytest
625629
paramiko==2.10.1
626630
# via
627631
# junos-eznc
@@ -669,8 +673,9 @@ pyopenssl==19.0.0
669673
# via
670674
# -r requirements/darwin.txt
671675
# etcd3-py
672-
pyparsing==2.4.5
676+
pyparsing==3.0.9
673677
# via
678+
# -r requirements/base.txt
674679
# junos-eznc
675680
# packaging
676681
pyrsistent==0.17.3
@@ -805,7 +810,6 @@ six==1.16.0
805810
# mock
806811
# msrestazure
807812
# ncclient
808-
# packaging
809813
# paramiko
810814
# pynacl
811815
# pyopenssl

requirements/static/ci/py3.10/docs.txt

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -492,6 +492,8 @@ kubernetes==3.0.0
492492
# via -r requirements/static/ci/common.in
493493
libnacl==1.8.0 ; sys_platform != "win32" and sys_platform != "darwin"
494494
# via -r requirements/static/ci/common.in
495+
looseversion==1.0.2
496+
# via -r requirements/base.txt
495497
lxml==4.9.1
496498
# via
497499
# junos-eznc
@@ -620,8 +622,9 @@ oauthlib==3.2.1
620622
# via requests-oauthlib
621623
oscrypto==1.2.1
622624
# via certvalidator
623-
packaging==20.9
625+
packaging==21.3
624626
# via
627+
# -r requirements/base.txt
625628
# ansible-core
626629
# sphinx
627630
paramiko==2.10.1 ; sys_platform != "win32" and sys_platform != "darwin"
@@ -673,8 +676,9 @@ pyopenssl==19.1.0
673676
# via
674677
# -r requirements/static/pkg/linux.in
675678
# etcd3-py
676-
pyparsing==2.4.7
679+
pyparsing==3.0.9
677680
# via
681+
# -r requirements/base.txt
678682
# junos-eznc
679683
# packaging
680684
pyrsistent==0.18.0

requirements/static/ci/py3.10/freebsd.txt

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -483,6 +483,8 @@ kubernetes==3.0.0
483483
# via -r requirements/static/ci/common.in
484484
libnacl==1.7.1 ; sys_platform != "win32" and sys_platform != "darwin"
485485
# via -r requirements/static/ci/common.in
486+
looseversion==1.0.2
487+
# via -r requirements/base.txt
486488
lxml==4.9.1
487489
# via
488490
# junos-eznc
@@ -615,8 +617,10 @@ oauthlib==3.2.1
615617
# via requests-oauthlib
616618
oscrypto==1.2.0
617619
# via certvalidator
618-
packaging==19.2
619-
# via pytest
620+
packaging==21.3
621+
# via
622+
# -r requirements/base.txt
623+
# pytest
620624
paramiko==2.10.1 ; sys_platform != "win32" and sys_platform != "darwin"
621625
# via
622626
# -r requirements/static/ci/common.in
@@ -666,8 +670,9 @@ pyopenssl==19.1.0
666670
# via
667671
# -r requirements/static/pkg/freebsd.in
668672
# etcd3-py
669-
pyparsing==2.4.5
673+
pyparsing==3.0.9
670674
# via
675+
# -r requirements/base.txt
671676
# junos-eznc
672677
# packaging
673678
pyrsistent==0.17.3
@@ -803,7 +808,6 @@ six==1.16.0
803808
# more-itertools
804809
# msrestazure
805810
# ncclient
806-
# packaging
807811
# paramiko
808812
# pynacl
809813
# pyopenssl

0 commit comments

Comments
 (0)