summaryrefslogtreecommitdiffstats
path: root/setup.py (unfollow)
Commit message (Collapse)AuthorFilesLines
2020-03-27Add missing SPDX-FileCopyrightText throughout the project.Diego Elio Pettenò1-0/+1
This is following the advice provided in https://matija.suklje.name/how-and-why-to-properly-write-copyright-statements-in-your-code
2020-03-26Fix errors identified by flake8.Diego Elio Pettenò1-3/+4
2020-03-25Use setuptools_scm to handle the packaging and versioning.Diego Elio Pettenò1-0/+2
2020-03-25Remove `tests_require` from `setup.py`.Diego Elio Pettenò1-12/+8
This field is deprecated together with the `test` command. Instead, rely on the `dev` extra — which is what Travis CI is already using to install the right set of dependencies.
2020-03-25Remove support for `setup.py test`.Diego Elio Pettenò1-13/+0
As per https://github.com/pypa/setuptools/issues/1684, the test command in setuptools is deprecated, so let's not go out of our way to have it work correctly. Travis is not depending on this feature at all.
2020-03-25Move static descriptions to `setup.cfg` simplifying `setup.py`.Diego Elio Pettenò1-23/+0
This removes a number of fixed strings from the Python side of the setup, and prefers referencing the `README.md` file by name.
2020-03-23Add an `all` extension that includes all dependencies.Diego Elio Pettenò1-21/+32
This makes it easier in the integration to install all the needed dependencies.
2020-03-23otverio2015: remove python-scsi from dependencies.Diego Elio Pettenò1-1/+1
The python-scsi module is not installable via pip, so there's no point in listing it as a dependency right now. It's probably better to replace this with a new extension altogether.
2020-03-23Increase minimum supported Python version to 3.7.Diego Elio Pettenò1-1/+1
This simplifies compatibility with usbmon-tools for the reversing tools, and will allow converting all the type annotations inline, which is less intrusive.
2020-03-16Add mypy to continuous integration.Diego Elio Pettenò1-1/+1
2020-03-16Add the README to the generated pypi package.Diego Elio Pettenò1-0/+6
2020-03-08Update minimum Python version.Diego Elio Pettenò1-2/+1
2020-03-08add configuration for pre-commit, black and isortBen1-53/+48
2019-09-25Add driver implementation for Ascensia ContourUSB.Arvanitis Christos1-0/+1
Implemented based on the protocol documentation provide by Ascensia, with portions from glucodump by @sm6xmm (relicensed by the author under MIT license.) Squashed from pull request #62. Signed-off-by: Anders Hammarquist <iko@iko.pp.se> Signed-off-by: Diego Elio Pettenò <flameeyes@flameeyes.com>
2019-09-02Drop support for Python 3.4.Diego Elio Pettenò1-1/+1
Python 3.4 lacks the `typing` module, which requires try/catch when importing, making type annotations more verbose than needed. At the time of writing, Debian oldstable has Python 3.5 available, so it sounds like a good default.
2019-08-06td4277: add to the setup.py dependencies.Diego Elio Pettenò1-5/+6
Also sort the list so that's easier to know where to add it.
2019-07-30Fix invalid attribute in setup() method.Diego Elio Pettenò1-1/+1
2019-02-08Replace epydoc metadata with SPDX identifiers.Diego Elio Pettenò1-0/+2
Most of the epydoc metadata (author, copyright, email) is duplicate in the package's setup.py or README. These copies are more likely to get out of date, and increase the amount of work to keep them in line. The license information should rather be provided with an SPDX identifier, which is more similar to what the Linux kernel and other projects, such as pyserial, do.
2019-02-08Replace flameeyes.eu with flameeyes.com.Diego Elio Pettenò1-3/+3
Due to EURid threatening to suspend my domain, make sure that the references are updated to point at the right stable domain. This includes changes to the files as well as a mailmap to update the author references in the log.
2018-12-12Use [attrs](http://www.attrs.org/) instead of namedtuple for MeterInfo.Diego Elio Pettenò1-0/+3
This avoids having the separate _MeterInfoBase class, and reads much nicer.
2018-03-17construct-code is (almost) uptodateArkadiusz Bulski1-7/+7
2018-02-11construct: the construct API is significantly unstable, fix to 2.8.22 only.Diego Elio Pettenò1-7/+7
This still is required to fix Issue #38, but luckily it's just a test failure for now.
2018-02-11Until Issue #38 is fixed, expect construct 2.8, and not 2.9.Diego Elio Pettenò1-7/+7
The API changed in slightly incompatible ways so I'll have some work to make sure this works on both versions (and that there is some test around it, possibly).
2018-01-07otverioiq: add to the list and to the dependency file.Diego Elio Pettenò1-0/+1
As noted in Issue #30, this is currently untested, but I'm confident it won't take much to get it to working state.
2018-01-01otverio2015: rewrite using construct.Diego Elio Pettenò1-1/+1
This simplifies the code a bit here and there, making sure that the structures are all define at the top of the file. It also align the structure of the driver a bit more with otultraeasy, making it easier to spot the similitudes.
2018-01-01otultraeasy: rewrite using construct for parsing.Diego Elio Pettenò1-1/+1
This removes the wholly complicated _Packet() object and replace it with more readable construct. Unfortunately this appears to reduce performance because of the serial stream buffering, needed to calculate the checksum. It's unfortunate, but it at least avoids a significant amount of custom code.
2017-12-31sdcodefree: rewrite using construct and improve readability.Diego Elio Pettenò1-1/+1
This replaces the use of manual structures with well-defined construct entries; it also give consistency to packet vs message. Log input and output messages, to be clearer.
2017-12-30Use pytest to run testsMuhammad Kaisar Arkhan1-1/+21
Closes https://github.com/Flameeyes/glucometerutils/issues/34
2017-12-28Fix dependency name for absl-py.Diego Elio Pettenò1-1/+1
2017-12-28freestyle: replace the custom struct and bytemangling with construct.Diego Elio Pettenò1-3/+3
This simplifies the code and enforces the validation within the format documentation too. construct can handle the full package verification, including dealing with padding.
2017-12-28deps: correct dependency for fsoptium.Diego Elio Pettenò1-1/+1
2017-12-28Add driver dependencies to setup.py, and document how to install this.Diego Elio Pettenò1-0/+11
This should address Issue 5 (theoretically some of the dependencies are OS-specific but that's a longer problem). Also partially addresses Issue 9 because now we have an easy to understand "install and try out" option.
2017-12-28Rewrite setup.py to use setuptools.Diego Elio Pettenò1-22/+33
This should make it easier to add dependencies and so on.
2017-12-28Fix up link to the site.Diego Elio Pettenò1-1/+1
2017-12-28Raise minimum Python version to 3.4, to allow using the enum module.Diego Elio Pettenò1-0/+1
Supporting older Python is becoming harder, and modern Python is more readable, particularly as it allows for less brittle code.
2017-01-20Include glucometerutils.support in setup.py.Red Daly1-1/+1
2013-08-03setup.py: update license specification.Diego Elio Pettenò1-1/+1
2013-08-03Add utf-8 encoding specification to all files.Diego Elio Pettenò1-0/+2