193 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 f14a2c0e4d Revert "relock"
This reverts commit d89da7fe59.
2023-04-26 22:45:21 -04:00
Matt Davis d89da7fe59 relock 2023-04-26 22:42:45 -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 8c8d3d1f8e Improve pipenv update and add pipenv upgrade command (#5617)
* Split apart core using pycharm refactor move methods.

* move init to remove cicular import.

* Fix imports.

* Check in concept for pipenv upgrade command

* Fix upgrade command expectation on how it updates the lockfile.

* Actually write the result to the Pipfile, and fix secondary bug with items not being written to the Pipfile.

* Fix issue where package being upgraded already exists.

* Add news fragment.

* Integrate upgrade with a refactor of update.

* Handle cases where there is nothing to upgrade.

* Add lock-only option.
2023-03-01 10:26:36 +01:00
Bill Nottingham 424f7ead67 Require the actual 'beautifulsoup4' package, not the 'bs4' redirect. (#5620)
* Require the actual 'beautifulsoup4' package, not the 'bs4' redirect.

* Add changelog.
2023-02-28 07:43:25 +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 54b8f59ece Update Pipfile.lock 2022-12-28 16:36:46 +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
Christian Clauss 54e65d2551 pipenv lock 2022-11-05 22:22:38 +01:00
Matt Davis 2640dd8881 Relock to generate fresh hash. 2022-10-10 07:03:32 -04:00
Matt Davis 8886cb536f Run pipenv lock. 2022-09-20 14:53:31 -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
Matt Davis 04bee00cac relock pipenv 2022-09-04 00:26:59 +02:00
Matt Davis 1695bee789 remove this environmnet variable usage which has limitations on some systems. 2022-08-31 23:37:24 +02:00
Matt Davis a1a0fc0ea2 Update lock file. 2022-08-19 07:52:08 +02:00
Matt Davis 7284c76fa2 not sure why setuptools is getting added to the lockfile, but its problematic. 2022-08-07 22:53:26 +02:00
Matt Davis e2e75c2bee Updated Pipfile.lock. 2022-08-07 22:53:26 +02:00
otherjake badc1f4fa9 Support PIPENV_CUSTOM_VENV_NAME from environments
in the same way as other environment variables.
Update documentation to include the new variable.
2022-08-04 10:56:48 +02:00
Matt Davis c9d7ece781 Fix the breakage of atomicwrites version 1.4.0 no longer exists in pypi. 2022-07-08 19:13:32 -04:00
Matt Davis 57f38c582a Perform pipenv lock on windows for the platform markers there. 2022-06-29 22:31:41 -04:00
Oz N Tiram a589ec11a3 Bring importlib-metadata back ... to the correct place
So importlib-metadata is still required as a developer dependency.
Not as dependecy of Pipenv itself.
2022-06-28 23:44:18 +02:00
Oz N Tiram 2da0ec45ca Update Pipfile.lock after remove twine from setup.py 2022-06-28 23:14:50 +02:00
Oz N Tiram 550fbc71e7 Attempt to fix Pipfile.lock 2022-06-28 22:44:53 +02:00
Oz N Tiram 2c0620319e Add missing Pipefile.lock 2022-06-28 21:16:11 +02:00
Matt Davis f3166e673f check point progress on only bringing in pip==22.0.4 (#4966)
* vendor in pip==22.0.4

* updating vendor packaging version

* update pipdeptree to fix pipenv graph with new version of pip.

* Vendoring of pip-shims 0.7.0

* Vendoring of requirementslib 1.6.3

* Update pip index safety restrictions patch for pip==22.0.4

* Update patches

* exclude pyptoject.toml from black to see if that helps.

* Move this part of the hash collection back to the top (like prior implementation) because it affects the outcome of this test now in pip 22.0.4
2022-04-18 23:48:38 -04: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
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 4a244d2671 lock on windows python36 2021-11-17 14:41:00 +08:00
Frost Ming b90c469590 Update dependencies 2021-11-17 12:07:20 +08:00
Frost Ming 2da61b03e8 Release v2021.11.5 2021-11-05 18:32:08 +08:00
Frost Ming 88df069d68 fix tests for 3.9 and 3.10 2021-11-05 14:45:37 +08:00
Frost Ming c228dc4f13 Update dependencies 2021-11-05 12:41:35 +08:00
Frost Ming 49ddf78523 add dataclasses 2021-07-26 16:08:12 +08:00
Frost Ming f8baf147a7 add back compatiblility packages 2021-07-26 15:54:38 +08:00
Frost Ming b990f7fe59 Update dependencies 2021-07-26 15:41:19 +08:00
Frost Ming 83bb15ed18 Upgrade virtualenv version 2020-11-02 11:11:57 +08:00
Frost Ming 7fc8fc8398 Create news entry 2020-09-01 14:09:39 +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 291c3da4fa Update lockfile
Signed-off-by: Dan Ryan <dan.ryan@canonical.com>
2020-04-28 18:20:49 -04:00
Dan Ryan 60818d7b31 Automate release workflow
- Automatically release when tags are pushed to master
- Release automation will build wheel and sdist + upload to pypi
- Added test pypi as initial target
- Updated version update scripts to help with automatic version
  management

Signed-off-by: Dan Ryan <dan@danryan.co>
2020-04-24 18:01:13 -04:00
Dan Ryan 5ac6c16835 Update lockfile
Signed-off-by: Dan Ryan <dan.ryan@canonical.com>
2020-04-20 20:22:17 -04:00