Skip to content

Commit 0f99229

Browse files
authored
Upgrade packages, fix dead links, update specification (#348)
- Upgrade packages, fix dead links, update specification - Update GitHub workflow to use pipenv - Fix python version in action - Update Pipfile to match GitHub python version for actions - Update Makefile to remove install command - Updated PR and release workflows (though not sure if the latter's used)
1 parent f0cbcd2 commit 0f99229

22 files changed

+769
-74
lines changed

.github/workflows/pull_request.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Validate Pull Request
33
on: pull_request
44

55
env:
6-
PYTHON_VERSION: 3.8
6+
PYTHON_VERSION: 3.10.14
77

88
jobs:
99
validate:
@@ -16,9 +16,11 @@ jobs:
1616
uses: actions/setup-python@v1
1717
with:
1818
python-version: ${{ env.PYTHON_VERSION }}
19+
- name: Install pipenv
20+
run: pip install pipenv
1921
- name: Change Directory
2022
run: cd ${{ github.workspace }}
21-
- name: Install MkDocs
22-
run: make install
23+
- name: Install packages
24+
run: pipenv install
2325
- name: Lint
24-
run: make lint
26+
run: pipenv run make lint

.github/workflows/release.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
- main
77

88
env:
9-
PYTHON_VERSION: 3.8
9+
PYTHON_VERSION: 3.10.14
1010

1111
jobs:
1212
publish:
@@ -19,10 +19,12 @@ jobs:
1919
uses: actions/setup-python@v1
2020
with:
2121
python-version: ${{ env.PYTHON_VERSION }}
22+
- name: Install pipenv
23+
run: pip install pipenv
2224
- name: Change Directory
2325
run: cd ${{ github.workspace }}
24-
- name: Install MkDocs
25-
run: make install
26+
- name: Install packages
27+
run: pipenv install
2628
- name: Deploy
2729
run: make deploy
2830
- name: Zip Sample Data

Makefile

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,6 @@
22

33
all: install serve
44

5-
install:
6-
pip install --upgrade pip
7-
pip install -r requirements.txt
8-
mkdocs --version
9-
105
lint:
116
mkdocs build
127

Pipfile

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
[[source]]
2+
url = "https://pypi.org/simple"
3+
verify_ssl = true
4+
name = "pypi"
5+
6+
[packages]
7+
jinja2 = "*"
8+
mkdocs = "*"
9+
mkdocs-material = "*"
10+
mkdocs-mermaid2-plugin = "*"
11+
mkdocs-redirects = "*"
12+
13+
[dev-packages]
14+
15+
[requires]
16+
python_version = "3.10"
17+
python_full_version = "3.10.14"

Pipfile.lock

Lines changed: 615 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,28 @@ ElectionGuard is always improving. To keep up with the latest, check our **[offi
1616

1717
This repository is a living document to help everyone interact with ElectionGuard. The [official ElectionGuard site][election-guard-official-page] is built using the `/docs` folder and [mkdocs][mkdocs-official-site] with [mkdocs-material][material-mkdocs]. Ensure you have the Python 3.8 or newer installed and run `make` to install the dependencies and start the site.
1818

19+
#### Setup
20+
21+
This repo uses [pipenv](https://pipenv.pypa.io/en/latest/) for package and environment management. Disregard the `requirements.txt` file as it will be removed in a subsequent release.
22+
23+
1. Install packages
24+
25+
```sh
26+
pipenv install
27+
```
28+
29+
1. Run `make build` command from within the virtualenv
30+
31+
```sh
32+
pipenv run make build
33+
```
34+
35+
1. Serve the site
36+
37+
```sh
38+
pipenv run make serve
39+
```
40+
1941
### C ++
2042

2143
An ElectionGuard Core implemented in C++ to support ballot encryption and all phases of the Guardian key and tally ceremonies, including creation of the election package and production of the election record.

docs/Reports/E2EVerifiability.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ The report provides an overview of the ElectionGuard Pilot in the 2022 Franklin
66

77
![Cover Photo2][Cover-Photo-2]
88

9-
[EAC-Report]: /images/EAC%20Report%20Final.pdf
10-
[Cover-Photo-2]: /images/coverphoto.png "Cover Photo 2"
9+
[EAC-Report]: ../images/EAC%20Report%20Final.pdf
10+
[Cover-Photo-2]: ../images/coverphoto.png "Cover Photo 2"

docs/develop/Applications.md

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ If you develop an app for ElectionGuard, we suggest you [utilize our badges][bad
88

99
### ElectionGuard Core
1010

11-
An ElectionGuard Core is an application that implements the base level [features] such as Ballot Encryption by implementing them according to the specification. The internal examples of this are the Python and C++ reference implementations. There is a community example of this with the Java port done by the community.
11+
An ElectionGuard Core is an application that implements the base level features such as Ballot Encryption by implementing them according to the specification. The internal examples of this are the Python and C++ reference implementations. There is a community example of this with the Java port done by the community.
1212

1313
### Ballot Marking
1414

@@ -50,13 +50,12 @@ The results of election can be displayed after an election is closed. An example
5050
A verifier app verifies an election is true and accurate by using the publicly published information about a completed election. At the close of an election using ElectionGuard, an election record should be created and made public. ElectionGuard encourages third parties to create their own verifiers and help verify election records. A basic example of a verifier can be found within the [electionguard-python repository][verifier], but verifiers should aim to be as thorough as possible. After consuming the files in an election record, verifiers can validate everything from the key ceremony to the decryption since the election is end to end verifiable.
5151

5252
<!--Links-->
53-
[selections]: ../../overview/Glossary/#selection
54-
[plaintext-ballot]: ../../overview/Glossary/#plaintext-ballot
55-
[ciphertext-ballot]: ../../overview/Glossary/#ciphertext-ballot
56-
[cast-ballot]: ../../overview/Glossary/#cast-ballot
57-
[spoiled-ballot]: ../../overview/Glossary/#spoiled-ballot
58-
[badges]: ../Badges
59-
[features]: ../../overview/Features
53+
[selections]: ../overview/Glossary.md#selection
54+
[plaintext-ballot]: ../overview/Glossary.md#plaintext-ballot
55+
[ciphertext-ballot]: ../overview/Glossary.md#ciphertext-ballot
56+
[cast-ballot]: ../overview/Glossary.md#cast-ballot
57+
[spoiled-ballot]: ../overview/Glossary.md#spoiled-ballot
58+
[badges]: Badges.md
6059
[admin app]: https://github.com/microsoft/electionguard-ui/tree/main/packages/admin-app
6160
[result app ]: https://github.com/microsoft/electionguard-ui/tree/main/packages/result-app
6261
[api client]: https://github.com/microsoft/electionguard-ui/tree/main/packages/api-client

docs/develop/Badges.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,12 @@ For your convenience, these are some badges to add to your repository indicating
2424

2525
[![ElectionGuard 2.0][badge-2.0]][spec]
2626
```
27-
[![ElectionGuard 2.0](https://img.shields.io/badge/🗳%20ElectionGuard-v2.0-yellow)](https://www.electionguard.vote/spec)
27+
[![ElectionGuard 2.0](https://img.shields.io/badge/🗳%20ElectionGuard-v2.0-green)](https://www.electionguard.vote/spec)
28+
```
29+
30+
[![ElectionGuard 2.1][badge-2.1]][spec]
31+
```
32+
[![ElectionGuard 2.1](https://img.shields.io/badge/🗳%20ElectionGuard-v2.1-green)](https://www.electionguard.vote/spec)
2833
```
2934

3035
<!-- Links -->
@@ -34,6 +39,7 @@ For your convenience, these are some badges to add to your repository indicating
3439
[badge-0.95]: https://img.shields.io/badge/🗳%20ElectionGuard-v0.95-green
3540
[badge-1.0]: https://img.shields.io/badge/🗳%20ElectionGuard-v1.0-green
3641
[badge-1.1]: https://img.shields.io/badge/🗳%20ElectionGuard-v1.1-green
37-
[badge-2.0]: https://img.shields.io/badge/🗳%20ElectionGuard-v2.0-yellow
42+
[badge-2.0]: https://img.shields.io/badge/🗳%20ElectionGuard-v2.0-green
43+
[badge-2.1]: https://img.shields.io/badge/🗳%20ElectionGuard-v2.1-green
3844

3945
--8<-- "includes/abbreviations.md"

docs/develop/Data_Schema.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ Currently, JSON is used as the primary serialization format of the artifacts fro
3838
[shield-green-0.95]: https://img.shields.io/badge/🗳%20ElectionGuard-v0.95-green
3939
[json-schema]: https://json-schema.org/specification.html "Json Schema Specification"
4040

41-
[election-record]: ../Election_Record
42-
[sample-data]: ../Sample_Data
41+
[election-record]: Election_Record.md
42+
[sample-data]: Sample_Data.md
4343
[manifest]: https://github.com/microsoft/electionguard/blob/main/data/1.91/schema/manifest.schema.json "Manifest Json Schema"
4444
[ciphertext_election_context]: https://github.com/microsoft/electionguard/blob/main/data/1.91/schema/ciphertext_election_context.schema.json "Ciphertext Election Context Json Schema"
4545
[election_constants]: https://github.com/microsoft/electionguard/blob/main/data/1.91/schema/election_constants.schema.json "Election Constants Json Schema"

0 commit comments

Comments
 (0)