41 Commits

Author SHA1 Message Date
Mathieu Dupuy ad6cf4fb3d remove some more 3.7 leftovers 2023-10-20 09:47:55 +02:00
kalebmckale 5f220a0a36 Replace "python setup.py" builds with "python -m build"
Found left-over remnants of `setup.py` install and updated with current
build method using `build` package.
2023-09-01 08:57:17 -04:00
Christian Clauss 9525db4623 feat: Replace flake8 and isort with ruff 2023-04-13 15:58:49 +02:00
Oz Tiram 067ab1b06f Makefile: fix linting error 2022-11-03 22:42:44 +01:00
Oz Tiram b2d6267a71 Developers: add target in make file for running pypi-server 2022-11-02 13:12:30 +01:00
Oz Tiram 20e564fef2 Makefile: fixes for working on debian based system
Setup up PY variable because the `python` binary isn't found
in these systems. Instead there is only `python3`.

So, you can run there commands with:

$ make foo PY=python3
2022-11-01 20:30:31 +01:00
Oz N Tiram 581888e63f Tiny fixes to the Makefile
Properly write test_venv.
Fix missing option to test target.
2022-08-01 15:40:57 +02:00
Matt Davis cd5a9683be Rename notpip to pip. Vendor in pip-22.2.1 and latest requirementslib and vistir. 2022-07-28 11:58:10 +02:00
Oz N Tiram 37db0234df Add some documentation on how to run tests locally. 2022-07-27 06:52:30 +02:00
Oz N Tiram 1db434c136 Makefile: replace . with source 2022-06-28 21:03:48 +02:00
Oz N Tiram fec5d52674 Make RAMDISK size configurable 2022-06-28 20:55:29 +02:00
Oz N Tiram 114eb8f80a Make RAMDISK choosable for the developer.
Developers can now run:

make tests RAMDISK=1

