programmer290399 / pyqna

A simple python package for question answering.
https://programmer290399.github.io/pyqna/
BSD 3-Clause "New" or "Revised" License
11 stars 5 forks source link

distribution: PyPI: Configure the package to be split into parts using `extras_require` #3

Closed programmer290399 closed 2 years ago

programmer290399 commented 2 years ago

TODO:

NitinDwivedi1 commented 2 years ago

In which file extra dependencies are mentioned? Is it requirements-dev.txt?

programmer290399 commented 2 years ago

Make sure you follow the style linked in the first point above.

All the extra requirements were there in tag V0.0.1, you can take a look at it here

The relevant dependencies and their tags were in the extra-requirements.txt file. You'd find it in the root of the repository history above.

programmer290399 commented 2 years ago

So, we used to have this in V0.0.1 but it didn't work so I rolled back those changes and made a new realease V0.0.2. After some debugging, we figured out that it was a small spelling mistake up here:

https://github.com/programmer290399/pyqna/blob/0817b70544ea0b32f7afbb71f3c2cb742682ead9/setup.py#L91

The extra_requires up here should've been extras_require.

Big thanks to @pdxjohnny for pointing this out.

So in short you need to use the same structure and code that we used to have in v0.0.1 for this specifically and just change the argument name to be the correct one.

DO NOT rollback to previous release, make sure you make a new commit for it.