154 Commits

Author SHA1 Message Date
Matt Davis 542554e4e8 upgrade sphinx due to release script bug 2024-01-21 22:03:01 -05:00
Matt Davis 0379507abb Update release script to enforce semver going forward in 2024 (#6052)
* Update release script to enforce semver going forward in 2024

* Update pipfile/lock for semver

* fix readme

* Update CI vendoring step for semver

* Dependeapot warning about version of pytest we are on

* remove options from help
2024-01-21 21:16:56 -05:00
Matt Davis 1b3b61eb21 Python 3.12 support (passing) (#5987)
* pipenv support for python 3.12
2023-10-24 17:26:12 -04:00
Matt Davis 7520f6983b Top level Pipfile sys_platform markers should be transitive (#5892)
* Top level Pipfile sys_platform markers should be transitive
* Add platform_machine top level specifier
* Handle case where markers is None
* more safety checks
* relock on python 3.7

---------

Co-authored-by: Christian Clauss <cclauss@me.com>
2023-09-01 05:15:36 -04:00
Christian Clauss 705919b40b Pipfile: Add build and twine (#5901)
* Pipfile: Add build and twine
2023-08-31 21:27:00 -04:00
Matt Davis 6ac1451ec8 stop using requirementslib models (#5793)
* Move away from requirementslib models

* Revise test since PEP-440 does not support wildcard versions but does support equivalent compatible release specifiers.

* simplify and remove dead code

* Ensure the os_name marker is AND with the other markers.

* Move what we still need from requirementslib into the pipenv utils and stop vendoring it.

* Remove requirementslib.

* force upgrade of virtualenv for python 3.12

* remove virtualenv-clone

* Update vcs specifiers documentation; infer name from specific pip line formats where possible.

* Provide helpful text and error for recently removed commands

* Set the right log levels and verbosity to show users the errors generated by pip resolver when supplying -v flag

* Fix the collection of all matching package hashes for non-pypi indexes.  Plus lesson from testing torch which contains local identifiers.
2023-08-19 16:36:52 -04:00
Matt Davis 89f554622a Revert "work towards fixing relative path . with extras"
This reverts commit 724364d241.
2023-04-26 22:43:54 -04:00
Matt Davis 724364d241 work towards fixing relative path . with extras 2023-04-26 22:39:39 -04:00
Matt Davis 761a03d088 Doc revisions1 (#5621)
* Begin reviewing the basics docs.

* Check in delta

* More doc revisions.

* Split apart basics docs.

* Refactor based on building docs

* add the files back as markdown.

* more conversions to markdown.

* more conversions to markdown.

* fix markdown formatting.

* convert index to markdown.

* More docs review

* More markdown and doc revisions.

* Fix docs.

* Update doc build requirements.

* fix lint

* Fix build with update/upgrade command.

* remove useless quickstart and update the commands section.

* Fix lint

* change ordering of table of contents.

* fix changelog duplicate headings.

* Start splitting advanced topics.

* minor nits

* Move some sections from advanced to shell.

* remove this section as its stale and kind of off topic.

* move scripts out into its own section.

* Wrap up revisions1

* fix lint

* address PR feedback and other nits.

* fix lint

* Try improving ordering of table of contents, fix issue with indexes.md file location.

* fix lint

* PR feedback.
2023-03-18 08:44:58 +01:00
Matt Davis 8877d7944f Pip 23.0.1 (#5614)
* Bump version of pip 23.0.1

* Invoke 2.0.0 for python 3.11 environments.

* Vendor in pip==23.0.1

* add news fragment.

* vendoring updates.

* Vendor in latest pythonfinder.

* Add exceptiongroup backport for pytest update.

* Fix lock file with python 3.11
2023-02-18 15:45:57 +01:00
Oz Tiram 5a4c3a461c Add colorama to Pipfile and lock
Mark as windows only.
2023-01-02 22:34:37 +01:00
Oz Tiram 0dc2275934 Add missing importlib-metadata for python3.7 2022-12-28 16:51:57 +01:00
Oz Tiram d8cc2ae466 Remove pytest-pypi from Pipfile 2022-12-28 15:48:23 +01:00
Matt Davis c58c371f6b Vendor new safety (#5217) (#5218)
* Vendor new safety (#5217)

* Closest to correct vendoring of ruamel.

* Fix lint

* New pipenv check with minimal output.

* Remove decode_for_output use in pipenv check functions.

* Use click.secho where is possible.

* Rerun vendoring to get the latest safety version.

* skip this test for now.

Co-authored-by: Yeison Vargas <yeisonvargasjf@gmail.com>
2022-11-22 21:14:24 -05:00
Matt Davis 80c3404970 Remove unused methods, rename method, and add method to get all package categories. 2022-09-11 02:36:07 -04:00
Matt Davis 9848862927 Convert test runner to use pypiserver package as standalone process (#5284)
* Check point progress on moving tests to pypiserver.

* Allow other indexes to mimic the pypi json API for package hashes.

* Fix these tests that run on lower python versions only.

* Try adding the pypiserver to the github actions to only run once.

* Expand the scope of fixtures for pypiserver.

* try to accomedate microsoft runner.

* Windows networking troubles.

* Remove running as a background job.

* Try to condtionally invoke different start pypi-server commands

* Try to condtionally invoke different start pypi-server commands

* Try to condtionally invoke different start pypi-server commands

* Try to condtionally invoke different start pypi-server commands

* Try to condtionally invoke different start pypi-server commands

* Try to condtionally invoke different start pypi-server commands

* Try to condtionally invoke different start pypi-server commands

* Try to introduce pypi as the root index because setuptools-scm is not in our pypi artifacts.

* see if the windows tests run faster (and the other tests) by supplying waitress.

* Only use waitress on windows because the others are fast on the default.  Fix requests pollution.

* Supply a suitable Pipfile instead for these two failing tests.

* More requests resolver cross test contamination cleanup.

* remove problematic tests because even on my version of python 3.8.12 this does not work due to AttributeError: 'HTMLParser' object has no attribute 'unescape'

* fix mirror install test.

* Fix Pipfile.

* Fix Pipfile for real

* Fix tests

* Cleanup test naming and more test enhancements.

* Save this optimization for a subsequent PR.

* Cleanup the TemporaryDirectory between tests.

* resolve merge conflict.

* Cleanup path initalization -- it hsould always be a TemporaryDirectory for tests that gets cleanedup.

* Cleanup path initalization -- it hsould always be a TemporaryDirectory for tests that gets cleanedup.

* tableflip on those requests tests that read the setup metadata in reqlib from other tests.

* Update developer documentation for running tests.

* add news fragment.

* Try gunicorn perfoormance for linux/mac

* Only use gunicorn on linux based on the results of last run.
2022-09-05 10:19:12 -04:00
Oz N Tiram 96908fda74 Remove importlib_metadata from Pipfile
This isn't explicitly used anywhere.
2022-06-28 21:04:49 +02:00
Matt Davis 6034244498 cleanup stale links (#5048)
* cleanup stale links

* only support one sidebar html file. Address PR feedback.  HTML5 attributes.

* Update sphinx dependenencies

* Corrected CLI patch for new version of sphinx-click.

* fix placement of search bar back to original spot.

* cleanup a sphinx build warning.
2022-04-18 06:59:16 +02:00
Matt Davis 5d845dc6b9 Added pytest-cov and addressed outdated references to pip-tools (#5038)
* Add pytest-cov; Remove code references to pip-tools and refactor method _build_package_list

* Regenerate lock file.

* Add back required typing-extensions, not sure how it got dropped from locking previously.

* Adopt the setup.cfg for coverage config.

* Actually pin to the version of click we have vendored in.

* Do not adopt coverage for CI since it slows everything down.  Fix py36 dependency pinning.

* Drop support for 3.6 in this PR.

* No need to exclude the vendor and patched directory from the coverage reprot.
2022-04-14 08:59:27 +02:00
ImreC 63ac0d03a9 Implements requirements command as per #4959 (#5013)
* Implements reqs command

* Add news document

* Process comments

* Rename newsfile

* Adds --dev-only and --hash args

* Linting fixes

Co-authored-by: Imre Persoonlijk <imre1@pop-os.localdomain>
2022-04-05 14:13:33 +02:00
Matt Davis 9a3b3ce706 Issue 4993 Add standard pre commit hooks and apply linting. (#4994)
* Add .pre-commit-config.yaml to the project and exclude tests (for now).  This does not include the MyPy linting that pip does but does include everything else.
2022-03-29 23:01:50 -04:00
Frost Ming b90c469590 Update dependencies 2021-11-17 12:07:20 +08:00
Frost Ming b990f7fe59 Update dependencies 2021-07-26 15:41:19 +08:00
Frost Ming 8c9039d0af Remove passa from vendors 2021-07-26 15:41:19 +08:00
Dan Ryan 2f460a9128 Add sphinx spellcheck addon (#4209)
Co-Authored-By: Frost Ming <mianghong@gmail.com>
Co-Authored-By: Sumana Harihareswara <sh@changeset.nyc>
2020-04-29 02:39:06 -04:00
Dan Ryan c23e57b482 Fix test and pipeline definitions
- Update extras name in pipelines
- fix windows virtualenv calls
- don't write debug info during virtualenv creation and just move on
- Generalize some pipelines
- Use quotes around evaluated statements in pipeline
- Fix envvar references
- Update vistir:
  - fix stream wrapper on windows
  - fix ICACLS permissions handler
  - fix path normalization function
- Update azure venv creation script
- Fix vendoring script

Signed-off-by: Dan Ryan <dan@danryan.co>
2019-05-18 23:22:53 -04:00
Dan Ryan 5310fbd77f update python version in pipfile
Signed-off-by: Dan Ryan <dan@danryan.co>
2019-05-15 20:43:03 -04:00
Dan Ryan 01b0496c4b Update path
Signed-off-by: Dan Ryan <dan@danryan.co>
2019-05-15 20:43:02 -04:00
Dan Ryan 4664925a64 Update lockfile
Signed-off-by: Dan Ryan <dan@danryan.co>
2019-05-15 20:42:48 -04:00
Dan Ryan e93ce98cb7 Update vendored deps
Signed-off-by: Dan Ryan <dan@danryan.co>
2019-05-15 20:41:05 -04:00
Dan Ryan 1207e3dc76 Update keep outdated implementation with new pipenv code
Signed-off-by: Dan Ryan <dan@danryan.co>
2019-02-26 01:06:44 -05:00
Dan Ryan fae1dbab64 Update setup.py to keep pytest pinned below 4.0
Signed-off-by: Dan Ryan <dan@danryan.co>
2019-02-18 12:58:44 -05:00
Dan Ryan 1fcafb8363 Re-integrate changes from keep_outdated
- Lost numerous changes in the rebase, this brings them back
- Should work for both sets of fixes now

Signed-off-by: Dan Ryan <dan@danryan.co>
2019-02-17 23:01:57 -05:00
Dan Ryan 1ed7ae9e68 Fix vcs locking, prefer pipfile entries once locked
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-11-24 19:28:50 -05:00
Dan Ryan 125c2cbab6 Update lockfile
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-08-28 12:12:49 -04:00
kennethreitz 7588ca31cf passing tests! 2018-07-03 23:23:20 -04:00
kennethreitz 6968976b53 jedi 2018-07-03 22:32:47 -04:00
Dan Ryan 1ed07ff0b9 Update pipfile and setup.py
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-06-28 15:40:43 -04:00
Dan Ryan e1a29337cd Update release logs, add release tasks
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-06-17 21:51:24 -04:00
Dan Ryan 9d9824c30d Update all vendored and patched libraries
- Update pipfile and lockfile
- Update licenses
- Bump pathlib2 to latest version
- Include scandir without compiled library dependency
- Update vendoring script to remote scandir binaries going forward
- Update pinned dependencies in vendor.txt

Signed-off-by: Dan Ryan <dan@danryan.co>
2018-06-17 14:16:12 -04:00
Tzu-ping Chung 6bfa525fd3 Add tests for prettytoml datetime 2018-04-16 15:30:00 +08:00
Dan Ryan c442d0a03a Update pipfile, lockfile, and fix markers
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-04-06 23:26:36 -04:00
Dan Ryan 61418fda20 Fix all tests and split out requirements refactor
- includes missing artifacts
- fixes cmdprse script
- Remove extraneous changes
- Fix tests
2018-04-06 23:25:37 -04:00
Dan Ryan 31301b1536 Fix deps and testing infrastructure
- Fix requirement parsing
- Add appveyor config
- cutover from pathlib to pathlib2 if needed
- Pin pathlib2==2.1.0 to avoid scandir
- Windows script runner fix
- Backport `shlex.quote()` for use in `pipenv run`
- Update tests and appveyor

Signed-off-by: Dan Ryan <dan@danryan.co>
2018-04-06 23:19:32 -04:00
kennethreitz c4ccc2292c allow_prereleases
Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
2018-03-19 06:54:02 -04:00
kennethreitz 1ea3a3f7cb pipfile
Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
2018-03-19 06:16:27 -04:00
kennethreitz 3ccb899a57 3.6
Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
2018-03-19 06:16:16 -04:00
Jeff Tratner 53911daa18 Make white only for python 3 2018-03-16 14:07:55 -07:00
kennethreitz 71ad64cc6d white 2018-03-15 07:04:06 -04:00
kennethreitz 312e2f6db2 pipfile/pipfile.lock
Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
2018-03-15 06:34:36 -04:00