Beispiel #1
0
    def test_flit(self, handler_mock):
        """
        Test that flit handler is triggered correctly.
        """

        data = '''
[build-system]
requires = ["flit"]
build-backend = "flit.buildapi"
'''
        with make_pyproject_toml(data):
            main()
            self.assertTrue(handler_mock.called)
Beispiel #2
0
    def test_poetry(self, handler_mock):
        """
        Test that poetry handler is triggered correctly.
        """

        data = '''
[build-system]
requires = ["poetry"]
build-backend = "poetry.masonry.api"
'''
        with make_pyproject_toml(data):
            main()
            self.assertTrue(handler_mock.called)
Beispiel #3
0
#!/usr/bin/env python3
# vim:se fileencoding=utf-8 :
# pyproject2setup.py -- cheap builder for pyproject-based build systems
# (c) 2019 Michał Górny
# 2-clause BSD license

from pyproject2setuppy.main import main

if __name__ == '__main__':
    main()