-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Join constraints and requested extras
Compare extras when checking if a requirement has already been specified, and take a union of the extras before installation. Co-Authored-By: Sachi King <[email protected]> Closes #3046, #3189
- Loading branch information
1 parent
e609509
commit 3dca30d
Showing
6 changed files
with
125 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/LocalExtras-0.0.2.egg-info |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import os | ||
from setuptools import setup, find_packages | ||
|
||
|
||
def path_to_url(path): | ||
""" | ||
Convert a path to URI. The path will be made absolute and | ||
will not have quoted path parts. | ||
""" | ||
path = os.path.normpath(os.path.abspath(path)) | ||
drive, path = os.path.splitdrive(path) | ||
filepath = path.split(os.path.sep) | ||
url = '/'.join(filepath) | ||
if drive: | ||
return 'file:///' + drive + url | ||
return 'file://' +url | ||
|
||
|
||
HERE = os.path.dirname(__file__) | ||
DEP_PATH = os.path.join(HERE, '..', '..', 'indexes', 'simple', 'simple') | ||
DEP_URL = path_to_url(DEP_PATH) | ||
|
||
setup( | ||
name='LocalExtras', | ||
version='0.0.2', | ||
packages=find_packages(), | ||
install_requires=['simple==1.0'], | ||
extras_require={ 'bar': ['simple==2.0'], 'baz': ['singlemodule'] }, | ||
dependency_links=[DEP_URL] | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters