Commit Graph

464 Commits

Author SHA1 Message Date
Dan Ryan 9bcd668dac Slight tweak to api, add test, add news
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-06-25 02:43:03 -04:00
Tzu-ping Chung eafc97590d Fix docstrings that occurs in wrong places. 2018-06-25 00:55:42 +08:00
Tzu-ping Chung d382842dd8 Remove unused utility function
All get_converted_relative_path usages are now pushed into
requirementslib.
2018-06-24 15:55:06 +08:00
Dan Ryan 3bfab233f5 Unicode file data
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-06-24 00:10:36 -04:00
Dan Ryan 30b6425d57 Updated requirementslib and tests
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-06-23 23:35:35 -04:00
Dan Ryan aa82db02f7 Update test with comments + minor tweak
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-06-23 20:32:20 -04:00
Dan Ryan cf8fcfd8c6 Merge branch 'tests-16.0' of github.com:pypa/pipenv into tests-16.0 2018-06-23 20:28:36 -04:00
Dan Ryan ef913b2148 Tests for #2273 and #2301
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-06-23 20:27:08 -04:00
Erin O'Connell d6adc1efa5 test skipping requirements if there is a lockfile or package name is specified 2018-06-23 18:15:03 -06:00
Dan Ryan b2f6932a13 Add tests for #2309
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-06-23 19:57:06 -04:00
Dan Ryan 6b8649f575 Add test for #1861
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-06-23 19:46:51 -04:00
Dan Ryan dca353ffdb add test for #2192
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-06-23 19:18:18 -04:00
Dan Ryan 6a4831bccd Fix broken test
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-06-23 12:19:32 -04:00
Dan Ryan 5d76b404f4 Add some tests
- the rest of the to-do items are at https://github.com/pypa/pipenv/projects/2
- We just need to review the items in the 'needs tests' column to ensure
  that they either have tests, or don't need to have tests
- If they need tests, and they don't yet have tests, we need to write
  them and make sure they pass
- Then we can release. No more features/bugfixes, this is now how it's
  going out.

Signed-off-by: Dan Ryan <dan@danryan.co>
2018-06-23 03:01:20 -04:00
Dan Ryan 74430df2f3 Add tests to cover #2260
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-06-23 01:43:12 -04:00
Dan Ryan b74c6586fa Minor control flow and test logic updates
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-06-22 15:36:39 -04:00
Dan Ryan 6343acb4cc Use the real marker parser -- confirmed working
Signed-off-by: Dan Ryan <dan@danryan.co>

Typo fix

Signed-off-by: Dan Ryan <dan@danryan.co>

Move away from structlog for testing

Signed-off-by: Dan Ryan <dan@danryan.co>

Remove em-dash and ellipsis characters

- Replace with dashes and dots

Signed-off-by: Dan Ryan <dan@danryan.co>
2018-06-22 15:36:39 -04:00
Dan Ryan efe39654bb Update integration test
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-06-22 15:36:39 -04:00
Dan Ryan 6c62d94c3b Fix pip cahce dir argument
Signed-off-by: Dan Ryan <dan@danryan.co>

Add snaptime sdist

Signed-off-by: Dan Ryan <dan@danryan.co>

Update core.py encoding and add gitattributes

Signed-off-by: Dan Ryan <dan@danryan.co>

Fix deploy test

Signed-off-by: Dan Ryan <dan@danryan.co>

Add pytest things

Signed-off-by: Dan Ryan <dan@danryan.co>

Add py sdist

Signed-off-by: Dan Ryan <dan@danryan.co>
2018-06-22 15:36:39 -04:00
Dan Ryan 32a89d9342 explicitly turn possible InlineTableElement to dict
Signed-off-by: Dan Ryan <dan@danryan.co>

Add updated regex dependency

Signed-off-by: Dan Ryan <dan@danryan.co>
2018-06-22 15:36:39 -04:00
Dan Ryan c31a311dc7 Minor code cleanup
Signed-off-by: Dan Ryan <dan@danryan.co>

Add pytz and certifi updates

Signed-off-by: Dan Ryan <dan@danryan.co>

Fix nondeterministic resolution bug

- Update dependencies
- Fix some issues with test logic
- Update piptools patch

Signed-off-by: Dan Ryan <dan@danryan.co>

Update more packages

Signed-off-by: Dan Ryan <dan@danryan.co>

Update tests and utils

Signed-off-by: Dan Ryan <dan@danryan.co>

Still need to tackle last few failures

- this will seriously help with resolution issues

Add alembic new version

