Code Monkey home page Code Monkey logo

Comments (6)

sbyrnes321 avatar sbyrnes321 commented on August 18, 2024

Oh neat, thanks for letting me know.

So far I've been running:

python setup.py bdist_wheel
twine upload dist/*

Next time I'll use:

python setup.py bdist_wheel sdist
twine upload dist/*

Does that sound right? Agree or disagree? I do python packaging sufficiently infrequently that I have to re-learn how it works each time.

Sure, I can start tagging versions.

When you say "smoke test suite", do you have something specific in mind, e.g. compatible with a particular automated testing framework? Otherwise I can just make a file test.py and you run it and it prints "All tests pass, hooray!" or whatever...

from numericalunits.

jayvdb avatar jayvdb commented on August 18, 2024

For the sdist to be useful, a MANIFEST.in is needed. https://pypi.org/project/check-manifest/ can generate one for the repository.

For a basic smoke test, it would be better to be written in the stdlib unittest, then any runner can be used. The tests could be as simple as (1) importing and checking a few of the attributes against pre-computed values, and then (2) a second test to invoke set_derived_units_and_constants() and check a few of those runtime globals against pre-computed values. One part that might get complicated is the values might not be the same on all supported versions of Python; I've had trouble in the past with floats where different Python versions gave very slight differences, making the test logic a bit more complicated. I've seen a few unittest addons which provide a 'almost equal' to handle this.

Which versions of Python do you intend to support with this package, as setup.py just says v2 and v3, while most software packages now only support v2.7 and v3.4+.

from numericalunits.

sbyrnes321 avatar sbyrnes321 commented on August 18, 2024

I think I did all your suggestions, but I'll leave this issue open until the next time I upload a new version to pypi, which will (hopefully) have the sdist. Let me know if you see anything else amiss, and thanks for your time.

from numericalunits.

jayvdb avatar jayvdb commented on August 18, 2024

Thank you, and https://build.opensuse.org/request/show/704097 submitted to use the new tarball from GitHub

from numericalunits.

sbyrnes321 avatar sbyrnes321 commented on August 18, 2024

I just uploaded & tagged version 1.23 with the sdist. All set?

from numericalunits.

jayvdb avatar jayvdb commented on August 18, 2024

Ideally add recursive-include tests *.py to MANIFEST.in so that the tests are in the sdist of the next release.

Also v1.23 switched from using Unix to DOS end-of-line markers. I guess that wasnt intentional, and it causes the openSUSE web diff to not work as you can see at https://build.opensuse.org/request/show/705189

Thanks for your help with this.

from numericalunits.

Related Issues (13)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.