Skip to content
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

Support git repos #2

Open
wants to merge 6 commits into
base: support-latest-pipenv
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/integrate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
run: python -m pip install --force setuptools wheel

- name: Install pipenv / poetry
run: python -m pip install pipenv==2021.11.5 poetry
run: python -m pip install pipenv==2022.9.24 poetry

- name: Install serverless
run: npm install -g serverless@2
Expand Down Expand Up @@ -93,7 +93,7 @@ jobs:
run: python -m pip install --force setuptools wheel

- name: Install pipenv / poetry
run: python -m pip install pipenv==2021.11.5 poetry
run: python -m pip install pipenv==2022.9.24 poetry

- name: Install serverless
run: npm install -g serverless@2
Expand Down Expand Up @@ -141,7 +141,7 @@ jobs:
run: python -m pip install --force setuptools wheel

- name: Install pipenv / poetry
run: python -m pip install pipenv==2021.11.5 poetry
run: python -m pip install pipenv==2022.9.24 poetry

- name: Install serverless
run: npm install -g serverless@2
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ jobs:
run: python -m pip install --force setuptools wheel

- name: Install pipenv / poetry
run: python -m pip install pipenv==2021.11.5 poetry
run: python -m pip install pipenv==2022.9.24 poetry

- name: Install serverless
run: npm install -g serverless@2
Expand Down Expand Up @@ -122,7 +122,7 @@ jobs:
run: python -m pip install --force setuptools wheel

- name: Install pipenv / poetry
run: python -m pip install pipenv==2021.11.5 poetry
run: python -m pip install pipenv==2022.9.24 poetry

- name: Install serverless
run: npm install -g serverless@2
Expand Down Expand Up @@ -172,7 +172,7 @@ jobs:
run: python -m pip install --force setuptools wheel

- name: Install pipenv / poetry
run: python -m pip install pipenv==2021.11.5 poetry
run: python -m pip install pipenv==2022.9.24 poetry

- name: Install serverless
run: npm install -g serverless@2
Expand Down
10 changes: 3 additions & 7 deletions lib/pipenv.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,9 @@ async function pipfileToRequirements() {
try {
let res;
try {
res = await spawn(
'pipenv',
['lock', '--requirements', '--keep-outdated'],
{
cwd: this.servicePath,
}
);
res = await spawn('pipenv', ['requirements'], {
cwd: this.servicePath,
});
} catch (e) {
if (
e.stderrBuffer &&
Expand Down
3 changes: 2 additions & 1 deletion tests/pipenv/Pipfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
[[source]]
url = "https://pypi.python.org/simple"
url = "https://pypi.org/simple"
verify_ssl = true
name = "pypi"

[packages]
Flask = "==2.0.3"
Expand Down
281 changes: 281 additions & 0 deletions tests/pipenv/Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.