Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
b5882001
Commit
b5882001
authored
Sep 22, 2020
by
Tim Rizzi
Committed by
Mark Florian
Sep 22, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update pypi install command to work with external dependencies
parent
3d94bb44
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
4 deletions
+9
-4
app/assets/javascripts/packages/details/store/getters.js
app/assets/javascripts/packages/details/store/getters.js
+1
-1
changelogs/unreleased/42916-pypi-install-command.yml
changelogs/unreleased/42916-pypi-install-command.yml
+5
-0
doc/user/packages/pypi_repository/index.md
doc/user/packages/pypi_repository/index.md
+2
-2
spec/frontend/packages/details/store/getters_spec.js
spec/frontend/packages/details/store/getters_spec.js
+1
-1
No files found.
app/assets/javascripts/packages/details/store/getters.js
View file @
b5882001
...
@@ -98,7 +98,7 @@ export const nugetSetupCommand = ({ nugetPath }) =>
...
@@ -98,7 +98,7 @@ export const nugetSetupCommand = ({ nugetPath }) =>
export
const
pypiPipCommand
=
({
pypiPath
,
packageEntity
})
=>
export
const
pypiPipCommand
=
({
pypiPath
,
packageEntity
})
=>
// eslint-disable-next-line @gitlab/require-i18n-strings
// eslint-disable-next-line @gitlab/require-i18n-strings
`pip install
${
packageEntity
.
name
}
--index-url
${
pypiPath
}
`
;
`pip install
${
packageEntity
.
name
}
--
extra-
index-url
${
pypiPath
}
`
;
export
const
pypiSetupCommand
=
({
pypiSetupPath
})
=>
`[gitlab]
export
const
pypiSetupCommand
=
({
pypiSetupPath
})
=>
`[gitlab]
repository =
${
pypiSetupPath
}
repository =
${
pypiSetupPath
}
...
...
changelogs/unreleased/42916-pypi-install-command.yml
0 → 100644
View file @
b5882001
---
title
:
Update pypi install command to work with external dependencies
merge_request
:
42916
author
:
type
:
changed
doc/user/packages/pypi_repository/index.md
View file @
b5882001
...
@@ -274,7 +274,7 @@ Where:
...
@@ -274,7 +274,7 @@ Where:
Install the latest version of a package using the following command:
Install the latest version of a package using the following command:
```
shell
```
shell
pip
install
--index-url
https://__token__:<personal_access_token>@gitlab.com/api/v4/projects/<project_id>/packages/pypi/simple
--no-deps
<package_name>
pip
install
--
extra-
index-url
https://__token__:<personal_access_token>@gitlab.com/api/v4/projects/<project_id>/packages/pypi/simple
--no-deps
<package_name>
```
```
Where:
Where:
...
@@ -287,7 +287,7 @@ If you were following the guide above and want to test installing the
...
@@ -287,7 +287,7 @@ If you were following the guide above and want to test installing the
`MyPyPiPackage`
package, you can run the following:
`MyPyPiPackage`
package, you can run the following:
```
shell
```
shell
pip
install
mypypipackage
--no-deps
--index-url
https://__token__:<personal_access_token>@gitlab.com/api/v4/projects/<your_project_id>/packages/pypi/simple
pip
install
mypypipackage
--no-deps
--
extra-
index-url
https://__token__:<personal_access_token>@gitlab.com/api/v4/projects/<your_project_id>/packages/pypi/simple
```
```
This should result in the following:
This should result in the following:
...
...
spec/frontend/packages/details/store/getters_spec.js
View file @
b5882001
...
@@ -69,7 +69,7 @@ describe('Getters PackageDetails Store', () => {
...
@@ -69,7 +69,7 @@ describe('Getters PackageDetails Store', () => {
const
nugetInstallationCommandStr
=
`nuget install
${
nugetPackage
.
name
}
-Source "GitLab"`
;
const
nugetInstallationCommandStr
=
`nuget install
${
nugetPackage
.
name
}
-Source "GitLab"`
;
const
nugetSetupCommandStr
=
`nuget source Add -Name "GitLab" -Source "
${
registryUrl
}
" -UserName <your_username> -Password <your_token>`
;
const
nugetSetupCommandStr
=
`nuget source Add -Name "GitLab" -Source "
${
registryUrl
}
" -UserName <your_username> -Password <your_token>`
;
const
pypiPipCommandStr
=
`pip install
${
pypiPackage
.
name
}
--index-url
${
registryUrl
}
`
;
const
pypiPipCommandStr
=
`pip install
${
pypiPackage
.
name
}
--
extra-
index-url
${
registryUrl
}
`
;
const
composerRegistryIncludeStr
=
'
{"type":"composer","url":"foo"}
'
;
const
composerRegistryIncludeStr
=
'
{"type":"composer","url":"foo"}
'
;
const
composerPackageIncludeStr
=
JSON
.
stringify
({
const
composerPackageIncludeStr
=
JSON
.
stringify
({
[
packageWithoutBuildInfo
.
name
]:
packageWithoutBuildInfo
.
version
,
[
packageWithoutBuildInfo
.
name
]:
packageWithoutBuildInfo
.
version
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment