Remove dev-requirements.txt

Looks like a long time ago we used this to list development versions
of OpenStack libraries which have not yet been released to PyPI. We
don't really need this now. Do we?

Change-Id: I5f8fce7068ee8dba5817afbdd658650b6f2b74dd
This commit is contained in:
Davanum Srinivas 2015-05-13 14:15:32 -04:00 committed by Robert Collins
parent a228e3b6af
commit 71c1018dc9
6 changed files with 5 additions and 42 deletions

View File

@ -1,10 +0,0 @@
#
# Use this file to list development versions of OpenStack libraries
# which have not yet been released to PyPI.
#
# By the time OpenStack projects are released, they should switch to
# versions of these libraries which have been released to PyPI.
#
# See also:
# https://wiki.openstack.org/wiki/Oslo#FAQs
#

View File

@ -1,12 +0,0 @@
#
# Use this file to list development versions of OpenStack libraries
# which have not yet been released to PyPI.
#
# By the time OpenStack projects are released, they should switch to
# versions of these libraries which have been released to PyPI.
#
# See also:
# https://wiki.openstack.org/wiki/Oslo#FAQs
#
-f http://tarballs.openstack.org/oslo.config/oslo.config-1.2.0a3.tar.gz#egg=oslo.config-1.2.0a3
oslo.config>=1.2.0a3

View File

@ -39,7 +39,6 @@ class UpdateTest(testtools.TestCase):
self.oslo_dir = os.path.join(self.dir, "project_with_oslo")
self.req_file = os.path.join(self.dir, "global-requirements.txt")
self.dev_req_file = os.path.join(self.dir, "dev-requirements.txt")
self.proj_file = os.path.join(self.project_dir, "requirements.txt")
self.oslo_file = os.path.join(self.oslo_dir, "requirements.txt")
self.bad_proj_file = os.path.join(self.bad_project_dir,
@ -58,7 +57,6 @@ class UpdateTest(testtools.TestCase):
os.mkdir(self.bad_project_dir)
shutil.copy("tests/files/gr-base.txt", self.req_file)
shutil.copy("tests/files/dev-req.txt", self.dev_req_file)
shutil.copy("tests/files/project-with-oslo-tar.txt", self.oslo_file)
shutil.copy("tests/files/project.txt", self.proj_file)
shutil.copy("tests/files/project-with-bad-requirement.txt",
@ -118,8 +116,6 @@ class UpdateTest(testtools.TestCase):
oslo_tar = ("-f http://tarballs.openstack.org/oslo.config/"
"oslo.config-1.2.0a3.tar.gz#egg=oslo.config-1.2.0a3")
self.assertIn(oslo_tar, reqs)
self.assertIn("oslo.config>=1.2.0a3", reqs)
self.assertNotIn("oslo.config>=1.1.0", reqs)
def test_test_project(self):
self._run_update()

View File

@ -42,7 +42,6 @@ class UpdateTestPbr(testtools.TestCase):
self.project_dir = os.path.join(self.dir, "project_pbr")
self.req_file = os.path.join(self.dir, "global-requirements.txt")
self.dev_req_file = os.path.join(self.dir, "dev-requirements.txt")
self.proj_file = os.path.join(self.project_dir, "requirements.txt")
self.proj_test_file = os.path.join(self.project_dir,
"test-requirements.txt")
@ -51,7 +50,6 @@ class UpdateTestPbr(testtools.TestCase):
os.mkdir(self.project_dir)
shutil.copy("tests/files/gr-base.txt", self.req_file)
shutil.copy("tests/files/dev-req.txt", self.dev_req_file)
shutil.copy("tests/files/project.txt", self.proj_file)
shutil.copy("tests/files/test-project.txt", self.proj_test_file)
shutil.copy("tests/files/setup.py", self.setup_file)

View File

@ -40,7 +40,6 @@ class UpdateTestWithSuffix(testtools.TestCase):
self.oslo_dir = os.path.join(self.dir, "project_with_oslo")
self.req_file = os.path.join(self.dir, "global-requirements.txt")
self.dev_req_file = os.path.join(self.dir, "dev-requirements.txt")
self.proj_file = os.path.join(self.project_dir, "requirements.txt")
self.oslo_file = os.path.join(self.oslo_dir, "requirements.txt")
self.proj_test_file = os.path.join(self.project_dir,
@ -53,7 +52,6 @@ class UpdateTestWithSuffix(testtools.TestCase):
os.mkdir(self.oslo_dir)
shutil.copy("tests/files/gr-base.txt", self.req_file)
shutil.copy("tests/files/dev-req.txt", self.dev_req_file)
shutil.copy("tests/files/project-with-oslo-tar.txt", self.oslo_file)
shutil.copy("tests/files/project.txt", self.proj_file)
shutil.copy("tests/files/test-project.txt", self.proj_test_file)
@ -88,8 +86,6 @@ class UpdateTestWithSuffix(testtools.TestCase):
oslo_tar = ("-f http://tarballs.openstack.org/oslo.config/"
"oslo.config-1.2.0a3.tar.gz#egg=oslo.config-1.2.0a3")
self.assertIn(oslo_tar, reqs)
self.assertIn("oslo.config>=1.2.0a3", reqs)
self.assertNotIn("oslo.config>=1.1.0", reqs)
def test_test_project(self):
reqs = _file_to_list("%s.%s" % (self.proj_test_file, 'global'))

View File

@ -137,8 +137,8 @@ def _parse_reqs(filename):
return reqs
def _sync_requirements_file(source_reqs, dev_reqs, dest_path,
suffix, softupdate, hacking):
def _sync_requirements_file(
source_reqs, dest_path, suffix, softupdate, hacking):
dest_reqs = _readlines(dest_path)
changes = []
# this is specifically for global-requirements gate jobs so we don't
@ -170,11 +170,7 @@ def _sync_requirements_file(source_reqs, dev_reqs, dest_path,
continue
if old_pip in source_reqs:
# allow it to be in dev-requirements
if ((old_pip in dev_reqs) and (
old_require == dev_reqs[old_pip])):
new_reqs.write("%s\n" % dev_reqs[old_pip])
elif _functionally_equal(old_require, source_reqs[old_pip]):
if _functionally_equal(old_require, source_reqs[old_pip]):
new_reqs.write(old_line)
else:
changes.append(
@ -213,7 +209,6 @@ def _copy_requires(suffix, softupdate, hacking, dest_dir):
"""Copy requirements files."""
source_reqs = _parse_reqs('global-requirements.txt')
dev_reqs = _parse_reqs('dev-requirements.txt')
target_files = [
'requirements.txt', 'tools/pip-requires',
@ -226,8 +221,8 @@ def _copy_requires(suffix, softupdate, hacking, dest_dir):
for dest in target_files:
dest_path = os.path.join(dest_dir, dest)
if os.path.exists(dest_path):
_sync_requirements_file(source_reqs, dev_reqs, dest_path,
suffix, softupdate, hacking)
_sync_requirements_file(
source_reqs, dest_path, suffix, softupdate, hacking)
def _write_setup_py(dest_path):