Commit Graph

175 Commits

Author SHA1 Message Date
Ghanshyam Mann d7fe107e77 Cleanup the retired repo
This repo is not properly retired. Retired repos can only have two files:
- README.rst
- gitreview

To cleanup the retirement of this repo, keeping these two files only and
removing the other remaining files if there is any.
Detail: https://etherpad.opendev.org/p/tc-retirement-cleanup

Change-Id: I83df72500e3646d9a8edbb663246817759168d07
2020-08-05 20:00:03 -05:00
ChangBo Guo(gcb) f3453b829a Farewell pylockfile
We need remove all of the files except the README as required by:
https://docs.openstack.org/infra/manual/drivers.html#step-2-remove-project-content

Depends-On:I4501bc69b6d6b60894008a796d2888ac52bec252
Change-Id: I2cfeaa7fabd16c43e1301560bb2b71c8b98d49e2
2017-09-30 11:34:10 +08:00
Joshua Harlow 99870bfa02 Remove oslo.concurrency from replacement recommendation
Oslo libraries (especially those prefixed with oslo) are
really better suited for usage inside openstack, while libraries
from oslo without that prefix are better suited for all around
general usage so to avoid confusion take off the recommendation
to replace pylockfile with oslo.concurrency and just leave the better
matched fasteners as its replacement.

Also fixes a very tiny flake8 warning that was stopping the
pep8/flake8 job from working.

Change-Id: I1ec1cbfb4c7e371ed93627cffa2b32dbe0401069
2016-03-17 09:52:27 -07:00
janonymous 4977769caf py32/py33 are no longer supported by Infra's CI
Python 3.2/3.3 support would be dropped by
Infra team from mitaka,CI would no longer be testing it,
so projects should drop it also.

Change-Id: I3bdf7d052f744198e983ddedd6b5a41f24442925
2015-12-26 14:22:53 +05:30
Victor Stinner 4cc347c7d6 Rewrite README file
* reorder sections
* add missing links on fasteners, oslo.concurrency and openstack-dev
* use ".. warning::" warning for the deprecation
* use reStructured Text syntax for the Documentation, Source and Bugs
  links
* use ``code markup`` for code
* Replace installation command "python setup.py install" with
  "pip install lockfile": pip is now prefered in 2015 and the command
  gives the PyPI name of the project (which is not obvious, I would
  expect "pylockfile", not "lockfile")
* fix other reStructured Text syntax errors

Change-Id: I386b9aa31b3c79589fe4d93f722aeccb3a8577ef
2015-11-26 13:02:32 +01:00
Davanum Srinivas c8798cedfb Add warning to README.rst
Change-Id: I567f067949d0af1c462c074cc982ef7c943ef4cd
2015-11-25 09:25:43 -05:00
Jenkins 41573b5847 Merge "Remove Python 2.6 classifier" 2015-11-23 16:05:26 +00:00
Jenkins 02b89159f7 Merge "Remove two unused variables: fix flake8 F841 warn" 2015-11-17 13:03:39 +00:00
Jenkins f0ecbbcedb Merge "Fix flake8 warnings" 2015-11-17 13:03:23 +00:00
ChangBo Guo(gcb) e1b79eea55 Remove Python 2.6 classifier
We have decided to remove Python 2.6 support, this commit
removes Python 2.6 classifier before dropping any Python
2.6 support in code.

Change-Id: I7f655bcfb59ab7b32274e403837c88956a8a7e1b
2015-11-17 15:59:54 +08:00
Davanum Srinivas b777daa803 Remove python 2.6
* Remove support for python 2.6


Change-Id: I1a8d43811afabc4deb080722f2fa4c93d04dbf1e
2015-11-16 00:53:36 +00:00
Jenkins c7cebc26e3 Merge "Support universal wheels" 2015-10-23 17:14:02 +00:00
Victor Stinner b19202a8fb Remove two unused variables: fix flake8 F841 warn
Fix flake8 F841 warning and enable this warning in tox.ini.

