Skip to content

Use flock() for file locking #513

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 11 commits into from
Oct 9, 2016
Prev Previous commit
Next Next commit
Updated setup to include Windows requirements
  • Loading branch information
expobrain committed Oct 7, 2016
commit c0b45fa508a8826a70a0593f3808c8c053b91787
7 changes: 7 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
import logging
import os
import sys
import platform
from os import path

with open(path.join(path.dirname(__file__), 'VERSION')) as v:
Expand All @@ -21,6 +22,10 @@
with open('requirements.txt') as reqs_file:
requirements = reqs_file.read().splitlines()

if platform.system() == 'Windows':
with open('win32-requirements.txt') as reqs_file:
requirements += reqs_file.read().splitlines()


class build_py(_build_py):

Expand Down Expand Up @@ -65,6 +70,8 @@ def _stamp_version(filename):
print("WARNING: Couldn't find version line in file %s" % filename, file=sys.stderr)

install_requires = ['gitdb >= 0.6.4']
if platform.system() == 'Windows':
install_requires.append("pypiwin32 >= 219")
extras_require = {
':python_version == "2.6"': ['ordereddict'],
}
Expand Down
2 changes: 2 additions & 0 deletions win32-requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
-r requirements.txt
pypiwin32 >= 219