Closed AsifArmanRahman closed 1 year ago
Ahh got it. I'll fix this today. Thanks for bringing this up.
Ok should be fixed now in 1.0.1.
$ pip install fastapi-versionizer
>
Collecting fastapi-versionizer
Downloading fastapi_versionizer-1.0.1.tar.gz (5.2 kB)
Preparing metadata (setup.py) ... done
Requirement already satisfied: fastapi>=0.86.0 in /Users/alexschimpf/.pyenv/versions/3.8.18/envs/fastapi-versionizer-3.8/lib/python3.8/site-packages (from fastapi-versionizer) (0.103.1)
Requirement already satisfied: anyio<4.0.0,>=3.7.1 in /Users/alexschimpf/.pyenv/versions/3.8.18/envs/fastapi-versionizer-3.8/lib/python3.8/site-packages (from fastapi>=0.86.0->fastapi-versionizer) (3.7.1)
Requirement already satisfied: pydantic!=1.8,!=1.8.1,!=2.0.0,!=2.0.1,!=2.1.0,<3.0.0,>=1.7.4 in /Users/alexschimpf/.pyenv/versions/3.8.18/envs/fastapi-versionizer-3.8/lib/python3.8/site-packages (from fastapi>=0.86.0->fastapi-versionizer) (2.3.0)
Requirement already satisfied: starlette<0.28.0,>=0.27.0 in /Users/alexschimpf/.pyenv/versions/3.8.18/envs/fastapi-versionizer-3.8/lib/python3.8/site-packages (from fastapi>=0.86.0->fastapi-versionizer) (0.27.0)
Requirement already satisfied: typing-extensions>=4.5.0 in /Users/alexschimpf/.pyenv/versions/3.8.18/envs/fastapi-versionizer-3.8/lib/python3.8/site-packages (from fastapi>=0.86.0->fastapi-versionizer) (4.7.1)
Requirement already satisfied: idna>=2.8 in /Users/alexschimpf/.pyenv/versions/3.8.18/envs/fastapi-versionizer-3.8/lib/python3.8/site-packages (from anyio<4.0.0,>=3.7.1->fastapi>=0.86.0->fastapi-versionizer) (3.4)
Requirement already satisfied: sniffio>=1.1 in /Users/alexschimpf/.pyenv/versions/3.8.18/envs/fastapi-versionizer-3.8/lib/python3.8/site-packages (from anyio<4.0.0,>=3.7.1->fastapi>=0.86.0->fastapi-versionizer) (1.3.0)
Requirement already satisfied: exceptiongroup in /Users/alexschimpf/.pyenv/versions/3.8.18/envs/fastapi-versionizer-3.8/lib/python3.8/site-packages (from anyio<4.0.0,>=3.7.1->fastapi>=0.86.0->fastapi-versionizer) (1.1.3)
Requirement already satisfied: annotated-types>=0.4.0 in /Users/alexschimpf/.pyenv/versions/3.8.18/envs/fastapi-versionizer-3.8/lib/python3.8/site-packages (from pydantic!=1.8,!=1.8.1,!=2.0.0,!=2.0.1,!=2.1.0,<3.0.0,>=1.7.4->fastapi>=0.86.0->fastapi-versionizer) (0.5.0)
Requirement already satisfied: pydantic-core==2.6.3 in /Users/alexschimpf/.pyenv/versions/3.8.18/envs/fastapi-versionizer-3.8/lib/python3.8/site-packages (from pydantic!=1.8,!=1.8.1,!=2.0.0,!=2.0.1,!=2.1.0,<3.0.0,>=1.7.4->fastapi>=0.86.0->fastapi-versionizer) (2.6.3)
Building wheels for collected packages: fastapi-versionizer
Building wheel for fastapi-versionizer (setup.py) ... done
Created wheel for fastapi-versionizer: filename=fastapi_versionizer-1.0.1-py3-none-any.whl size=7428 sha256=3bb270492a6c972698f19a1f00ce8335a676af4835e4b14a2f7f1a728064f8e2
Stored in directory: /Users/alexschimpf/Library/Caches/pip/wheels/a7/e0/8f/03d638fdf6857c1f8930aee2e9a47dff62ffd4b26f11fb5c14
Successfully built fastapi-versionizer
Installing collected packages: fastapi-versionizer
Successfully installed fastapi-versionizer-1.0.1
Yeah, works fine. Keep on the great work!
Issue
Source distribution file, which is uploaded to PyPI is missing the
requirements.txt
files, which thesetup.py
fails to open. https://github.com/alexschimpf/fastapi-versionizer/blob/ea5794f386cd6cf36b9db986cc672866eab11a1a/setup.py#L8Your environment
Steps to reproduce
Expected behaviour
The requirements.txt file should be included into the source distribution tarball file while building the package, or revert back to previous way of directly writing the library requirements in
setup.py
.Actual behaviour