Dave Schaefer
1a8c9de922
Simplify sorting code
...
For https://github.com/pypa/pipenv/issues/5964
As suggested in https://github.com/pypa/pipenv/pull/5965
We don't need to cast to `dict` first, we can just sort.
2023-10-20 17:35:16 -06:00
Dave Schaefer
4802425c86
Add upgrade tests
2023-10-10 21:11:21 -06:00
Dave Schaefer
4a292501c8
Created sort category toml tables
...
This is not as clean as only working with dicts.
`p[category]`, the parsed pipfile category,
is already of type `tomlkit.items.Table` when it is passed to `_sort_category()`.
Currently this is only constructing the table right before data is sent to `write_tom()`.
2023-10-10 21:09:14 -06:00
Dave Schaefer
966afee813
Add tests for sorting str and dict values
...
Currently these fail. Will be fixed shortly in the next patch.
Pipfiles can contain different formats for package specifications.
Current default behaivour is to sort packages into groups - all string values will be sorted first, followed by all dictionary values. e.g.
```
aa = "*"
bb = "*"
cc = "*"
aaa = {version = "*"}
bbb = {version = "*"}
ccc = {version = "*"}
```
This will have to be fixed.
2023-10-10 21:03:25 -06:00
Dave Schaefer
6a5cd68a28
Move common sorting code to function
2023-10-10 20:54:50 -06:00
Dave Schaefer
4010f5d197
Mark install for other tests that install
...
Since the goal of the mark is to note which tests use it.
2023-10-08 10:52:05 -06:00
Dave Schaefer
4de4d20b74
mark uninstall tests with install
...
since the test calls `install` while running.
as discussed in https://github.com/pypa/pipenv/pull/5965
2023-10-08 10:48:26 -06:00
Dave Schaefer
f2b7b3a823
Add doc for new sorting directive
2023-10-08 10:39:33 -06:00
Dave Schaefer
773fcb519d
Add docs for [pipenv] directives
...
Based on notes from existing code and release docs
Note that `keep_outdated` has been discontinued,
so no docs added for it.
2023-10-08 10:32:24 -06:00
Dave Schaefer
7b33b04374
Implement pipfile sorting for uninstall
...
using sorting directive
2023-10-08 09:51:40 -06:00
Dave Schaefer
9bc4ffa506
Rename sorting directive
...
`sort_pipfile` , as requested in https://github.com/pypa/pipenv/pull/5965
2023-10-08 09:46:45 -06:00
Dave Schaefer
8e189035a3
Added new Pipenv option sort_alphabetical
...
Sort packages alphabetically inside each category.
Currently runs on `install`.
2023-10-07 11:01:53 -06:00
Dave Schaefer
e87e2ceb05
Sort packages alphabetically inside each category
...
When installing any package, sort all package names alphabetically inside the category, for easier reading.
Unsure if this is the best place or way to implement.
Small prototype to add to discussion in https://github.com/pypa/pipenv/issues/5964
Tests:
before patch:
```
AssertionError: assert ['atomicwrite...ama', 'build'] == ['atomicwrite...', 'colorama']
At index 1 diff: 'colorama' != 'build'
Full diff:
- ['atomicwrites', 'build', 'colorama']
? ---------
+ ['atomicwrites', 'colorama', 'build']
? +++++++++
```
after patch: pass.
2023-10-04 21:35:16 -06:00
github-actions[bot]
e45cc7a9ab
Bumped version.
...
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-10-03 13:24:09 +00:00
Matt Davis
71efe85d89
Release v2023.10.3
2023-10-03 09:21:33 -04:00
Matt Davis
a725b20e7a
Merge pull request #5957 from fmssn/enhancement-5939-fix-noisy-output-pipenv-check
...
set regular logging level to ERROR
2023-10-03 09:19:50 -04:00
Matt Davis
0d91ab1a5b
Merge pull request #5959 from pypa/dependabot/pip/urllib3-1.26.17
...
Bump urllib3 from 1.26.14 to 1.26.17
2023-10-03 09:17:30 -04:00
Matt Davis
ed78024dea
Merge pull request #5960 from pypa/dependabot/pip/docs/urllib3-1.26.17
...
Bump urllib3 from 1.26.14 to 1.26.17 in /docs
2023-10-03 09:17:19 -04:00
Matt Davis
58e013b711
Merge pull request #5958 from pypa/dependabot/pip/examples/urllib3-2.0.6
...
Bump urllib3 from 2.0.2 to 2.0.6 in /examples
2023-10-03 09:17:03 -04:00
dependabot[bot]
26055469a6
Bump urllib3 from 1.26.14 to 1.26.17 in /docs
...
Bumps [urllib3](https://github.com/urllib3/urllib3 ) from 1.26.14 to 1.26.17.
- [Release notes](https://github.com/urllib3/urllib3/releases )
- [Changelog](https://github.com/urllib3/urllib3/blob/main/CHANGES.rst )
- [Commits](https://github.com/urllib3/urllib3/compare/1.26.14...1.26.17 )
---
updated-dependencies:
- dependency-name: urllib3
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-10-03 03:00:03 +00:00
dependabot[bot]
495f11ba37
Bump urllib3 from 1.26.14 to 1.26.17
...
Bumps [urllib3](https://github.com/urllib3/urllib3 ) from 1.26.14 to 1.26.17.
- [Release notes](https://github.com/urllib3/urllib3/releases )
- [Changelog](https://github.com/urllib3/urllib3/blob/main/CHANGES.rst )
- [Commits](https://github.com/urllib3/urllib3/compare/1.26.14...1.26.17 )
---
updated-dependencies:
- dependency-name: urllib3
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-10-03 00:12:18 +00:00
dependabot[bot]
80548efda4
Bump urllib3 from 2.0.2 to 2.0.6 in /examples
...
Bumps [urllib3](https://github.com/urllib3/urllib3 ) from 2.0.2 to 2.0.6.
- [Release notes](https://github.com/urllib3/urllib3/releases )
- [Changelog](https://github.com/urllib3/urllib3/blob/main/CHANGES.rst )
- [Commits](https://github.com/urllib3/urllib3/compare/2.0.2...2.0.6 )
---
updated-dependencies:
- dependency-name: urllib3
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-10-02 23:36:57 +00:00
Fabian Meeßen
360100534f
change logging level based on verbosity arg
...
- add verbosity arg to check command, if verbosity if None (default),
logging level is set to warn
- create a build_options function in check.py for handling all arguments
used to build the options string for pipenv check. Was needed
because otherwise there were too many branches for the linter.
2023-10-02 17:56:34 +02:00
Fabian Meeßen
757fc9a702
set regular logging level to ERROR
2023-09-30 21:44:34 +02:00
Matt Davis
b6163a8bfd
Merge pull request #5951 from fmssn/main
...
Catch req.link = None
2023-09-28 23:05:25 -04:00
umarmnaq
f5032e9a3d
Update README.md ( #5946 )
2023-09-28 23:25:35 +02:00
Fabian Meeßen
85c1ba5234
Move check on specifier up
...
As we baseline return if link is None, the check against the specifier should be moved up.
2023-09-28 09:40:32 +02:00
Fabian Meeßen
2c498f7a78
Update environment.py
2023-09-27 13:43:06 +02:00
Fabian Meeßen
7e1b860806
Catch req.link = None
...
req.link is of type InstallRequirements which can be None. Return False (requirement not met) if this is the case.
2023-09-27 11:45:45 +02:00
Matt Davis
c08ecb2450
Merge pull request #5941 from yurishevtsov/update-certifi-in-examples
...
Bump certifi from 2023.5.7 to 2023.7.22 in /examples
2023-09-24 20:33:31 -04:00
Paulo Haddad Martim
2c4b039f73
Update some external links on the docs ( #5943 )
...
* Fix broken URLs on docs
* Adjust pip URL so header is highlighted
* Update URL for TOML specs
2023-09-24 09:33:52 +02:00
Yuri Shevtsov
e6862de912
Add news fragment
2023-09-19 20:50:38 -04:00
Yuri Shevtsov
ee0653986a
Bump certifi from 2023.5.7 to 2023.7.22
...
There is a securiy vulnerability for certifi versions <2023.7.22 (see
details here: https://nvd.nist.gov/vuln/detail/CVE-2023-37920 ). Even
though this version is only in /examples, it gets detected and flagged
by static analysis tools when scanning docker images that have the
latest version of pipenv installed.
2023-09-19 20:17:24 -04:00
Matt Davis
cdf41def30
Solving slashes or other less usual symbols in vcs refs were not being interpreted correctly. ( #5935 )
...
* Solving issue 5934 where slashes or other less usual symbols in vcs refs were not being interpreted correctly.
* add some new unit-style integration tests
2023-09-17 05:59:15 -04:00
Matt Davis
10be5b9c16
Include the package name in the information to the resolver ( #5930 )
...
* Include the package name in the information to the resolver
* Fix unit tests
* fix unit tests
2023-09-11 11:13:27 +02:00
github-actions[bot]
539f96dc47
Bumped version.
...
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-09-08 12:44:04 +00:00
Matt Davis
cdbb2c1f80
Release v2023.9.8
2023-09-08 08:41:52 -04:00
Matt Davis
d54f11e170
Pass editable for vcs when specified ( #5928 )
2023-09-08 08:41:15 -04:00
Matt Davis
9d470b4444
ignore_compatibility was supposed to default to False ( #5926 )
...
* fix resolver as ignore_compatibility was supposed to default to False, collect hashes already passes True.
2023-09-08 03:30:36 -04:00
Matt Davis
1e07814888
Merge branch 'main' of github.com:pypa/pipenv
2023-09-07 11:53:33 -04:00
Matt Davis
06151cfe1c
man pages wouldn't build which made release difficult
2023-09-07 11:53:27 -04:00
github-actions[bot]
11b50ab0f8
Bumped version.
...
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-09-07 14:57:35 +00:00
Matt Davis
778b8ed10f
Release v2023.9.7
2023-09-07 10:55:20 -04:00
Matt Davis
30e0fa7309
reference markdown format
2023-09-07 10:48:40 -04:00
Matt Davis
4a85f0b7b8
Fallback to default vcs ref and determine package name from the pip line where possible ( #5921 )
...
* More proactively determine package name from the pip line where possible, fallback to the file scanning logics.
2023-09-07 10:19:07 -04:00
Matt Davis
91743a6029
Better handling of local file install edge cases; handle local file extras ( #5919 )
...
* Better handling of local file install edge cases; handle local file extras
* more logical fix that handles more edge cases, including editable or not.
* Handle extras for file installs
2023-09-07 10:02:41 -04:00
Matt Davis
5df6d9c815
Drop 3.7 test runner ( #5922 )
...
* Drop 3.7 test runner and invoke 3.12
* Ok 3.12 on windows still hangs
2023-09-07 15:39:11 +02:00
Matt Davis
171b8fe61c
include markers when skipping lock ( #5920 )
...
* include markers from Pipfile when skipping lock
2023-09-06 19:12:47 -04:00
Matt Davis
072352a817
Handle case where setup name is referencing a variable that is a string ( #5905 )
...
* Handle case where setup name is referencing a variable that is a string
2023-09-06 19:09:36 -04:00
Thiago Gariani
9b2e0d41a8
5881-Full conversion from rst to md ( #5909 )
...
* add the files from rst -> md
2023-09-05 21:19:27 -04:00