Make a few cleanups:
- Remove python 2.7 stanza from setup.py
- Update requirements: Remove sphinx, it's not needed for testing, add
pygments which is really needed.
- Update doc/requirements: Remove python 2.7 support
- tox.ini: Remove testing of po files, the infra scripts do this since
a long time
- Update conf.py, no need to import openstackdocstheme anymore.
Change-Id: I9d030eb450f2c7ae74c25b7564a01b8785503e5e
- current global requirements
- merge py3 req files into markers
The one eww moment is the -e line for glance store, which only got in
because the infra check-requirements job wasn't checking -py3 files at
all until recently.
Change-Id: I748e9e1bb698085a19c5d8d6060f4d377695dc89
The executable programs used by Glance have historically been scripts
in the ./bin directory. This patch converts all of the scripts to
entry_points. This change makes these programs python modules. Thus
they can be imported and methods in them can be called just like any
other module. This will allow the tests to call into these programs
directly instead of having to fork out a process.
The conf.py file in the doc tree was causing a name collision with
the python module cmd. The glance/glance directory was being added
to sys.path which made glance.cmd import with the name cmd. This
patch also fixes that problem.
blueprint: refactoring-better-faster-stronger-functional-tests
Change-Id: I67ae14b7403af31a5944befcd2ec27a690e81f15
Pull in a versioning fix from openstack-common, fixes
python setup.py sdist versioning.
Change-Id: I9ffab5c2b37190b4c7daad5e92da40d773c99b4f
Signed-off-by: Chuck Short <chuck.short@canonical.com>
Add trove classifier to have glance listed among the
other OpenStack-related projets on PyPI.
Change-Id: I2324430e54dc8057286c4e926a7f5d8691cc13fc
Signed-off-by: Doug Hellmann <doug.hellmann@dreamhost.com>
* Completely drop the legacy Glance client tool
* bin/glance is gone
* glance/client.py is gone
* Drop relevant tests
Implements bp separate-client
Change-Id: Ifcb0bd9bb537e0243aeb5daf466f46868d522986
Convert glance to use glance/openstack/common/setup.py
to write the changelog.
Change-Id: Ibadec15d7e530149cf62cd00d63c06bf63cf53bb
Signed-off-by: Chuck Short <chuck.short@canonical.com>
Bug: 976267
Now that git commits are gated by CLA, we shouldn't enforce
committers to add an entry in AUTHORS file. The AUTHORS file
should be generated automatically, based on git commits.
This commit fixes the problem.
* Authors
Remove this file. To be consistent with other projects,
the new file AUTHORS is generated automatically.
* .gitignore
Add AUTHORS file.
* glance/common/setup.py
generate_authors(): New method to create AUTHORS file. If
AUTHORS.in file exists, append it's content to AUTHORS file.
* setup.py
Import the new method.
local_sdist.run(): Generate AUTHORS file before creating the
package.
* MANIFEST.in
s/Authors/AUTHORS
* glance/tests/unit/test_misc.py
AuthorsTestCase: Remove this class that test an entry in
Authors file.
parse_mailmap(), str_dict_replace(): Remove these methods.
Change-Id: If83c3fe9b2142342ac11cc019bc24926f52ee753
Inline shared version of setup.py from openstack-common. This can
be removed once projects switch over to use the shared version.
Updates setup.py so that it sets install_requires and dependency_links.
Fixes issues where pip installing glance doesn't properly install
dependencies.
Fixes LP Bug #975483.
Change-Id: I5a10b311cfde2fda4d4dac341dd866f868b72d0d
* bin/glance-cache-queue-image duplicates functionality provided by
bin/ glance-cache-manage, and it is currently broken. Let's just remove it.
Change-Id: Ib18be2116055154047df6ca9b4c335323c8b2dde
The glance-upload tool targets a very specific use-case that is easily
handled by simply using the standard glance client. It's not worth keeping
around. This addresses bug 767344.
Change-Id: Ie7cf42ba517b744a2a440deb15336c0ee372b2e7
Fixes LP Bug#879136 - keyerror: 'image' when doing nova image-list
Fixes LP Bug#819936 - New image cache breaks Glance on Windows
This patch refactors the image cache further by adding an
adaptable driver layer to the cache. The existing filesystem-based
driver that depended on python-xattr and conditional fstab support
has been moved to /glance/image_cache/drivers/xattr.py, and a new
default driver is now based on SQLite and has no special requirements.
The image cache now contains a simple interface for pruning the
cache. Instead of the logic being contained in
/glance/image_cache/pruner.py, now the prune logic is self-contained
within the ImageCache.prune() method, with pruning calling the
simple well-defined driver methods of get_least_recently_accessed()
and get_cache_size().
Adds a functional test case for the caching middleware and adds
documentation on how to configure the image cache drivers.
TODO: cache-manage middleware...
TODO: cache management docs
Change-Id: Id7ae73549d6bb39222eb7ac0427b0083fd1af3ec
Added gettext.install to glance endpoints, setup.py, and run_tests.py. Wrapped all exceptions in common/exception.py with gettext.
Included fix for bug lp:823676.
Change-Id: Ied4381e1676227afea857acd01f4754e6a181106