Change-Id: Ia21f94bb5e264542a26d8b5327be1df35089b065
2015-10-22 12:55:35 +02:00
Victor Stinner 728a7d5569 Fix flake8 warnings
* Remove unused imports
* Add empty lines to respect the PEP8
* Sort imports
* Replace "timeout/10" with "timeout / 10" (add spaces)
* Fix style of comments
* Remove trailing spaces
* test_lockfile.py: add "# noqa" on the sqlite3 import, the import is
  used to decide if we skip the test or not
* tox.ini: enable all warnings except F841 (which will be fixed
  later)

Change-Id: I8218785f5cea23532357ec1756a3ab2255880d74
2015-10-22 12:55:15 +02:00
Thomas Grainger d5afa78919 PBR setup requirement only
Change-Id: Ifcf7227bc14e8d74e0cd8423c127464b8fd8064a
Closes-Bug: #1506679
2015-10-22 11:49:41 +01:00
Thomas Grainger c6f3da4433 Support universal wheels
Change-Id: I9d310b14ab501423207e790ab200318ba8937a3d
Closes-Bug: #1506677
2015-10-16 01:10:17 +01:00
Joshua Harlow 4a7a20d91c Add deprecated warnings to index.rst
Change-Id: Ic047537109923980f7b02290879063b1928635c1
2015-09-24 14:56:37 -07:00
Davanum Srinivas 6e9888d592 Fix PIDLockFile.acquire() may loop indefinitely
end_time takes timeout into account, so when time.time()
does hit the end_time, we should check if timeout was
set or not and throw either LockTimeout or AlreadyLocked.

Closes-Bug: #1472101
Change-Id: I1f369628e765a173ff0cafd01c31eca725b41cae
2015-09-07 19:35:34 -04:00
Davanum Srinivas 0c970a6564 Fix failure - from lockfile import *
Closes-Bug: #1491570
Change-Id: I5f065efae6faa88306455383de3c0515b64e5d44
2015-09-07 16:58:35 -04:00
Davanum Srinivas 333cbd39a5 lockfile.acquire doesn't accept a timeout of 0
Docs indicates that lock.acquire(timeout=0) would not block, but it
does (for linklockfile) because 0 is not truthy, and the line:

   timeout = timeout is not None and timeout or self.timeout

when timeout is 0 causes it to default to self.timeout, which by default is None.

So rewrite the condition better to take into account that timeout may
be set to 0.

Closes-Bug: #1468124
Closes-Bug: #1419127
Change-Id: Idf0d00977e79661e1eafd695d6e148e5f27e1840
2015-09-07 16:08:41 -04:00
Doug Hellmann c2a5048639 Update README format for our release script
The release notes script Oslo uses depends on being able to find
information in the README.rst file using a regex, so update the contents
of the file to match that pattern.

Change-Id: Idef33f0438263f7ca4d596b66a36bbe260b53dd4
2015-01-29 12:17:35 -05:00
Jenkins 777758cdf4 Merge "Begin moving some of the common code to a shared base" 2014-12-04 19:25:28 +00:00
Jenkins 7056a48a16 Merge "Fix Git URLs" 2014-11-14 12:59:00 +00:00
Joshua Harlow 90b5811156 Begin moving some of the common code to a shared base
To enable the addition of a new lockfile impl that
has some of the similar functionality as the existing impls
in pylockfile we need to break out what will be shared and
what will not be shared by the existing impls and the soon
to be added new impl.

Change-Id: I3fddfb05b78657ebed1449f0389004061e7e7082
2014-10-27 21:03:49 -07:00
Joshua Harlow 028164a0a4 Add pbr to dependency list
Currently pbr is breaking markup safe usage in docs, the
not so obvious way to fix this is to place pbr in the
explicit requirements for pylockfile.

Closes-Bug: #1384919

