Comments (3)
Work fine. Thanks for your work.
from recipe-scrapers.
Thanks for the bugreport @marillat - I can confirm this after attempting a build from the python-recipe-scrapers
14.57.0-1 source.
The failing TestReadme.test_includes
test as-described reads from a fixed README.rst
path -- but after the Python package is built, the content of that file is only found within the package's recipe_scrapers-{vesion}.dist-info/METADATA
file -- as the package's readme content (ref: the relevant pyproject.toml
config).
Replacing the README.rst
file open with some logic to open the *.dist-info/METADATA
file works; the test runs and passes again; however I don't think it'd be great practice to have a unit test in the codebase here that has logic that is only exercised when downstream distros perform builds.
So a larger re-work may be required here; perhaps the test code needs to discover whether package metadata is available, and if so to check the contents of that -- otherwise fallback to README.rst
. If we can do that, we should be able to add that as a check to one of our continuous integration workflows (perhaps the publish
-- release -- workflow).
from recipe-scrapers.
@marillat version v14.57.1 has been released, and includes a change to the unit test suite so that it checks the scraper list using the Python package Description
metadata -- which should be available during post-build package testing, as in your scenario -- instead of expecting the README.rst
file to be available/copied into the test path.
That should allow re-enabling your tests downstream; please let me know whether that helps either way.
from recipe-scrapers.
Related Issues (20)
- Gousto.co.uk not parsing some ingredients correctly HOT 1
- README: repeated partial top-level domains (.co.uk) as hyperlink targets are invalid rST syntax HOT 2
- Add scraper for chetnamakan.co.uk
- shopping list is not visible HOT 1
- schoolofwok.co.uk
- IrishCentral
- tasteofhome HOT 3
- Allrecipes HOT 3
- Whatsgabycooking.com no longer working for some recipies
- Americastestkitchen.com family missing now HOT 2
- Maintenance: a few cleanup/consistency improvements.
- SchemaOrg.ratings_count: return an integer type instead of a floating-point number.
- Clarify introductory steps in the README file (opening a Python session, expected interpreter output, ...) HOT 21
- Tests: remove 'ingredient_groups' check for scrapers that don't support/implement ingredient groups. HOT 4
- CI: Codacy static analysis began reporting errors for Markdown lines greater than 80 char-length. HOT 6
- V14: using 'scrape_html' for an unsupported website unexpectedly implies 'wild_mode'.
- Bug: nosalty scraper missing from supported-scrapers dictionary.
- Bug: deprecation notice for 'options' incorrectly emits message when 'wild_mode' argument is provided.
- Bypass Cloudflare script HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from recipe-scrapers.