-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Could not parse version constraint: ~3.6.* #2645
Comments
Which version constraint to you want to express? It looks like you are trying to mix tilde requirements and wildcard requirements which seems to not be supported. |
This is the problem, I did not find any string similar to |
Which version constraint to you want to express? |
|
And what does your pyproject.toml look like? |
There is no pyproject.toml, only a setup.py file. # -*- coding: utf-8 -*-
# DO NOT EDIT THIS FILE!
# This file has been autogenerated by dephell <3
# https://github.com/dephell/dephell
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
import os.path
readme = ''
here = os.path.abspath(os.path.dirname(__file__))
readme_path = os.path.join(here, 'README.rst')
if os.path.exists(readme_path):
with open(readme_path, 'rb') as stream:
readme = stream.read().decode('utf8')
setup(
long_description=readme,
name='index.py',
version='0.11.1',
description='An easy-to-use asynchronous web framework based on ASGI.',
python_requires='==3.*,>=3.6.0',
project_urls={
"documentation": "https://index-py.abersheeran.com/",
"homepage": "https://github.com/abersheeran/index.py",
"repository": "https://github.com/abersheeran/index.py"
},
author='abersheeran',
author_email='me@abersheeran.com',
license='Apache-2.0',
classifiers=[
'License :: OSI Approved :: Apache Software License',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: Implementation :: CPython'
],
entry_points={"console_scripts": ["index-cli = indexpy.cli:main"]},
packages=[
'indexpy', 'indexpy.http', 'indexpy.openapi', 'indexpy.websocket'
],
package_dir={"": "."},
package_data={
"indexpy": ["*.typed"],
"indexpy.openapi": ["*.html"]
},
install_requires=[
'a2wsgi==0.*,>=0.3.6', 'aiofiles==0.*,>=0.5.0',
'contextvars==2.*,>=2.4.0; python_version == "3.6.*" and python_version >= "3.6.0"',
'jinja2==2.*,>=2.10.3', 'pydantic==1.*,>=1.6.0',
'python-multipart==0.*,>=0.0.5', 'pyyaml==5.*,>=5.3.0',
'starlette==0.*,>=0.13.1',
'typing-extensions==3.*,>=3.7.4; python_version < "3.8"',
'uvicorn==0.*,>=0.11.3'
],
extras_require={
"dev": [
"black", "django==3.*,>=3.0.2", "flake8", "mkdocs",
"mkdocs-material", "mypy", "pytest-asyncio==0.*,>=0.12.0",
"pytest-cov==2.*,>=2.8.1"
],
"gunicorn": ["gunicorn==20.*,>=20.0.4"],
"pytest": ["pytest==5.*,>=5.4.2"],
"requests": ["requests==2.*,>=2.23.0"],
"test": ["pytest==5.*,>=5.4.2", "requests==2.*,>=2.23.0"]
},
) |
I see. I guess it refers to this then: The usual way to express this constraint would be |
The problem lies in the python version constraints of contextvars. |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
-vvv
option).Issue
I initialized a project and tried to install index.py using
poetry add git+https://github.com/abersheeran/index.py@setup.py
.On https://github.com/abersheeran/index.py/tree/setup.py, you can see that
setup.py
is automatically generated using dephell, and I have read that~3.6.*
does not appear, I don’t know the cause of this error.Hope someone can help me. 😭
The text was updated successfully, but these errors were encountered: