This repository has been archived by the owner on Jan 5, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add VERSION file containing the version string, e.g. 0.1.3, which will be read in setup.py and securedrop_proxy/version.py. Now we just have to remember to update the package version in one place. Add a test making sure that the proxy reports the same version used in setup.py.
- Loading branch information
Showing
6 changed files
with
43 additions
and
26 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
include securedrop_proxy/*.py | ||
include requirements.txt | ||
include README.md | ||
include LICENSE | ||
include setup.py | ||
include Pipfile | ||
include Pipfile.lock | ||
include qubes/securedrop.Proxy | ||
include README.md | ||
include VERSION | ||
include config-example.yaml | ||
include qubes/securedrop.Proxy | ||
include requirements.txt | ||
include securedrop_proxy/*.py | ||
include setup.py |
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 @@ | ||
0.1.3 |
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import pkgutil | ||
|
||
version = pkgutil.get_data("securedrop_proxy", "VERSION").decode("utf-8") |
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,18 +1,21 @@ | ||
import pkgutil | ||
import setuptools | ||
|
||
with open("README.md", "r") as fh: | ||
long_description = fh.read() | ||
|
||
version = pkgutil.get_data("securedrop_proxy", "VERSION").decode("utf-8") | ||
|
||
setuptools.setup( | ||
name="securedrop-proxy", | ||
version="0.1.3", | ||
version=version, | ||
author="Freedom of the Press Foundation", | ||
author_email="[email protected]", | ||
description="SecureDrop Qubes proxy service", | ||
long_description=long_description, | ||
long_description_content_type="text/markdown", | ||
license="GPLv3+", | ||
install_requires=["requests","furl", "pyyaml", "werkzeug"], | ||
install_requires=["requests", "furl", "pyyaml", "werkzeug"], | ||
python_requires=">=3.5", | ||
url="https://github.com/freedomofpress/securedrop-proxy", | ||
packages=setuptools.find_packages(exclude=["docs", "tests"]), | ||
|
@@ -24,9 +27,5 @@ | |
"Intended Audience :: Developers", | ||
"Operating System :: OS Independent", | ||
), | ||
entry_points={ | ||
'console_scripts': [ | ||
'sd-proxy = securedrop_proxy.entrypoint:start', | ||
], | ||
}, | ||
entry_points={"console_scripts": ["sd-proxy = securedrop_proxy.entrypoint:start"]}, | ||
) |
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