-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
There is now a single `update_version.sh` script that updates the `__version__` variables in the client and export components and increments the debian/changelog file. The proxy version is hardcoded since it's going away as part of proxy v2 (also the usage in the response object was dubious to begin with). Fixes #1815.
- Loading branch information
Showing
21 changed files
with
36 additions
and
155 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,7 +14,7 @@ | |
|
||
setuptools.setup( | ||
name="securedrop-client", | ||
version="0.9.0", | ||
version="0.0.0", | ||
author="Freedom of the Press Foundation", | ||
author_email="[email protected]", | ||
description="SecureDrop Workstation client application", | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
__version__ = "0.3.0" | ||
__version__ = "0.9.0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,12 +3,9 @@ | |
with open("README.md", "r") as fh: | ||
long_description = fh.read() | ||
|
||
with open("securedrop_export/VERSION") as f: | ||
version = f.read().strip() | ||
|
||
setuptools.setup( | ||
name="securedrop-export", | ||
version=version, | ||
version="0.0.0", | ||
author="Freedom of the Press Foundation", | ||
author_email="[email protected]", | ||
description="SecureDrop Qubes export scripts", | ||
|
@@ -19,9 +16,6 @@ | |
python_requires=">=3.5", | ||
url="https://github.com/freedomofpress/securedrop-export", | ||
packages=setuptools.find_packages(exclude=["docs", "tests"]), | ||
package_data={ | ||
"securedrop_export": ["VERSION"], | ||
}, | ||
classifiers=[ | ||
"Development Status :: 3 - Alpha", | ||
"Programming Language :: Python :: 3", | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,4 +7,3 @@ include securedrop-redis-log | |
include securedrop.Log | ||
include sd-rsyslog* | ||
include sdlog.conf | ||
include VERSION |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,13 +3,9 @@ | |
with open("README.md", "r") as fh: | ||
long_description = fh.read() | ||
|
||
with open("VERSION") as fh: | ||
version = fh.read().strip() | ||
|
||
|
||
setuptools.setup( | ||
name="securedrop-log", | ||
version=version, | ||
version="0.0.0", | ||
author="Freedom of the Press Foundation", | ||
author_email="[email protected]", | ||
description="SecureDrop Qubes logging scripts", | ||
|
@@ -19,9 +15,6 @@ | |
install_requires=[], | ||
python_requires=">=3.5", | ||
packages=setuptools.find_packages(exclude=["docs", "tests"]), | ||
package_data={ | ||
'securedrop_log': ['VERSION'], | ||
}, | ||
url="https://github.com/freedomofpress/securedrop-log", | ||
classifiers=[ | ||
"Development Status :: 3 - Alpha", | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1 @@ | ||
import pkgutil | ||
|
||
version = None | ||
version_content = pkgutil.get_data("securedrop_proxy", "VERSION") | ||
if isinstance(version_content, bytes): | ||
version = version_content.decode("utf-8") | ||
else: | ||
raise ValueError("Could not read VERSION file") | ||
version = "0.4.1\n" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,12 +4,9 @@ | |
with open("README.md", "r") as fh: | ||
long_description = fh.read() | ||
|
||
version = pkgutil.get_data("securedrop_proxy", "VERSION").decode("utf-8") | ||
version = version.strip() | ||
|
||
setuptools.setup( | ||
name="securedrop-proxy", | ||
version=version, | ||
version="0.0.0", | ||
author="Freedom of the Press Foundation", | ||
author_email="[email protected]", | ||
description="SecureDrop Qubes proxy service", | ||
|
@@ -20,9 +17,6 @@ | |
python_requires=">=3.7", | ||
url="https://github.com/freedomofpress/securedrop-proxy", | ||
packages=setuptools.find_packages(exclude=["docs", "tests"]), | ||
package_data={ | ||
'securedrop_proxy': ['VERSION'], | ||
}, | ||
classifiers=( | ||
"Development Status :: 3 - Alpha", | ||
"Programming Language :: Python :: 3", | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#!/bin/bash | ||
set -euxo pipefail | ||
|
||
NEW_VERSION=${1:-""} | ||
|
||
if [ -z "$NEW_VERSION" ]; then | ||
echo "Usage: ./update_version.sh <version>"; | ||
exit 1 | ||
fi | ||
|
||
|
||
if [[ $NEW_VERSION == *~rc* ]]; then | ||
echo "RCs should use the versioning a.b.c-rcD, where a.b.c is the next version" | ||
exit 1 | ||
fi | ||
|
||
sed -i'' -r -e "s/^__version__ = \"(.*?)\"/__version__ = \"${NEW_VERSION}\"/" client/securedrop_client/__init__.py | ||
sed -i'' -r -e "s/^__version__ = \"(.*?)\"/__version__ = \"${NEW_VERSION}\"/" export/securedrop_export/__init__.py | ||
|
||
# Normalize version, convert any - to ~, e.g. 0.9.0-rc1 to 0.9.0~rc1 | ||
DEB_VERSION=$(echo $NEW_VERSION | sed 's/-/~/g') | ||
|
||
export DEBEMAIL="[email protected]" | ||
export DEBFULLNAME="SecureDrop Team" | ||
dch -b --newversion "${DEB_VERSION}" --distribution unstable "see changelog.md" |