Sun, 05 Dec 2021 14:40:21 +0200
Experiment with pyproject.toml.
A total mess, doesn't seem to work without nonstandard-format setup.cfg.
So just stick to old setup.py for now.
pyproject.toml | file | annotate | diff | comparison | revisions | |
setup.py | file | annotate | diff | comparison | revisions |
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/pyproject.toml Sun Dec 05 14:40:21 2021 +0200 @@ -0,0 +1,30 @@ +[metadata] +name = "borgend" +version = "0.1.0" +author = "Tuomo Valkonen" +author_email = "tuomov@iki.fi" +url = "https://tuomov.iki.fi/software/borgend/" + +[options] +packages = "borgend" +python_requires = ">=3.8" +install_requires = [ + "rumps", + "keyring", + "PyYAML", + "xdg;platform_system!='darwin'" +] +app = "borgend/__main__.py" + +[build-system] +requires = ["setuptools", "wheel", "py2app"] +build-backend = "setuptools.build_meta" + +[options.entry_points] +console_scripts = { borgend = "borgend.__main__:main" } + +[options.py2app] +argv_emulation = false +plist = { LSUIElement = true } +excludes = ['wx', 'matplotlib', 'numpy', 'scipy', 'sip'] +
--- a/setup.py Sun Dec 05 13:34:02 2021 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,32 +0,0 @@ -from setuptools import setup, find_packages - -setup( - name = 'borgend', - version = '0.1.0', - author = 'Tuomo Valkonen', - author_email = 'tuomov@iki.fi', - url = 'https://tuomov.iki.fi/software/borgend/', - packages = ['borgend'], - data_files=[], - entry_points= { - "console_scripts": ["borgend = borgend.__main__:main"] - }, - #setup_requires=['py2app'], - install_requires=[ - "rumps", - "keyring", - "PyYAML", - "xdg;platform_system!='darwin'", - ], - app=['borgend/__main__.py'], - setup_requires=['py2app'], - options={ - 'py2app': { - 'argv_emulation': False, - 'plist': { - 'LSUIElement': True, - }, - 'excludes': ['wx', 'matplotlib', 'numpy', 'scipy', 'sip'], - } - } -)