From 6959a9a6e197defde9b107d047338500999e148d Mon Sep 17 00:00:00 2001 From: Ross McFarland Date: Tue, 28 Sep 2021 17:41:24 -0700 Subject: [PATCH 1/3] Remove python version gates on requirements, all py3 now --- requirements-dev.txt | 2 +- requirements.txt | 2 -- setup.py | 2 -- 3 files changed, 1 insertion(+), 5 deletions(-) diff --git a/requirements-dev.txt b/requirements-dev.txt index 27b2967..83c5c5f 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -7,7 +7,7 @@ pycodestyle==2.6.0 pyflakes==2.2.0 readme_renderer[md]==26.0 requests_mock -twine==3.2.0; python_version >= '3.2' +twine==3.4.2 # Profiling tests... # nose-cprof diff --git a/requirements.txt b/requirements.txt index cd3e0f9..84b7eae 100644 --- a/requirements.txt +++ b/requirements.txt @@ -10,10 +10,8 @@ docutils==0.16 dyn==1.8.1 edgegrid-python==1.1.1 fqdn==1.5.0 -futures==3.2.0; python_version < '3.2' google-cloud-core==1.4.1 google-cloud-dns==0.32.0 -ipaddress==1.0.23; python_version < '3.3' jmespath==0.10.0 msrestazure==0.6.4 natsort==6.2.1 diff --git a/setup.py b/setup.py index 0b15571..41870f8 100644 --- a/setup.py +++ b/setup.py @@ -68,9 +68,7 @@ setup( install_requires=[ 'PyYaml>=4.2b1', 'dnspython>=1.15.0', - 'futures>=3.2.0; python_version<"3.2"', 'fqdn>=1.5.0', - 'ipaddress>=1.0.22; python_version<"3.3"', 'natsort>=5.5.0', 'pycountry>=19.8.18', 'pycountry-convert>=0.7.2', From 47f94cc50e307f965610d62b50509920ca603353 Mon Sep 17 00:00:00 2001 From: Ross McFarland Date: Tue, 28 Sep 2021 17:42:09 -0700 Subject: [PATCH 2/3] use build module with both sdist and wheel packages --- requirements-dev.txt | 1 + script/release | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/requirements-dev.txt b/requirements-dev.txt index 83c5c5f..59041bb 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -1,3 +1,4 @@ +build==0.7.0 coverage mock nose diff --git a/script/release b/script/release index f2c90bf..975aac2 100755 --- a/script/release +++ b/script/release @@ -21,7 +21,7 @@ VERSION="$(grep __VERSION__ "$ROOT/octodns/__init__.py" | sed -e "s/.* = '//" -e git tag -s "v$VERSION" -m "Release $VERSION" git push origin "v$VERSION" echo "Tagged and pushed v$VERSION" -python setup.py sdist -twine check dist/*$VERSION.tar.gz -twine upload dist/*$VERSION.tar.gz +python -m build --sdist --wheel +twine check dist/*$VERSION.tar.gz dist/*$VERSION*.whl +twine upload dist/*$VERSION.tar.gz dist/*$VERSION*.whl echo "Uploaded $VERSION" From 5774e7490b268662619ab3f2b27b7cb5d370204c Mon Sep 17 00:00:00 2001 From: Ross McFarland Date: Tue, 28 Sep 2021 17:43:03 -0700 Subject: [PATCH 3/3] Add changelog helper script --- script/changelog | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100755 script/changelog diff --git a/script/changelog b/script/changelog new file mode 100755 index 0000000..4257b67 --- /dev/null +++ b/script/changelog @@ -0,0 +1,7 @@ +#!/bin/bash + +set -e + +VERSION=v$(grep __VERSION__ octodns/__init__.py | sed -e "s/^[^']*'//" -e "s/'$//") +echo $VERSION +git log --pretty="%h - %cr - %s (%an)" "${VERSION}..HEAD"