#22 Refactor the build system and package generator
Closed by bignose. Opened by hberaud.
hberaud/python-daemon refactor-packaging  into  master

Download 22.patch

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

  • 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

$ git clone https://pagure.io/fork/hberaud/python-daemon -b refactor-packaging
$ pip install pbr
$ tox # test your unit tests
$ # pbr use git tag to generate release number
$ # you can generate a fake tag to test with it
$ git tag 3.0.0 # generate fake tag
$ python setup.py build # test packaging
$ python setup.py sdist # test packaging

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.

Thank you for proposing improvements to this library.

Please break this large set of changes into smaller, tightly-focused merge requests. That way each one can be evaluated, and each can be accepted independent of the others.

Pull-Request has been closed by bignose

Metadata