Commit Graph

17 Commits

Author SHA1 Message Date
Clark Boylan 697af0b17a Use nox
This illustrates the use of nox in a simpler project. It can build docs,
run linters, and execute unittests simply and effectively.

Note we pin the packaging package as newer versions have changed
behavior on rolling release distros that don't have proper version. This
is necessary to fix gating. The followup change fixes it properly.

Change-Id: I795e4d73f60d90b0f027df43a80ebda773ee9194
2023-01-25 16:09:12 -08:00
Clark Boylan 818227c23f Update test tool to use stestr
testrepository isn't maintained at this point but stestr is. Switch to
stestr.

Change-Id: I545cb1598cd232220aa4b61d0155ab5a2846fd29
2021-11-18 08:32:52 -08:00
Jeremy Stanley 623c2e0486 Correctly skip sdist building in tox.ini
The skipsdist option was misspelled in tox.ini, correct it.

Change-Id: I008783dfc025c3ff9d93c57dff48d6db4cafdd96
2021-04-23 17:00:43 +00:00
Jeremy Stanley cad541f4fe Overhaul Python package metadata
Modernize our package metadata in the following ways:

* switch from description-file to long_description with the file
  attribute, and specify an explicit content type and encoding

* replace the home-page parameter with the newer general url one

* add specific labelled project links for improved navigation from
  PyPI's summary sidebar

* include some appropriate keywords to help folks searching

* use the specific license metadata in addition to the corresponding
  trove classifier for it

* make sure wheels when built also incorporate the LICENSE and
  AUTHORS files so that we're not distributing them without a copy
  of the license text

* indicate support for MacOS X/Darwin in trove classifiers

https://setuptools.readthedocs.io/en/latest/userguide/declarative_config.html

Also adjust tox.ini to no longer pick a specific Python 3.x
interpreter in the default envs list, instead making it use whatever
python3 the developer has on hand since that's probably "good
enough" for local testing.

Change-Id: Ib509016b532ec7cf65472cf3ee9a5e1b29949534
2021-02-04 17:02:56 +00:00
Jeremy Stanley 5a1fb0fbfe Publish release notes
Since we have release notes for bindep, we should publish them
alongside our documentation. Also update to more modern patterns for
invoking Sphinx, splitting documentation build requirements to their
own file. Drop use of the openstackdocstheme and just rely on the
default Alibaster theme like other OpenDev tools do. Remove a few
other OpenStackisms in the Sphinx configuration too, and drop the
autogenerated date included in the copyright value (not only is it
unnecessary, it's bad practice from a rebuildability standpoint, and
inaccurate since the date docs were built is not necessarily the
date the content was written).

Change-Id: I84ab856dc92d0546653fe7ca7c4e9683835c9c4a
2021-02-02 19:53:17 +00:00
Sorin Sbarnea 509d18edae Fixed pep8 job
Upgraded hacking and fixed issues with code. This fixes pep8 job
which was failing on py38 as dependencies were too old.

Change-Id: I1b1a980eb1cb7ad0a6754b3aebfb3e3e1617c3be
2020-09-11 16:37:47 +01:00
Andreas Jaeger 7219c458aa Some cleanups
Followup to https://review.opendev.org/667614 :
* Pin hacking version
* ignore_basepython needs tox 3.1 or newer, add minversion

Change-Id: I1a36a090d3daca9c6630b68d4a8f2d74157e6de6
2019-08-19 16:39:28 +02:00
Dirk Mueller 09218a7621 Use Python 3.x by default for testing
This requires updating newer hacking which requires
some small fixes for pep8 to pass. Also adjust sphinx
dependencies so that py2.7 environment continues to work.

Change-Id: I576a6c42867a3fed7cc7090bd4a6219de3bced66
2019-06-26 16:17:16 +02:00
Andreas Jaeger c112ea2053 Update docs building
* Use openstackdocstheme instead of obsolete oslosphinx
* Update requirements to current versions
* Use sphinx-build instead of pbr specific commands
* Fix wrong indend to avoid sphinx warning

Change-Id: I5aff91ec45466f25b825b1729561976db69eb188
2018-09-24 20:16:02 +02:00
Paul Belanger e5d5f598f5
Update tox.ini with py35
We test py35 in the gate, add that to tox.ini too.

Change-Id: Ifb3b313caedd427dec777ad7e72649ec78f6a80f
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2017-05-24 19:45:42 -04:00
Jenkins b4e68da776 Merge "Remove py26 support from bindep" 2016-04-30 16:44:45 +00:00
sonu.kumar 0cda1899db Remove py26 support from bindep
as of mitaka, the infra team won't have the resources available to
reasonably test py26, also the oslo team is dropping py26 support
from their libraries. sine we rely on oslo for a lot of our work,
and depend on infra for our CI, we should drop py26 support too.

Change-Id: I6dce75d0d1e015e690fe2b7c5e739c10bc12d48e
Related-Bug: #1519510
2015-12-16 13:48:18 +05:30
Jeremy Stanley c3380c3b00 Stop specifying requirements.txt in tox.ini
As PBR already injects the contents of requirements.txt into
setup_requires, there is no need for tox to explicitly install them.

http://lists.openstack.org/pipermail/openstack-dev/2015-July/069663.html

Change-Id: Ie39424ed82b4380334b1a4e35bafe7416b8ff5b3
2015-07-16 17:42:27 +00:00
Jeremy Stanley 0407bb62a3 Sync with openstack-dev/cookiecutter
Update boilerplate content, modernize for more recent PBR
advancements, and get tests and style checks working.

Change-Id: I86b6a171d2d81dd870f092542d2f4569a6772fac
2015-04-03 19:49:22 +00:00
Robert Collins a6b704724b Fix flake8 whinge and py26.
Flake8 was slightly bitrotten, and Python2.6 needs a function from 2.7.

Change-Id: I73d75d83f0801e57fa4cca43ec04aa9205331bf5
2013-06-12 15:03:53 +12:00
Robert Collins 7d3f9a17c9 Start fleshing out commands. 2013-06-09 23:45:42 +12:00
Robert Collins cb397d5f3e Initial project docs and framework. 2013-06-09 21:24:01 +12:00