Signed-off-by: Dan Ryan <dan@danryan.co>
2018-06-22 15:36:39 -04:00
Dan Ryan 93aceb1cc5 Add pytz-2018 wheel
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-06-22 15:36:39 -04:00
Dan Ryan c76b95db34 Add test for install -e
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-06-22 02:05:44 -04:00
Dan Ryan 1c04960653 Add test to verify pipenv update
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-06-18 11:28:17 -04:00
Dan Ryan 1c054c3701 Fix VCRPy test
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-06-14 03:58:49 -04:00
Dan Ryan 7bfa60e90b Add test
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-06-14 03:58:49 -04:00
Dan Ryan a5c876b931 Add ref to vcs install
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-06-14 03:58:49 -04:00
Dan Ryan 6a0a34b415 Fix uri conversion
Signed-off-by: Dan Ryan <dan.ryan@xyleminc.com>
2018-06-13 19:41:15 -04:00
Dan Ryan bca3e1fa61 fix tests
Signed-off-by: Dan Ryan <dan.ryan@xyleminc.com>
2018-06-13 19:34:41 -04:00
Dan Ryan 18f6e94602 Fix iterator that i broke for reasons
Signed-off-by: Dan Ryan <dan.ryan@xyleminc.com>
2018-06-13 19:26:16 -04:00
Dan Ryan 470abeffde Update resolve() calls and requirementslib
- Accommodate ramdisks

Signed-off-by: Dan Ryan <dan@danryan.co>
2018-06-13 18:59:43 -04:00
Dan Ryan ca05f2f3d6 Test fix and merge
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-06-13 11:49:17 -04:00
Dan Ryan 15f091783b Fix VCS test
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-06-12 20:33:25 -04:00
Tzu-ping Chung e5ec2ed4fa More tests 2018-06-13 01:06:07 +08:00
Tzu-ping Chung 45004214bf Add failing test cases 2018-06-13 00:34:41 +08:00
Dan Ryan 9e04a85b8c I have fixed the test.
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-06-12 03:38:26 -04:00
Dan Ryan bc8639b181 Add ruamel.ordereddict wheel for cp27mu
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-06-11 00:31:49 -04:00
Jacob Henner af91eb68bb Add support for PyPI mirrors
Adds support for the --pypi-mirror command line parameter and the
PIPENV_PYPI_MIRROR environment variable for most pipenv operations.
This permits pipenv to function without pypi.org, which is necessary for
users:

    1. behind restrictive networks
    2. facing strict artifact sourcing policies
    3. experiencing poor performance connecting to pypi.org
    4. who've configured a local cache for performance reasons

When specified, the value of this parameter replaces all instances of
pypi.org and pypi.python.org within pipenv operations without modifying
or requring the modification of Pipfiles.

- Resolves #2075
2018-06-07 18:24:18 -04:00
Tzu-ping Chung d48e97e1a8 Respect PATHEXT when looking for Win executable
... as idiomatic in Windows programming.
2018-06-03 15:51:37 +08:00
Andrew Haigh eb839e52b6 Add test of behaviour in issue #2229
requirements.txt files (and by extension pipfreeze) can contain comment
lines, but the stdout of pip freeze is used in a number of places with
the assumption that every line contains a dependency declaration. This
change adds an integration test that could trigger one of these cases
that was the cause of the behaviour seen in issue #2229.
2018-06-01 07:24:34 +08:00
Dan Ryan 60e108cb17 Move requirements tests to requirement library
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-05-23 22:03:31 -04:00
Dan Ryan b2085cb058 Mark pipenv check as flaky
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-05-23 21:59:50 -04:00
Dan Ryan eb4423b208 Fix test references to old requirements parser
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-05-23 21:59:50 -04:00
Dan Ryan 3167285286 Update tests for new requirements format
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-05-23 21:59:50 -04:00
Dan Ryan 708a0576f6 Fix test import
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-05-23 18:46:35 -04:00
Dan Ryan 4a2b01e505 Merge branch 'master' into update-piptools 2018-05-23 15:33:53 -04:00
kennethreitz 0bc1dde344 Merge branch 'master' into bugfix/vcs-updates 2018-05-23 15:10:52 -04:00
Jeremy Fleischman 0567c10d68 When formatting a requirement, only lowercase its name.
This fixes https://github.com/pypa/pipenv/issues/2113.

This bug was introduced in
<https://github.com/jazzband/pip-tools/pull/452> as a band-aid fix to
<https://github.com/jazzband/pip-tools/issues/431>. Pipenv then copied
that code in <https://github.com/pypa/pipenv/commit/2553ebcbf7e2574c997a9164234e0adf077ffcac#diff-b56b95ccea8595a0f6f24ea753842976>, and inherited this latent bug.

Maybe the right fix is for pypa/packaging to lowercase the name? There's
a comment here
<https://github.com/pypa/packaging/blob/16.8/packaging/requirements.py#L86>
about normalizing the requirement's name, which might be what this is
referring to.

To test this, I invented a new, very simple python package called
`depends-on-marked-package`. The setup.py for this package is just:

```python
import setuptools

setuptools.setup(
    name="depends-on-marked-package",
    version="0.0.1",
    packages=setuptools.find_packages(),
    install_requires=['pytz; platform_python_implementation=="CPython"'],
)
```

This is a simplified version of gevent's setup.py's install_requires upon greenlet.
2018-05-22 23:08:20 -07:00
Dan Ryan 16d6fe13f6 Merge branch 'master' into update-piptools 2018-05-22 22:35:15 -04:00
Dan Ryan fa28edf92c Merge branch 'master' into bugfix/vcs-updates 2018-05-22 22:34:19 -04:00