This pull request try to simplify packaging and building by using PBR and reduce
the necessary python code to generate a new releases.
In parallel this PR fix issue #18 (https://pagure.io/python-daemon/issue/18)
In second time we want to propose to add:
- pep 8 checks by introducing flake8 in tox
- AST (Abstract Syntax Trees) security checks by introducing bandit with tox
Summary
Modernize the packaging by using PBR and setuptools;
Introducing metadata inside setup.cfg;
Using tox;
Unittest on python 3.5, 3.6, 3.7;
Remove module version;
Remove toml file (pyproject.toml);
Using PEP 516 (Build system abstraction for pip/conda etc) instead of PEP 518 (Specifying Minimum Build System Requirements for Python Projects);
Introducing requirements files.
How to test it
$gitclonehttps://pagure.io/fork/hberaud/python-daemon-brefactor-packaging
$pipinstallpbr
$tox# test your unit tests
$# pbr use git tag to generate release number
$# you can generate a fake tag to test with it
$gittag3.0.0# generate fake tag
$pythonsetup.pybuild# test packaging
$pythonsetup.pysdist# test packaging
Hey!
This pull request try to simplify packaging and building by using PBR and reduce
the necessary python code to generate a new releases.
In parallel this PR fix issue #18 (https://pagure.io/python-daemon/issue/18)
In second time we want to propose to add:
- pep 8 checks by introducing flake8 in tox
- AST (Abstract Syntax Trees) security checks by introducing bandit with tox
Summary
How to test it
Authors
Co-authored-by: Hobbestigrou hobbestigrou@erakis.eu
Conclusion
Do not hesitate to debate on this topic we guess this feature can improve
maintainability of the project and simplify maintenance.