wolfhong / LunarCalendar

A lunar calendar converter in Python, including 24 solar terms and a number of solar holidays and lunar holidays, mainly from China.
https://pypi.org/project/LunarCalendar/
MIT License
58 stars 17 forks source link

sdist file on pypi is broken (pip install [sdist file] fails) #11

Open KaixuYang opened 3 years ago

KaixuYang commented 3 years ago

Hello,

The library imports itself in its setup.py: here Usually it shouldn't import a package during the bootstrap of the build of that package. To import itself, the package must have all its dependencies already present in the virtualenv before it starts building.

Could you change to a better way to get that version string and update pypi? For example, put it in a different file that does not import other dependencies, and import that.

Thanks