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: add project management #651
base: master
Are you sure you want to change the base?
Conversation
High-level overview of changes: 1. rename src to flaresolverr in order to namespace the package appropriately 2. Move package.json from root folder into flaresolverr so that it can be read by the utils.get_flaresolverr_version() method 3. Rewrite necessary import statements to use the full package name as per step 1 4. Move script entry point into separate method (cli_run) 5. Manually added poetry dependencies as per existing requirements.txt file
Cool thanks. For 5, why not using Hatch instead of Poetry? |
No particular reason. It's just what I'm used to using. Happy to have it be hatch instead of poetry. I did give it a quick try to create pyproject.toml for Here is what I have at the moment ...
|
@HLFH I pushed the change from poetry to hatch. Also, I just noticed that there is a |
Thanks a lot! I have a few comments on your great
Indeed, thanks! |
I updated the |
@cwegener @HLFH @M4RC0Sx I don't know much about Python packaging so I have some questions.
|
https://github.com/HLFH/FlareSolverr/commits/master I have turned off dynamic versioning until it is fixed. @ngosang I'll reply to you ASAP. |
Here are my $.02
In terms of project management tools, there is no more authoritative and mature tool than
Good idea. Not in scope for this change set though.
Dependencies are declared in the core metadata as specified in the PyPA Packaging Guide https://packaging.python.org/en/latest/specifications/core-metadata/#requires-dist-multiple-use Any Python Source Distribution that follows the PyPA Packaging Guide should have these I have simply copied the contents of As an enhancement to that, @HLFH has added the use of the The advantage of the The So, long story short: For end-users, the FlareSolverr python releases should be installed from an index (PyPI is the authoritative index), using For Docker, I have no idea. @ngosang Can you clarify what the original intention of the |
Thank you for the explanation. I will add all the changes from both PRs in the next release. Now I'm dealing with bug reports.
This porject is distributed as Docker image with Chrome and everithing configured inside. I have 12MM downloads as today => https://hub.docker.com/r/flaresolverr/flaresolverr/ |
High-level overview of changes:
rename src to flaresolverr in order to namespace the package
appropriately
Move package.json from root folder into flaresolverr so that it can
be read by the utils.get_flaresolverr_version() method
Rewrite necessary import statements to use the full package name as
per step 1
Move script entry point into separate method (cli_run)
Manually added poetry dependencies as per existing requirements.txt
file