4
4
# # Check README-development.md and Makefile for instruction how to install or build ADS locally.
5
5
6
6
[build-system ]
7
- requires = [" setuptools>=65" , " wheel" ]
8
- build-backend = " setuptools.build_meta"
7
+ # PEP 517 – A build-system independent format for source trees - https://peps.python.org/pep-0517/
8
+ # Till recently flit-core library was suggested by pip, so we used it. In future, cosider to change to
9
+ # other, if better, build-backend library.
10
+ requires = [
11
+ " flit-core >=3.8,<4" ,
12
+ ] # should specify <4, so won’t be impacted by changes in the next major version
13
+ build-backend = " flit_core.buildapi"
9
14
10
15
11
16
[project ]
@@ -15,8 +20,8 @@ build-backend = "setuptools.build_meta"
15
20
# PEP 518 – Specifying Minimum Build System Requirements for Python Projects https://peps.python.org/pep-0518/
16
21
17
22
# Required
18
- name = " oracle_ads" # the install (PyPI) name
19
- version = " 2.13.9rc0 "
23
+ name = " oracle_ads" # the install (PyPI) name; name for local build in [tool.flit.module] section below
24
+ version = " 2.13.9rc1 "
20
25
21
26
# Optional
22
27
description = " Oracle Accelerated Data Science SDK"
@@ -44,6 +49,7 @@ keywords = [
44
49
classifiers = [
45
50
" Development Status :: 5 - Production/Stable" ,
46
51
" Intended Audience :: Developers" ,
52
+ " License :: OSI Approved :: Universal Permissive License (UPL)" ,
47
53
" Operating System :: OS Independent" ,
48
54
" Programming Language :: Python :: 3.9" ,
49
55
" Programming Language :: Python :: 3.10" ,
@@ -55,7 +61,7 @@ classifiers = [
55
61
# In dependencies se "<library>; platform_machine == 'aarch64'" to specify ARM underlying platform
56
62
# Copied from install_requires list in setup.py, setup.py got removed in favor of this config file
57
63
dependencies = [
58
- " PyYAML>=6.0.1 " , # pyyaml 5.4 is broken with cython 3
64
+ " PyYAML>=6" , # pyyaml 5.4 is broken with cython 3
59
65
" asteval>=0.9.25" ,
60
66
" cerberus>=1.3.4" ,
61
67
" cloudpickle>=1.6.0" ,
@@ -250,12 +256,13 @@ testsuite = [
250
256
[project .scripts ]
251
257
ads = " ads.cli:cli"
252
258
253
- [tool .setuptools .packages .find ]
254
- where = [" ." ]
255
- include = [" ads" ]
259
+ [tool .flit .module ]
260
+ name = " ads" # name for local build and import, see https://flit.pypa.io/en/latest/pyproject_toml.html#module-section
256
261
257
- [tool .setuptools .package-data ]
258
- "ads" = [" THIRD_PARTY_LICENSES.txt" ]
262
+ [tool .flit .sdist ]
263
+ # By default `ads` folder and `LICENSE.txt` file included in sdist. Folders `docs` and `tests` are excluded, as weel as other project files
264
+ # Use this section to include/exclude files and folders. See doc: https://flit.pypa.io/en/latest/pyproject_toml.html#sdist-section
265
+ include = [" THIRD_PARTY_LICENSES.txt" ]
259
266
260
267
# Configuring Ruff (https://docs.astral.sh/ruff/configuration/)
261
268
[tool .ruff ]
0 commit comments