Skip to content

Commit e89440e

Browse files
committed
First commit
0 parents  commit e89440e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+5708
-0
lines changed

.coveragerc

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
[run]
2+
branch = true
3+
4+
[report]
5+
omit =
6+
*site-packages*
7+
*tests*
8+
*.tox*
9+
show_missing = True
10+
exclude_lines =
11+
raise NotImplementedError

.editorconfig

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# http://editorconfig.org
2+
3+
root = true
4+
5+
[*]
6+
charset = utf-8
7+
end_of_line = lf
8+
insert_final_newline = true
9+
trim_trailing_whitespace = true
10+
11+
[*.{py,rst,ini}]
12+
indent_style = space
13+
indent_size = 4
14+
15+
[*.{html,css,scss,json,yml}]
16+
indent_style = space
17+
indent_size = 2
18+
19+
[*.md]
20+
trim_trailing_whitespace = false
21+
22+
[Makefile]
23+
indent_style = tab

.github/ISSUE_TEMPLATE.md

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
* EsignAnyWhere Python Client version:
2+
* Django version:
3+
* Python version:
4+
* Operating System:
5+
6+
### Description
7+
8+
Describe what you were trying to get done.
9+
Tell us what happened, what went wrong, and what you expected to happen.
10+
11+
### What I Did
12+
13+
```
14+
Paste the command(s) you ran and the output.
15+
If there was a crash, please include the traceback here.
16+
```

.github/workflows/actions.yml

+76
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
name: esignanywhere-python-client CI
2+
3+
on:
4+
push:
5+
branches: [main, develop]
6+
tags:
7+
- "*"
8+
pull_request:
9+
branches: [ main ]
10+
11+
jobs:
12+
test:
13+
runs-on: ubuntu-latest
14+
strategy:
15+
max-parallel: 4
16+
matrix:
17+
python-version: [ 3.6, 3.7, 3.8, 3.9 ]
18+
steps:
19+
- uses: actions/checkout@v2
20+
- name: Set up Python ${{ matrix.python-version }}
21+
uses: actions/setup-python@v2
22+
with:
23+
python-version: ${{ matrix.python-version }}
24+
- name: Install Dependencies
25+
run: |
26+
python -m pip install --upgrade pip
27+
pip install -r requirements.txt
28+
- name: Install tox
29+
run: python -m pip install --upgrade codecov tox tox-py
30+
- name: Test with tox ${{ matrix.python-version }}
31+
run: tox --py current
32+
- name: "Python3: Run tests and report to Coveralls"
33+
env:
34+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
35+
run: |
36+
python -m pip install .
37+
python -m pip install -r requirements_test.txt
38+
python -m pip install "black~=20.8b1" "flake8~=3.8.0" "isort~=5.7.0" "mypy~=0.790"
39+
python -m pip install types-requests types-freezegun types-python-dateutil types-pytz
40+
python -m pip install coveralls==3.1.0 coverage
41+
python -m coverage run --source esignanywhere_python_client runtests.py
42+
coveralls --service=github
43+
44+
read-the-docs:
45+
if: startsWith(github.ref, 'refs/tags') || github.ref == 'refs/heads/main'
46+
runs-on: ubuntu-latest
47+
needs: [test]
48+
steps:
49+
- name: Trigger RTDs build
50+
uses: dfm/rtds-action@v1
51+
with:
52+
webhook_url: ${{ secrets.RTDS_WEBHOOK_URL }}
53+
webhook_token: ${{ secrets.RTDS_WEBHOOK_TOKEN }}
54+
commit_ref: ${{ github.ref }}
55+
56+
build-n-publish:
57+
if: startsWith(github.ref, 'refs/tags')
58+
name: "Build and publish Python 🐍 distributions 📦 to PyPI and TestPyPI"
59+
runs-on: ubuntu-latest
60+
needs: [test]
61+
steps:
62+
- uses: actions/checkout@master
63+
- name: "Set up Python 3.8"
64+
uses: actions/setup-python@v1
65+
with:
66+
python-version: 3.8
67+
- name: "Install pypa/build"
68+
run: |
69+
python -m pip install build --user
70+
- name: "Build a binary wheel and a source tarball"
71+
run: |
72+
python -m build --sdist --wheel --outdir dist/ .
73+
- name: "Publish distribution 📦 to Test PyPI"
74+
uses: pypa/gh-action-pypi-publish@master
75+
with:
76+
password: ${{ secrets.PYPI_API_TOKEN }}

.gitignore

+52
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
*.py[cod]
2+
__pycache__
3+
4+
# C extensions
5+
*.so
6+
7+
# Packages
8+
*.egg
9+
*.egg-info
10+
dist
11+
build
12+
eggs
13+
parts
14+
bin
15+
var
16+
sdist
17+
develop-eggs
18+
.installed.cfg
19+
lib
20+
lib64
21+
22+
# Installer logs
23+
pip-log.txt
24+
25+
# Unit test / coverage reports
26+
.coverage
27+
.tox
28+
nosetests.xml
29+
htmlcov
30+
31+
# Translations
32+
*.mo
33+
34+
# Mr Developer
35+
.mr.developer.cfg
36+
.project
37+
.pydevproject
38+
39+
# Pycharm/Intellij
40+
.idea
41+
42+
# Complexity
43+
output/*.html
44+
output/*/index.html
45+
46+
# Sphinx
47+
docs/_build
48+
49+
50+
.coverage
51+
.tox
52+
.python-version

.pre-commit-config.yaml

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
default_language_version:
2+
python: python3
3+
fail_fast: true
4+
repos:
5+
- repo: https://github.com/psf/black
6+
rev: 20.8b1
7+
hooks:
8+
- id: black
9+
name: "👾 Black Validation"
10+
- repo: https://github.com/PyCQA/flake8
11+
rev: 3.8.0
12+
hooks:
13+
- id: flake8
14+
name: "👾 Flake8 Validation"
15+
- repo: https://github.com/PyCQA/isort
16+
rev: 5.7.0
17+
hooks:
18+
- id: isort
19+
name: "👾 Isort Validation"
20+
- repo: https://github.com/pre-commit/mirrors-mypy
21+
rev: v0.790
22+
hooks:
23+
- id: mypy
24+
name: "👾 Mypy Validation"
25+
- repo: https://github.com/pre-commit/pre-commit-hooks
26+
rev: v4.0.1 # Use the ref you want to point at
27+
hooks:
28+
- id: check-merge-conflict
29+
name: "💀 Checking Merge Conflict"
30+
- repo: local
31+
hooks:
32+
- id: django-test
33+
name: "🪲 Django Testing"
34+
entry: python runtests.py
35+
always_run: true
36+
verbose: true
37+
pass_filenames: false
38+
language: system

AUTHORS.rst

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
=======
2+
Credits
3+
=======
4+
5+
Development Lead
6+
----------------
7+
8+
* FrankHood Business Solutions s.r.l <[email protected]>
9+
10+
Contributors
11+
------------
12+
13+
None yet. Why not be the first?

CONTRIBUTING.rst

