-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Refactor setup.py. Add setup.cfg. modify issue & PR templates. #1096
Conversation
} | ||
) | ||
if __name__ == "__main__": | ||
setup() |
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.
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.
Have tested to https://test.pypi.org/project/spotdltester
All is working.
All data migrated from setup.py to setup.cfg
Attention future contributor making changes to setup.py:For whoever reads this in the future, updating The Python Packaging tutorial documentation is outdated at time of writing, still saying to use a Python documentation for the config file. Literally useless. It's the page we need, but it contains 5% of the information we actually need. Literally the most help was this stackoverflow answer Eventually,We will need to migrate from a But quote the stack overflow answer,
Remember that this post was made in January 2021. Packaging python projects is in the middle of a big change. It is likely some of this information is outdated. Fingers crossed, documentation is better when you are contributing to the spotDL project. |
I'd suggest merging #1039 first, then update this branch and see if the tests still pass in a clean environment for each supported interpreter. |
Assuming you mean #1093... |
Oh, right - typo. |
Had comma separated list rather than semi colon. Prevented setup.py from functioning
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.
It's clearer if we list only top-level, directly imported dependencies. Apart from that all good.
setup.cfg
Outdated
download_url = https://pypi.org/project/spotdl/ | ||
|
||
author = spotDL Team | ||
author_email = unrealengin71+PyPi@gmail.com |
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.
Change the email to the googlegroups id
setup.cfg
Outdated
pytube | ||
rich | ||
rapidfuzz | ||
requests |
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.
We don't explicitly use requests, just list the top level requirements
74dc243
to
f0e94e0
Compare
@aklajnert can you lend some insight into these checks that are failing? |
__________________ ERROR collecting tests/test_entry_point.py __________________
ImportError while importing test module '/home/runner/work/spotify-downloader/spotify-downloader/tests/test_entry_point.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/opt/hostedtoolcache/Python/3.7.9/x64/lib/python3.7/importlib/__init__.py:127: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
tests/test_entry_point.py:6: in <module>
from spotdl.__main__ import console_entry_point, help_notice
spotdl/__main__.py:10: in <module>
from spotdl.download.downloader import DownloadManager
spotdl/download/downloader.py:22: in <module>
from spotdl.download.progressHandlers import DisplayManager, DownloadTracker
spotdl/download/progressHandlers.py:7: in <module>
from tqdm import tqdm
E ModuleNotFoundError: No module named 'tqdm' You don't have |
Must've slipped my mind. will add it now. |
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.
👍
Done. Could you have a quick review? |
Also, On squash merges, add a Author: @author1-github-handle
Co-Authors: @author2-github-handle, @author3-github-handle... near the top |
Finalizing Development branch -- * Improved `saveFile` handling * Fixed tests, recorded new cassettes * Setup CI on GitHub actions * Disable VCR only for Python 3.8 to speed up tests * Clean `mypy` and add it to the CI * Fixed syntax for tox.ini * Refactor setup.py. Add setup.cfg. modify issue & PR templates. (#1096) * Transition to setup.cfg rather than setup.py * Update setup.cfg * add packages * Add Readme to PyPi * Spacing * Delete oldsetup.py * Drop Version Support for Py3.6 * Update as for #1098 * Fix Critical Error in setup.py Had comma separated list rather than semi colon. Prevented setup.py from functioning * Add 3.9 classifier * Update setup.cfg * Drop py3.6 support * Re-add Py3.6 support * Change Email * Remove `requests` * add tqdm to requirements * Fix Line Lengths in bug report template it was annoying me lol * Update and rename pull_request_template.md to PULL_REQUEST_TEMPLATE.md * Fixing typo (#1108) @last72 helping to fix typos in CONTRIBUTING.md * Fixing typo ometimes, -> Sometimes, * Fixing typo intensions -> intentions * Core values: How we decided what gets included (#1105) @MikhailZex - Core values: How we decided what gets included * Values: What get added, and what gets removed * Updates based on @Silverarmor's Review - Used title case - Canged '~(80%)' to '~80%+) - Removed unnecessary line breaks - Removed extra COREVALUES.md * Prepare Update to 3.3.0 Updated setup.cfg version to 3.3.0 * Fix setup.cfg & setup.py dev (#1116) Authored by @phcreery @Silverarmor @phcreery helped solve the big problem! * Attempt to unfck it * Try change entry point to all? * Try add a main() function * remove colon bit * Revert to 172e973 Signed-off-by: Silverarmor <23619946+Silverarmor@users.noreply.github.com> * idk whats happening * try fix packages? mayb helps? * back to __main__ * Removed where to look * script as spotdl * didnt work, trying spotdl:spotdl * trying __main__ maybe? * I am literally desperate and trying different files now. hopefully? maybe? * hopefully fixed * Revert "hopefully fixed" This reverts commit 1f07c0b. * Fix entry point. Big thanks @phcreery who figured this one out! Co-Authored-By: Peyton Creery <44987569+phcreery@users.noreply.github.com> Co-authored-by: Peyton Creery <44987569+phcreery@users.noreply.github.com> * Transfer mypy.ini to setup.cfg Co-authored-by: Andrzej Klajnert <github@aklajnert.pl> Co-authored-by: Woongyeol Choi <cwy5847@gmail.com> Co-authored-by: Michael George <MikhailZex@gmail.com> Co-authored-by: Peyton Creery <44987569+phcreery@users.noreply.github.com>
Resolves #1095