Using "python setup.py check -r -s" method of checking the package has
been deprecated with the new recommendation to build the sdist and
wheel, then running "twine check" against the output.
Luckily, there is already a job that covers this that only runs when the
README, setup.py, or setup.cfg files change, making running this in the
pep8 job redundant. This covered by the test-release-openstack-python3
that is defined in the publish-to-pypi-python3 template.
More details can be found in this mailing list post:
http://lists.openstack.org/pipermail/openstack-dev/2018-October/136136.html
Change-Id: I901a85a2663323b5ee2e412405a3aabc02fdf032
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
We want to default to running all tox environments under python 3, so
set the basepython value in each environment.
We do not want to specify a minor version number, because we do not
want to have to update the file every time we upgrade python.
We do not want to set the override once in testenv, because that
breaks the more specific versions used in default environments like
py35 and py36.
Change-Id: Ie12f0b23e32b64b57fec5f2926fa3504b16ad2df
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
According to Openstack summit session [1] stestr is
maintained project to which all Openstack projects
should migrate. Let's switch it then.
[1] https://etherpad.openstack.org/p/YVR-python-pti
Change-Id: Id31d458418d904b568be0adf98d5b579cfd841cd
Signed-off-by: Charles Short <zulcss@gmail.com>
We want to default to running all tox environments under python 3, so
set the basepython value in each environment.
We do not want to specify a minor version number, because we do not
want to have to update the file every time we upgrade python.
We do not want to set the override once in testenv, because that
breaks the more specific versions used in default environments like
py35 and py36.
Change-Id: I946210d26cbdcb303b3eca623022608afc141fe3
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
Create a tox environment for running the unit tests against the lower
bounds of the dependencies.
Create a lower-constraints.txt to be used to enforce the lower bounds
in those tests.
Add openstack-tox-lower-constraints job to the zuul configuration.
See http://lists.openstack.org/pipermail/openstack-dev/2018-March/128352.html
for more details.
Change-Id: I1c69e5d82410cd6245a7427a67ce741d82324d51
Depends-On: https://review.openstack.org/555034
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
'pip install -U' ugrades specified packages, this is not necessary
since we use constraints, remove the parameter '-U' from the line.
With tools/tox_install.sh - which a previous change of mine removed -
the -U was not harmful, but with the current set up, it might cause
upgrades, so remove it.
Change-Id: I9b14274aee2c19e8a12ee48a129b62f5f6c67c57
We do not need tox_install.sh, pip can handle constraints itself
and install the project correctly. Thus update tox.ini and remove
the now obsolete tools/tox_install.sh file.
This follows https://review.openstack.org/#/c/508061 to remove
tools/tox_install.sh.
Change-Id: Ie2985abfafa71177b5800a8ca5a97381662bfea9
Following commits accomplishes several things:
* unit tests run with ostestr
* coverage calculation
* documentation generated using OS approach & theme
* bandit linting
Change-Id: I6c3b48805c237f0ad95220b90ff66b045c7478fb
Add support for python3 using the six library.
Change-Id: I90851ddf5a98ca05c494a49e4063e1bd233cccee
Signed-off-by: Chuck Short <chuck.short@canonical.com>
Removing references to histogram and set types.
Converting timer data from histogram type to gauge.
Enabling tox jobs because I was depending on them to tell me if I screwed
something up.
Change-Id: If9fbbf655baca67e7f205e4493c0929ac90d386a
Due to the fact that the hacking requirement from test-requirements.txt
was recently updated, H302 - import only modules is now safe to remove
from the ignore list in tox.ini, as it will no longer lead to any error.
Change-Id: Icec30797623badf2c18308c3bb71699370905f3e
This review is to prepare for adding monasca-statsd into openstack
global-requirements. After this project gets into global requirements,
it will be in upper-constraints.txt. If we make changes on this
specific project, we need to replace it in the upper-constraints with
source based specifier before applying it to pip install.
Change-Id: I60c74cd263e8611a61528721a9b40926ded4b6a4
Bring over the cleaning line from run_tests.sh for the pyc files to
all the tox runs.
This should eliminate the need to clean -x -i to kill pyc files in
your local directory to get tests to pass.
Change-Id: I5eb5d3a017ef752178073d7389961fd0ff4be4c4
Closes-Bug: #1368661
The monasca-statsd package was in one monolithic class in
a single file. Made it more modular and broke it into classes
for the different metrics types, connection and added a Client
class for easy management.
Change-Id: If4f204f656cc8f8603b5e96e0e734983b3aadcd6