Skip to content

Commit f426f65

Browse files
committed
create requirements.txt file
1 parent b84a3c6 commit f426f65

File tree

4 files changed

+11
-11
lines changed

4 files changed

+11
-11
lines changed

.appveyor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ environment:
77
PYTHON: 'C:\Python27-x64\python.exe'
88

99
init:
10-
- cmd: '%PYTHON% -m pip install -U nose wheel pygit2==0.26.1'
10+
- cmd: '%PYTHON% -m pip install -r requirements.txt -U nose wheel'
1111

1212
build: off
1313

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ env: LIBGIT2=~/libgit2/_install/ LD_LIBRARY_PATH=~/libgit2/_install/lib
1212

1313
before_install: "./.travis.sh"
1414

15-
install: pip install .
15+
install: pip install -r requirements.txt .
1616

1717
before_script:
1818
- git config --global user.name "travis-test"

requirements.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
pygit2==0.26.3 # requires libgit2 0.26
2+
clint==0.5.1
3+
sh==1.12.14;sys_platform!='win32'
4+
pbs==0.11;sys_platform=='win32'

setup.py

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,6 @@
3636
sys.exit()
3737

3838

39-
reqs = ['pygit2==0.24.0', 'clint==0.3.6']
40-
41-
if sys.platform != 'win32':
42-
reqs.append('sh==1.11')
43-
else:
44-
reqs.append('pbs>=0.11')
45-
46-
4739
ld = """
4840
Gitless is an experimental version control system built on top of Git.
4941
Many people complain that Git is hard to use. We think the problem lies
@@ -67,7 +59,11 @@
6759
author_email='sperezde@csail.mit.edu',
6860
url='http://gitless.com',
6961
packages=['gitless', 'gitless.cli'],
70-
install_requires=reqs,
62+
install_requires=[
63+
'pygit2>=0.24.0',
64+
'clint>=0.3.6',
65+
'sh>=1.11' if sys.platform != 'win32' else 'pbs>=0.11'
66+
],
7167
license='MIT',
7268
classifiers=(
7369
'Development Status :: 2 - Pre-Alpha',

0 commit comments

Comments
 (0)