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

Maintenance Fixing Build Errors and Add Support for Python 3.7 & 3.8 #37

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

JJCoding01
Copy link
Contributor

This PR fixes the Travis build errors for python 3.5 and 3.6 by fixing sphinx errors/warnings.

Also included are fixed typos/spelling errors in README and doc-strings, and adding support for Python 3.7 and 3.8.

The link for http://www.numpy.org redirects to https://numpy.org.

Also updated repeated numpy links to reference original named hyper-link,
as NumPy_, rather than repeating link address.

See http://docutils.sourceforge.net/docs/ref/rst/restructuredtext.html#hyperlink-references
for more details about using the named hyper-link reference.
Fixed typos for for words 'spherical', 'axis', and 'coercion'
Making __array_wrap__ static, allows the no-self-use pylint warning to be
removed.
Both of these errors coming from inheriting from np.ndarray, and np.ndarray
has a dot method with different parameters.
- Replaced the depreciated np.asscalar function with np.ndarray.item
- Use builtin sum function for calculating dot product in BaseVectorArray.dot
  rather than np.sum. Using np.sum on a generator is depreciated, and will
  change behavior in the future (per numpy documentation)
@codecov
Copy link

codecov bot commented Dec 14, 2019

Codecov Report

Merging #37 into master will increase coverage by 0.82%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #37      +/-   ##
==========================================
+ Coverage   90.64%   91.47%   +0.82%     
==========================================
  Files           2        2              
  Lines         310      340      +30     
==========================================
+ Hits          281      311      +30     
  Misses         29       29
Impacted Files Coverage Δ
vectormath/vector.py 91.23% <100%> (+0.87%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a2259fb...34c69cb. Read the comment docs.

@JJCoding01
Copy link
Contributor Author

Also related to this PR, I wanted to bring up Python 2 support. Are there plans to drop it, or do you plan to support it indefinitely?

If dropping it is planned, I would be happy to get started on that with this PR.

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 this pull request may close these issues.

1 participant