+112
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,112 @@
1+
============
2+
Contributing
3+
============
4+
5+
Contributions are welcome, and they are greatly appreciated! Every
6+
little bit helps, and credit will always be given.
7+
8+
You can contribute in many ways:
9+
10+
Types of Contributions
11+
----------------------
12+
13+
Report Bugs
14+
~~~~~~~~~~~
15+
16+
Report bugs at https://github.com/frankhood/esignanywhere-python-client/issues.
17+
18+
If you are reporting a bug, please include:
19+
20+
* Your operating system name and version.
21+
* Any details about your local setup that might be helpful in troubleshooting.
22+
* Detailed steps to reproduce the bug.
23+
24+
Fix Bugs
25+
~~~~~~~~
26+
27+
Look through the GitHub issues for bugs. Anything tagged with "bug"
28+
is open to whoever wants to implement it.
29+
30+
Implement Features
31+
~~~~~~~~~~~~~~~~~~
32+
33+
Look through the GitHub issues for features. Anything tagged with "feature"
34+
is open to whoever wants to implement it.
35+
36+
Write Documentation
37+
~~~~~~~~~~~~~~~~~~~
38+
39+
EsignAnyWhere Python Client could always use more documentation, whether as part of the
40+
official EsignAnyWhere Python Client docs, in docstrings, or even on the web in blog posts,
41+
articles, and such.
42+
43+
Submit Feedback
44+
~~~~~~~~~~~~~~~
45+
46+
The best way to send feedback is to file an issue at https://github.com/frankhood/esignanywhere-python-client/issues.
47+
48+
If you are proposing a feature:
49+
50+
* Explain in detail how it would work.
51+
* Keep the scope as narrow as possible, to make it easier to implement.
52+
* Remember that this is a volunteer-driven project, and that contributions
53+
are welcome :)
54+
55+
Get Started!
56+
------------
57+
58+
Ready to contribute? Here's how to set up `esignanywhere-python-client` for local development.
59+
60+
1. Fork the `esignanywhere-python-client` repo on GitHub.
61+
2. Clone your fork locally::
62+
63+
$ git clone [email protected]:your_name_here/esignanywhere-python-client.git
64+
65+
3. Install your local copy into a virtualenv. Assuming you have virtualenvwrapper installed, this is how you set up your fork for local development::
66+
67+
$ mkvirtualenv esignanywhere-python-client
68+
$ cd esignanywhere-python-client/
69+
$ python setup.py develop
70+
71+
4. Create a branch for local development::
72+
73+
$ git checkout -b name-of-your-bugfix-or-feature
74+
75+
Now you can make your changes locally.
76+
77+
5. When you're done making changes, check that your changes pass flake8 and the
78+
tests, including testing other Python versions with tox::
79+
80+
$ flake8 esignanywhere_python_client tests
81+
$ python setup.py test
82+
$ tox
83+
84+
To get flake8 and tox, just pip install them into your virtualenv.
85+
86+
6. Commit your changes and push your branch to GitHub::
87+
88+
$ git add .
89+
$ git commit -m "Your detailed description of your changes."
90+
$ git push origin name-of-your-bugfix-or-feature
91+
92+
7. Submit a pull request through the GitHub website.
93+
94+
Pull Request Guidelines
95+
-----------------------
96+
97+
Before you submit a pull request, check that it meets these guidelines:
98+
99+
1. The pull request should include tests.
100+
2. If the pull request adds functionality, the docs should be updated. Put
101+
your new functionality into a function with a docstring, and add the
102+
feature to the list in README.rst.
103+
3. The pull request should work for Python 2.6, 2.7, and 3.3, and for PyPy. Check
104+
https://travis-ci.org/frankhood/esignanywhere-python-client/pull_requests
105+
and make sure that the tests pass for all supported Python versions.
106+
107+
Tips
108+
----
109+
110+
To run a subset of tests::
111+
112+
$ python -m unittest tests.test_esignanywhere_python_client

HISTORY.rst

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
.. :changelog:
2+
3+
History
4+
-------
5+
6+
0.1.0 (2022-02-03)
7+
__________________
8+
9+
* First release on PyPI.

LICENSE.md

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
2+
MIT License
3+
4+
Copyright (c) 2022, FrankHood Business Solutions s.r.l
5+
6+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
7+
8+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
9+
10+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
11+
12+
13+
14+

MANIFEST.in

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
include AUTHORS.rst
2+
include CONTRIBUTING.rst
3+
include HISTORY.rst
4+
include LICENSE.md
5+
include README.rst
6+
include requirements_test.txt
7+
include requirements.txt
8+
recursive-include esignanywhere_python_client *.html *.png *.gif *js *.css *jpg *jpeg *svg *py

0 commit comments

Comments
 (0)