# -*- coding: utf-8 -*-
from setuptools import setup

package_dir = \
{'': 'src'}

packages = \
['electionguard']

package_data = \
{'': ['*']}

install_requires = \
['cryptography>=3.2',
 'gmpy2>=2.0.8',
 'jsons>=1.1.2',
 'jsonschema>=3.2',
 'psutil>=5.7.2']

setup_kwargs = {
    'name': 'electionguard',
    'version': '1.2.2',
    'description': 'ElectionGuard: Support for e2e verified elections.',
    'long_description': '![Microsoft Defending Democracy Program: ElectionGuard Python][Banner Image]\n\n# 🗳 ElectionGuard Python\n\n![Github Package Action](https://github.com/microsoft/electionguard-python/workflows/Release%20Build/badge.svg) [![](https://img.shields.io/pypi/v/electionguard)](https://pypi.org/project/electionguard/) [![](https://img.shields.io/pypi/dm/electionguard)](https://pypi.org/project/electionguard/) [![Language grade: Python](https://img.shields.io/lgtm/grade/python/g/microsoft/electionguard-python.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/microsoft/electionguard-python/context:python) [![Total alerts](https://img.shields.io/lgtm/alerts/g/microsoft/electionguard-python.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/microsoft/electionguard-python/alerts/) [![Documentation Status](https://readthedocs.org/projects/electionguard-python/badge/?version=latest)](https://electionguard-python.readthedocs.io) [![license](https://img.shields.io/github/license/microsoft/electionguard)](https://github.com/microsoft/electionguard-python/blob/main/LICENSE)\n\nThis repository is a "reference implementation" of ElectionGuard written in Python 3. This implementation can be used to conduct End-to-End Verifiable Elections as well as privacy-enhanced risk-limiting audits.  Components of this library can also be used to construct "Verifiers" to validate the results of an ElectionGuard election.\n\n## 📁 In This Repository\n\n| File/folder             | Description                              |\n| ----------------------- | ---------------------------------------- |\n| `docs`                  | Documentation for using the library      |\n| `src/electionguard`     | Source code to the ElectionGuard library |\n| `src/electionguardtest` | sample data and generators for testing   |\n| `stubs`                 | Type annotations for external libraries  |\n| `tests`                 | Tests to exercise this codebase     |\n| `CONTRIBUTING.md`       | Guidelines for contributing              |\n| `README.md`             | This README file                         |\n| `LICENSE`               | The license for ElectionGuard-Python.    |\n\n## ❓ What Is ElectionGuard?\n\nElectionGuard is an open source software development kit (SDK) that makes voting more secure, transparent and accessible. The ElectionGuard SDK leverages homomorphic encryption to ensure that votes recorded by electronic systems of any type remain encrypted, secure, and secret. Meanwhile, ElectionGuard also allows verifiable and accurate tallying of ballots by any 3rd party organization without compromising secrecy or security.\n\nLearn More in the [ElectionGuard Repository](https://github.com/microsoft/electionguard)\n\n## 🦸 How Can I use ElectionGuard?\n\nElectionGuard supports a variety of use cases.  The Primary use case is to generate verifiable end-to-end (E2E) encrypted elections.  The Electionguard process can also be used for other use cases such as privacy enhanced risk-limiting audits (RLAs).\n\n## 💻 Requirements\n\n- [Python 3.8](https://www.python.org/downloads/) is <ins>**required**</ins> to develop this SDK. If developer uses multiple versions of python, [pyenv](https://github.com/pyenv/pyenv) is suggested to assist version management.\n- [GNU Make](https://www.gnu.org/software/make/manual/make.html) is used to simplify the commands and GitHub Actions. This approach is recommended to simplify the command line experience. This is built in for MacOS and Linux. For Windows, setup is simpler with [Chocolatey](https://chocolatey.org/install) and installing the provided [make package](https://chocolatey.org/packages/make). The other Windows option is [manually installing make](http://gnuwin32.sourceforge.net/packages/make.htm).\n- [Gmpy2](https://gmpy2.readthedocs.io/en/latest/) is used for [Arbitrary-precision arithmetic](https://en.wikipedia.org/wiki/Arbitrary-precision_arithmetic) which\nhas its own [installation requirements (native C libraries)](https://gmpy2.readthedocs.io/en/latest/intro.html#installation) on Linux and MacOS.  **⚠️ Note:** _This is not required for Windows since the gmpy2 precompiled libraries are provided._\n- [pipenv](https://github.com/pypa/pipenv) is used to configure the python environment. Installation instructions can be found [here](https://github.com/pypa/pipenv#installation).\n\n## 🚀 Quick Start\n\nUsing [**make**](https://www.gnu.org/software/make/manual/make.html), the entire [GitHub Action workflow][Pull Request Workflow] can be run with one command: \n\n```\nmake\n```\n\nThe unit and integration tests can also be run with make:\n\n```\nmake test\n```\n\nA complete end-to-end election example can be run independently by executing:\n\n```\nmake test-example\n```\n\nFor more detailed build and run options, see the [documentation][Build and Run].\n\n## 📄 Documentation\n\nOverviews:\n\n- [GitHub Pages](https://microsoft.github.io/electionguard-python/)\n- [Read the Docs](https://electionguard-python.readthedocs.io/)\n\nSections:\n\n- [Design and Architecture]\n- [Build and Run]\n- [Project Workflow]\n- [Election Manifest]\n\nStep-by-Step Process:\n\n0. [Configure Election]\n1. [Key Ceremony]\n2. [Encrypt Ballots]\n3. [Cast and Spoil]\n4. [Decrypt Tally]\n5. [Publish and Verify]\n\n## Contributing\n\nThis project encourages community contributions for development, testing, documentation, code review, and performance analysis, etc.  For more information on how to contribute, see [the contribution guidelines][Contributing]\n\n### Code of Conduct\n\nThis project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.\n\n### Reporting Issues\n\nPlease report any bugs, feature requests, or enhancements using the [GitHub Issue Tracker](https://github.com/microsoft/electionguard-python/issues).  Please do not report any security vulnerabilities using the Issue Tracker.  Instead, please report them to the Microsoft Security Response Center (MSRC) at [https://msrc.microsoft.com/create-report](https://msrc.microsoft.com/create-report).  See the [Security Documentation][Security] for more information.\n\n### Have Questions?\n\nElectionguard would love for you to ask questions out in the open using GitHub Issues. If you really want to email the ElectionGuard team, reach out at electionguard@microsoft.com.\n\n## License\nThis repository is licensed under the [MIT License]\n\n## Thanks! 🎉\nA huge thank you to those who helped to contribute to this project so far, including:\n\n**[Josh Benaloh _(Microsoft)_](https://www.microsoft.com/en-us/research/people/benaloh/)**\n\n<a href="https://www.microsoft.com/en-us/research/people/benaloh/"><img src="https://www.microsoft.com/en-us/research/wp-content/uploads/2016/09/avatar_user__1473484671-180x180.jpg" title="Josh Benaloh" width="80" height="80"></a> \n\n**[Keith Fung](https://github.com/keithrfung) [_(InfernoRed Technology)_](https://infernored.com/)**\n\n<a href="https://github.com/keithrfung"><img src="https://avatars2.githubusercontent.com/u/10125297?v=4" title="keithrfung" width="80" height="80"></a>\n\n**[Matt Wilhelm](https://github.com/AddressXception) [_(InfernoRed Technology)_](https://infernored.com/)**\n\n<a href="https://github.com/AddressXception"><img src="https://avatars0.githubusercontent.com/u/6232853?s=460&u=8fec95386acad6109ad71a2aad2d097b607ebd6a&v=4" title="AddressXception" width="80" height="80"></a>\n\n**[Dan S. Wallach](https://www.cs.rice.edu/~dwallach/) [_(Rice University)_](https://www.rice.edu/)**\n\n<a href="https://www.cs.rice.edu/~dwallach/"><img src="https://avatars2.githubusercontent.com/u/743029?v=4" title="danwallach" width="80" height="80"></a>\n\n\n<!-- Links -->\n[Banner Image]: https://raw.githubusercontent.com/microsoft/electionguard-python/main/images/electionguard-banner.svg\n\n[Pull Request Workflow]: https://github.com/microsoft/electionguard-python/blob/main/.github/workflows/pull_request.yml\n\n[Contributing]: https://github.com/microsoft/electionguard-python/blob/main/CONTRIBUTING.md\n\n[Security]:https://github.com/microsoft/electionguard-python/blob/main/SECURITY.md\n\n[Design and Architecture]: https://github.com/microsoft/electionguard-python/blob/main/docs/Design_and_Architecture.md]\n\n[Build and Run]: https://github.com/microsoft/electionguard-python/blob/main/docs/Build_and_Run.md\n\n[Project Workflow]: https://github.com/microsoft/electionguard-python/blob/main/docs/Project_Workflow.md\n\n[Election Manifest]: https://github.com/microsoft/electionguard-python/blob/main/docs/Election_Manifest.md\n\n[Configure Election]: https://github.com/microsoft/electionguard-python/blob/main/docs/0_Configure_Election.md\n\n[Key Ceremony]: https://github.com/microsoft/electionguard-python/blob/main/docs/1_Key_Ceremony.md\n\n[Encrypt Ballots]: https://github.com/microsoft/electionguard-python/blob/main/docs/2_Encrypt_Ballots.md\n\n[Cast and Spoil]: https://github.com/microsoft/electionguard-python/blob/main/docs/3_Cast_and_Spoil.md\n\n[Decrypt Tally]: https://github.com/microsoft/electionguard-python/blob/main/docs/4_Decrypt_Tally.md\n\n[Publish and Verify]: https://github.com/microsoft/electionguard-python/blob/main/docs/5_Publish_and_Verify.md)\n\n[MIT License]: https://github.com/microsoft/electionguard-python/blob/main/LICENSE\n',
    'author': 'Microsoft',
    'author_email': 'electionguard@microsoft.com',
    'maintainer': None,
    'maintainer_email': None,
    'url': 'https://microsoft.github.io/electionguard-python',
    'package_dir': package_dir,
    'packages': packages,
    'package_data': package_data,
    'install_requires': install_requires,
    'python_requires': '>=3.8,<4.0',
}


setup(**setup_kwargs)
