-
Notifications
You must be signed in to change notification settings - Fork 25
Expand file tree
/
Copy pathsetup.py
More file actions
18 lines (14 loc) · 826 Bytes
/
setup.py
File metadata and controls
18 lines (14 loc) · 826 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
"""
Note that setup.py is NOT deprecated, but it should be used sparingly:
https://packaging.python.org/en/latest/discussions/setup-py-deprecated/#setup-py-deprecated
Best practice is to maintain an empty setup.py file for maximum compatibility:
https://packaging.python.org/en/latest/guides/modernize-setup-py-project/#should-setup-py-be-deleted
Whenever possible edit pyproject.toml. All static metadata belongs
in pyproject.toml:
https://packaging.python.org/en/latest/guides/modernize-setup-py-project/#how-to-handle-packaging-metadata
Only dynamic build time code and some dynamic metadata belong here. For such
cases review the setuptools modernization guide:
https://packaging.python.org/en/latest/guides/modernize-setup-py-project/#modernize-setup-py-project
""" # noqa: E501
import setuptools
setuptools.setup()