To automagically setup a RAM disk and run the tests there.
2022-05-17 09:58:29 +02:00
Oz N Tiram 0163ada401 Makefile fixes: don't force recrating of virtualenv
Everytime that we run the tests we create a temporary virtualenv.
This is nice for idempotency, but really a killer for SSDs on developers
machines.
I would recommend also to document the ramdisks target, since running
the tests in the ramdisk should be faster.
2022-05-17 09:58:29 +02:00
Oz N Tiram 658d19ad1d Tiny fixes to the makefile
The built-in `virtualenv` module is called `venv`. Seems like this
Makefile hasn't been used in a while. I like dusting stuff ...
2022-05-17 09:58:29 +02:00
Oz N Tiram 891486e180 CI improvements (#5061)
* Add step to vendor dependencies in the Makefile

* Reorganize the order of jobs and dependencies

* Make all jobs run only after the lint stage
2022-04-20 08:17:01 -04:00
Oz N Tiram 853aaf8321 Really run the tests in parallel (#5058)
For those who will use the makefile, added a sensinble default.
2022-04-19 20:02:38 +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
Jeremy Fleischman f42fcaa2b8 Misc doc updates (mostly around running tests)
This adds and documents a workaround for
https://github.com/pypa/pipenv/issues/4909. It feels a bit weird to
pretend to be CI just to run the test suite, though. Maybe we can do
something about that later.

I ran into a lot of trouble trying to get the tests to run when working
on https://github.com/pypa/pipenv/pull/4908, and that was largely
because the instructions in this CONTRIBUTING.md file seem to have
rotted.

1. The bit about "can be run very simply" is bogus. It's
   unfortunately not that simple right now.

2. `make test` (the docker approach) fails for me with this error:

    ```bash
    $ make test
    docker-compose up
    [+] Running 1/0
     ⠿ Container pipenv-pipenv-tests-1  Recreated                                                                  0.1s
    Attaching to pipenv-pipenv-tests-1
    pipenv-pipenv-tests-1  | Collecting certifi
    pipenv-pipenv-tests-1  |   Downloading https://files.pythonhosted.org/packages/37/45/946c02767aabb873146011e665728b680884cd8fe70dde973c640e45b775/certifi-2021.10.8-py2.py3-none-any.whl (149kB)
    pipenv-pipenv-tests-1  | Installing collected packages: certifi
    pipenv-pipenv-tests-1  | Successfully installed certifi-2021.10.8
    pipenv-pipenv-tests-1  | Path: /root/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
    pipenv-pipenv-tests-1  | Installing Pipenv...
    pipenv-pipenv-tests-1  | Obtaining file:///pipenv
    pipenv-pipenv-tests-1  |     Complete output from command python setup.py egg_info:
    pipenv-pipenv-tests-1  |     Traceback (most recent call last):
    pipenv-pipenv-tests-1  |       File "<string>", line 1, in <module>
    pipenv-pipenv-tests-1  |       File "/pipenv/setup.py", line 55
    pipenv-pipenv-tests-1  |         print(f"\033[1m{s}\033[0m")
    pipenv-pipenv-tests-1  |                                  ^
    pipenv-pipenv-tests-1  |     SyntaxError: invalid syntax
    pipenv-pipenv-tests-1  |
    pipenv-pipenv-tests-1  |     ----------------------------------------
    pipenv-pipenv-tests-1  | Command "python setup.py egg_info" failed with error code 1 in /pipenv/
    pipenv-pipenv-tests-1 exited with code 1
    ```

    The docker image it relies upon
    (https://hub.docker.com/r/kennethreitz/pipenv-tests) hasn't been
    updated in 4 years, so I assume it's just not something people use
    anymore?

3. Relatedly, there was a `Dockerfile` at the root of this repo that
   appears to be unused. Let me know if it's used somewhere I'm not
   realizing, I can add it back!

4. https://kennethreitz.org/essays/be-cordial-or-be-on-your-way seems to
   be a broken link now. I found
   https://kennethreitz.org/essays/2013/01/27/be-cordial-or-be-on-your-way
   on Google.

5. `./run-tests.sh` doesn't work for me. It's failing for the same
   reason described by @ncoghlan here:
   https://github.com/pypa/pip/issues/7953#issuecomment-611928262. He
   said something about a `PIPENV_BOOTSTRAP` environment variable, but I
   can't find any information about that.
2022-01-07 00:01:33 -08:00
Dan Ryan e065e3c740 Update makefile with repatching scripts
Signed-off-by: Dan Ryan <dan.ryan@canonical.com>
2020-06-01 18:22:43 -04:00
Dan Ryan 8cc00622cc Update makefile to build docs
Signed-off-by: Dan Ryan <dan.ryan@canonical.com>
2020-05-20 15:58:49 -04:00
Dan Ryan 76eee5fff7 Update makefile rules and manifest
Signed-off-by: Dan Ryan <dan.ryan@canonical.com>
2020-04-28 23:13:40 -04:00
Dan Ryan d03d3ca0cb Overhaul makefile and allow universal wheels
- Add makefile tasks for building, checking builds, and simple version
  updates

Signed-off-by: Dan Ryan <dan.ryan@canonical.com>
2020-04-24 03:26:38 -04:00
Dan Ryan 83868c8f1a Cut over to devpi for tests and improve logging
- Verbose logs will now write gracefully to the terminal even while the
  spinner is running (i.e. during locking)
- This PR also cuts over to Devpi for a backing cache rather than a
  hacked httpbin instance
- Inclues a refactor of `pip_install` to deduplicate logic
- Attempts to switch back to relying on native editable installs in pip
  as the current implementation is broken on master (i.e. nothing is
  installed in the virtualenv)
- Fixes #3809

Signed-off-by: Dan Ryan <dan@danryan.co>
2019-06-25 01:26:49 -04:00
kennethreitz 6314586c9f black 2018-07-03 09:54:46 -04:00
kennethreitz c2495dcd99 update makefile
Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
2018-05-20 10:33:54 -04:00
kennethreitz 1f495db509 docker-compose based tests
Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
2018-05-20 09:54:27 -04:00
kennethreitz 62740e2d02 changes
Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
2018-03-06 12:32:13 -05:00
Jeff Tratner 40c7ce7dc1 install as editable with init 2018-02-17 09:19:28 -08:00
Derek Schaller 0676c65e06 add documentation to makefile 2018-02-17 08:47:10 -08:00
kennethreitz 281386b93b make man
Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
2017-09-24 20:05:31 -04:00
kennethreitz 66a0bc8558 makefile
Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
2017-09-23 10:43:08 -04:00
Nate Prewitt b72f2e56b0 We no longer need to lock for every build 2017-05-16 18:38:36 -06:00
Nate Prewitt d2bebd65c8 setup appveyor for pipenv 2017-04-25 14:19:59 -06:00
Nate Prewitt 32d9d88c05 updating run-tests in Makefile 2017-02-11 14:58:38 -07:00
Nate Prewitt 4d75bba0cb adding advanced doc section 2017-01-30 19:09:48 -07:00
kennethreitz 083872e9de fix tests 2017-01-23 14:31:52 -05:00
kennethreitz 40f7b479ad Update Makefile 2017-01-23 02:37:00 -05:00
Rene Dudfield 1cd72ed374 Using python -m pipenv inside the test. 2017-01-23 18:31:20 +11:00
kennethreitz 725f8567c9 fix travis tests 2017-01-22 14:07:41 -05:00
kennethreitz fd1ad2ca25 travis 2017-01-22 14:05:48 -05:00
kennethreitz f240862625 basics 2017-01-20 12:33:23 -05:00