# python-makefun
Small library to dynamically create python functions.
[](https://travis-ci.org/smarie/python-makefun) [](https://smarie.github.io/python-makefun/junit/report.html) [](https://codecov.io/gh/smarie/python-makefun) [](https://smarie.github.io/python-makefun/) [](https://pypi.python.org/pypi/makefun/)
This is the readme for developers. The documentation for users is available here: [https://smarie.github.io/python-makefun/](https://smarie.github.io/python-makefun/)
## Want to contribute ?
Contributions are welcome ! Simply fork this project on github, commit your contributions, and create pull requests.
Here is a non-exhaustive list of interesting open topics: [https://github.com/smarie/python-makefun/issues](https://github.com/smarie/python-makefun/issues)
## Running the tests
This project uses pytest.
`bash pytest -v makefun/tests/ `
You may need to install requirements for setup beforehand, using
`bash pip install -r ci_tools/requirements-test.txt `
## Packaging
This project uses setuptools_scm to synchronise the version number. Therefore the following command should be used for development snapshots as well as official releases:
`bash python setup.py egg_info bdist_wheel rotate -m.whl -k3 `
You may need to install requirements for setup beforehand, using
`bash pip install -r ci_tools/requirements-setup.txt `
## Generating the documentation page
This project uses mkdocs to generate its documentation page. Therefore building a local copy of the doc page may be done using:
`bash mkdocs build -f docs/mkdocs.yml `
You may need to install requirements for doc beforehand, using
`bash pip install -r ci_tools/requirements-doc.txt `
## Generating the test reports
The following commands generate the html test report and the associated badge.
`bash pytest --junitxml=junit.xml -v makefun/tests/ ant -f ci_tools/generate-junit-html.xml python ci_tools/generate-junit-badge.py `
### PyPI Releasing memo
This project is now automatically deployed to PyPI when a tag is created. Anyway, for manual deployment we can use:
`bash twine upload dist/* -r pypitest twine upload dist/* `
### Merging pull requests with edits - memo
Ax explained in github (‘get commandline instructions’):
`bash git checkout -b <git_name>-<feature_branch> master git pull https://github.com/<git_name>/python-makefun.git <feature_branch> --no-commit --ff-only `
if the second step does not work, do a normal auto-merge (do not use rebase!):
`bash git pull https://github.com/<git_name>/python-makefun.git <feature_branch> --no-commit `
Finally review the changes, possibly perform some modifications, and commit.
Metadata
Release files for makefun 0.5.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| makefun-0.5.0.tar.gz | 38.1 kB | Without provenance | Details for makefun-0.5.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| makefun-0.5.0-py3-none-any.whl | Python 3 | none | any | Details for makefun-0.5.0-py3-none-any.whl |
Total release size: 51.3 kB
Release files / makefun-0.5.0.tar.gz
| Download URL | makefun-0.5.0.tar.gz |
|---|---|
| Size | 38.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4311900208c68821ebdf54fb85a9cd032a1f4a7b40c278e3800dd06de5a86dac
|
|
BLAKE2b-256 checksum How to use checksums |
35ecd0d873244ab369edb250b7bd078749abd7874b736c6922a52974f364187e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.30.0 CPython/3.5.6
|
Release files / makefun-0.5.0-py3-none-any.whl
| Download URL | makefun-0.5.0-py3-none-any.whl |
|---|---|
| Size | 13.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
08e6aa08669e3cabc1fa844af509e0b1db5a296f07141b4c2d57f75dbc981a7f
|
|
BLAKE2b-256 checksum How to use checksums |
83653f8a1accacae4cfab2fdc2c1fab340761f0309d3968482ee6d877cb59ce7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.30.0 CPython/3.5.6
|
Security for makefun 0.5.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.