Skip to content
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

Fix pytest warnings #73

Closed
abey79 opened this issue Oct 6, 2020 · 0 comments · Fixed by #97
Closed

Fix pytest warnings #73

abey79 opened this issue Oct 6, 2020 · 0 comments · Fixed by #97

Comments

@abey79
Copy link
Owner

abey79 commented Oct 6, 2020

46 warnings are currently emitted

abey79 added a commit that referenced this issue Nov 26, 2020
- Renamed VectorData to Document
- Renamed all variations of page_format to page_size
- Improved deprecation of old names (warning emitted)
- Fix an issue with pen_up_length on empty LC (fixes #73)
- `stat` no longer hidden
- fixes #79
@abey79 abey79 mentioned this issue Nov 26, 2020
4 tasks
abey79 added a commit that referenced this issue Nov 26, 2020
The data model of vpype now includes the page size, which is set by the `read` command and can be changed using the
new `pagesize` command. The `show` command will now display the page size too. Internally, naming has been adjusted throughout the code base to reflect this change: VectorData becomes Document and all occurrences of 'page format' are replaced by 'page size'.

User changes:

- `read` will  now remember page size from SVG
- `write` will now use page size by default (unless `--page-size` is used)
- renamed all occurence of 'page format' to 'page size' (notably `write --page-size`, formerly was `--page-format`)
- added `pagesize` command to manually set the page size (eg. `vpype rect 1cm 1cm 10cm 15cm pagesize a4 write output.svg`)
- `show` will displays the page size if it is available
- added `stat` command to display statistics on the geometries and the current page size (was formerly hidden)
- deprecated APIs are now removed from the documentation

API/internal changes:

- Renamed VectorData to `vpype.Document`
- Added page size management to `vpype.Document`
- Renamed all variations of page_format to page_size
- Improved deprecation of old names (warnings are now emitted)
- fixes #73
- fixes #79
- RTD will now fail on warning
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant