Comments (4)
Interesting, numpy does a whole bunch of stuff to bake the version (including the git revision) into the build. Their primary source of the version numbers actually seems to be setup.py
itself, but then the reading of version.py comes in if you run setup.py on a copy of numpy that has already had write_version_py
run... which I guess is what they post to pypi?
Another model is eg plotly.py - where a version.py
is read by both setup.py
and __init__.py
This is a whole lot simpler, and I'd think it would suffice for our needs. The only thing missing is the git commit id - we've talked about logging this when you run commands. For that purpose it doesn't really need to be part of qcodes.__version__
, and I think for the most part if people have qcodes installed as a regular package they should be using a released version (so major.minor.patch is a unique identifier) and if they have it installed as a dev version, they'll have it in a cloned git repo and we can read the revision the same way as numpy's git_version
from qcodes.
@alexcjohnson The plotly model is indeed simpler. I implemented it and accidentally committed to master instead of a new branch.
Shall we keep the commit to master and close the issue?
from qcodes.
Sure, looks good. We still need a qcodes/version.py
right? But then I'm happy to close this.
from qcodes.
Just added version.py
, I'll close the issue
from qcodes.
Related Issues (20)
- Loading a parameter called "current_time" produces an array that just contains the completed timestamp HOT 2
- xarray dataset dependency is incorrect when adding an independent parameter to the measurement
- Make it possible to use ConnectionPlus as a context manager
- Non-gridded data export to netcdf HOT 3
- Captured_run_id is incorrect if run has been inserted HOT 1
- Pyvisa sim instruments are not cleanup on close. HOT 1
- Lakeshore 336 Driver with USB interface not connecting HOT 9
- Random error in test_logger HOT 3
- Agilent E8257D Instrument Driver Bug in on() and off() Methods HOT 5
- Code coverage jumps by 10 lines
- Warning when calling data_set.cache.load_data HOT 1
- Acccessing a faulty property of an instrument throws obscure error.
- print_readable_snapshot() of instrument modules without parameters broken.
- Random failure in do_nd test HOT 2
- Cannot exit ipython with running qcodes.Monitor() HOT 4
- Add redirects to new documentation? HOT 2
- Error when running `Infiniium.py` driver file HOT 4
- Parameter.__getitem__ behavior HOT 5
- Ignored exception on ci in windows related to monitor and socket. HOT 1
- Alazar example (and driver) is broken HOT 2
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 qcodes.