Change-Id: I0bba2f28956aeeb70b1e15f82d6bb67fdbd49118
2014-10-27 21:03:17 -07:00
Joshua Harlow af3b2bd120 The version of sphinx being brought in is broken
The global requirements repo has blocked 1.3b1, so
in order for pylockfile builds to stop failing so
should we. In the future we should investigate why
the requirements aren't syncing for this repo.

Change-Id: I8a999cc044d3687cc410b56b1db490e38b9b9a50
2014-10-17 23:46:14 +00:00
Julien Danjou 0bb83aa2e0 Fix Git URLs
Change-Id: I0d68ab9b2ed8136e83e0f53c5b9fb66bc1b9747e
2014-10-03 22:28:56 +02:00
Julien Danjou 99753659d9 Fix package name
Change-Id: I4f87ded18d0e89db5feab16d5fcbf16c70fcc598
Signed-off-by: Julien Danjou <julien@danjou.info>
2014-09-19 10:12:07 +02:00
Julien Danjou 196aaf25a9 Add missing cover env in tox
Change-Id: Ib7b62c062e45203378a9a30f6698480ba87f1106
2014-09-18 15:43:46 +02:00
Julien Danjou 265183145e Fix documentation bug report address
Change-Id: I28e119f8264c56b46e364836f2fcbf72e0f91a7f
2014-09-17 19:09:49 +02:00
Julien Danjou 75f9179de8 Add py34 in tox
Change-Id: I1f544d120cabd3cde47e2cf09b70928e2e675c05
2014-09-17 19:08:11 +02:00
Julien Danjou c99e82bb8c Remove old diff file
Change-Id: Id493c1c1a29ac592a6ab0c32feb1fc8d992b7ecd
2014-09-17 19:08:11 +02:00
Julien Danjou 5832d05c65 Add .gitreview, tox targets and use pbr
Change-Id: I9360c3ea4354f296039e11b09cb4e3b0771f87b4
2014-09-10 15:19:39 +02:00
Skip Montanaro fe31f0c68a Merge pull request #3 from cizra/issue-20
Bugfix: locking two different files in the same directory caused an error during the last unlocking
2014-05-02 09:00:28 -05:00
Skip Montanaro 58c3832d4b fix for timeout=0 2013-08-27 12:53:11 -05:00
Skip Montanaro c8e27c1915 remove 2.5, 3.1 and 3.4 from the list for the time being - may get added back later 2013-08-27 12:52:20 -05:00
Elmo Todurov e80eeddef1 Bugfix: locking two different files in the same directory caused an error during unlocking the last unlocking 2013-08-27 11:41:02 +03:00
Skip Montanaro 17095cf6ae typo 2013-08-26 20:15:37 -05:00
Skip Montanaro 45109c0430 ignore dist dir 2013-08-25 11:43:35 -05:00
Skip Montanaro 379fa0b613 update to python 3 imports 2013-02-24 14:10:48 -06:00
Skip Montanaro eeead7d35e python 3 tweaks 2013-02-24 14:10:18 -06:00
Skip Montanaro bf2627a5b9 python 3 tweaks 2013-02-24 14:10:04 -06:00
Skip Montanaro f04c8900ef ignore Emacs backups 2013-02-24 14:08:23 -06:00
Skip Montanaro 426db4cc43 note nose as a dependency 2013-02-24 14:06:42 -06:00
Skip Montanaro 944d0d1440 remove this test file - way incompatible with current code 2013-02-24 14:06:15 -06:00
Skip Montanaro e2b90ef300 stuff to ignore 2013-02-23 22:15:43 -06:00
Skip Montanaro 6c16b9d8c0 Add py33, py34, delete py24, py25. 2013-02-23 22:15:05 -06:00
Skip Montanaro 9f152edea6 Update source location. 2013-02-06 09:06:38 -06:00
skip.montanaro f5bae872d5 merge delete 2011-04-13 02:44:18 +00:00
skip.montanaro 1bd2847f2a merge delete 2011-04-13 02:43:42 +00:00