Comments (6)
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.
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.
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.
Thank you, and https://build.opensuse.org/request/show/704097 submitted to use the new tarball from GitHub
from numericalunits.
I just uploaded & tagged version 1.23 with the sdist. All set?
from numericalunits.
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)
- Install error with Python 3.3 HOT 4
- Random units if not explitly set. HOT 1
- Documentation HOT 1
- SyntaxError: invalid syntax HOT 1
- Add angle unit HOT 1
- Add Decibel and related units HOT 1
- Missing unit for radiation dose HOT 1
- weird interaction with native round() function HOT 1
- Add rpm definition HOT 1
- add horsepower HOT 3
- Problem converting pressure HOT 1
- Greater range for random values? HOT 1
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 numericalunits.