-
Notifications
You must be signed in to change notification settings - Fork 86
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
Version variable added #1118
Version variable added #1118
Conversation
Hello @nicl-nno! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:
Comment last updated at 2023-07-13 13:32:45 UTC |
Codecov Report
@@ Coverage Diff @@
## master #1118 +/- ##
==========================================
+ Coverage 78.32% 78.56% +0.24%
==========================================
Files 130 131 +1
Lines 9321 9323 +2
==========================================
+ Hits 7301 7325 +24
+ Misses 2020 1998 -22
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Вот тут есть рекомендации, как сохранить версию фреймворка только в одном месте (она дублируется в setup.py)
Думаю, стоит воспользоваться
Можно создать version.py, в котором ничего не импортировать. Там задать переменную Насколько я понимаю, в setup нужно, чтобы никакие компоненты фреймворка не импортировались. Поэтому для хранения версии нужен отдельный модуль, либо вообще текстовый файл. |
Вынес как ты предложил. Надеюсь это в pypi сработает. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Попробовал сделать локальный build, получилось.
Попробовал загрузить на test.pypi.org - не получилось с вот такой ошибкой:
ERROR HTTPError: 400 Bad Request from https://test.pypi.org/legacy/
Invalid value for requires_dist. Error: Can't have direct dependency: 'thegolem @ git+https://github.com/aimclub/GOLEM.git@stable#egg=thegolem'
С реальным PyPI не возникает такой проблемы?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Теперь сюда нужно добавить строку, чтобы удовлетворить цели PR
from fedot.version import __version__
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
да, в PyPi нельзя иметь завиимости такого вида. Поэтому для релизов зависимость отт ГОЛЕМа ставится на конкреттную версию
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Теперь сюда нужно добавить строку, чтобы удовлетворить цели PR
Добавил.
* Version variable added to fedot module
Version variable is added to support the following snippet:
Сaused by: