I have the following in my setup.cfg file:
JavaScript
x
5
1
[metadata]
2
name = mathsom
3
python_requires = '>=3.8'
4
5
Problem is that I created an enviroment with Python 3.7 and installation had no problems. Installation command:
JavaScript
1
2
1
pip install --extra-index-url https://test.pypi.org/simple/ mathsom
2
Shouldn’t pip require a Python 3.8 enviroment?
Here is the test.PyPI link: PyPI project, and here the repo: GitHub repo
I know that the setup.cfg file is working because pip install packages in install_requires
field and Trove Classifiers show in Test PyPI.
Complete setup.cfg file:
JavaScript
1
34
34
1
[metadata]
2
name = mathsom
3
python_requires = '>=3.8'
4
author = Oliver Mohr B.
5
author_email = oliver.mohr.b@gmail.com
6
version = 0.1.2
7
description = Personal library for math related problems
8
long_description = file: README.md
9
long_description_content_type = text/markdown
10
url = https://github.com/oliverm91/mathsom
11
license_files = LICENSE
12
keywords = solvers, solver, interpolations, interpolation, numerics, derivatives, integrals
13
classifiers =
14
Development Status :: 3 - Alpha
15
License :: OSI Approved :: GNU General Public License v3 (GPLv3)
16
Programming Language :: Python
17
Programming Language :: Python :: 3.8
18
Programming Language :: Python :: 3.9
19
Programming Language :: Python :: 3.10
20
Programming Language :: Python :: 3.11
21
Topic :: Scientific/Engineering :: Mathematics
22
Natural Language :: English
23
24
[options]
25
package_dir=
26
= src
27
packages=find:
28
install_requires =
29
numpy
30
scipy
31
32
[options.packages.find]
33
where=src
34
Advertisement
Answer
python_requires
belongs to section [options]
:
JavaScript
1
6
1
[metadata]
2
name = mathsom
3
4
[options]
5
python_requires = >= 3.8
6