Commit Graph

173 Commits

Author SHA1 Message Date
Damian Shaw 68529081c2
Enforce f-strings via Ruff (#12393) 2023-11-07 09:14:56 +00:00
Pradyun Gedam 5b1fa83ffc
Add Python 3.12 classifier (#12019) 2023-05-08 14:17:46 +05:30
Paul Moore c69ea02bff Add a version check to __pip-runner__.py 2022-08-03 10:14:16 +01:00
Paul Moore faf23e0444 Added Python 3.11 classifier 2022-07-21 15:40:36 +01:00
Hugo van Kemenade 0252c04a16 Drop support for soon-EOL Python 3.6 2021-11-08 12:02:16 +02:00
Niyas Sait cb66b03fe6
Upgrade distlib to 0.3.3 (#10502)
Co-authored-by: Niyas Sait <Niyas.Sait@arm.com>
2021-09-26 09:36:25 +01:00
Pradyun Gedam 4ee9a4af25
Add Python 3.10 support 2021-08-06 13:42:31 +01:00
Diego Ramirez 189f63ac12
Fix the annotations for `setup.py`
I have been converting type commentaries into annotations. For now, I'll fix some annotations from `setup.py`.
2021-06-23 12:20:20 -05:00
Pradyun Gedam cc89f8c04d
Drop keywords 2021-04-01 23:01:07 +01:00
Pradyun Gedam df0955d535
Blacken setup.py 2021-04-01 23:00:10 +01:00
Pradyun Gedam baaf66f70d
Merge pull request #9591 from hexagonrecursion/open
Replace `open(file, 'r')` with `open(file)`
2021-02-23 13:37:25 +00:00
Jon Dufresne 63ea2e8c08 Handle several mypy TODO comments and exceptions
Remove mypy exceptions that are straightforward to remove.
2021-02-22 16:53:54 -08:00
Andrey Bienkowski f13e10c915 Replace `open(file, 'r')` with `open(file)` 2021-02-10 13:20:11 +03:00
Tzu-ping Chung bbf8466088
Merge pull request #9279 from jdufresne/py.typed
Distribute and install py.typed to provide type information
2021-02-07 23:23:44 +08:00
Paul Moore 2a6f3c6c3a Fix syntax of classifiers 2021-01-23 14:40:44 +00:00
Jon Dufresne a1fff4a080 Replace io.open() and codecs.open() with builtin open()
In Python 3, these are functionally equivalent and share the same
feature set.
2020-12-25 15:53:08 -08:00
Pradyun Gedam 872fd658c4
Add `Python 3 :: Only` classifier 2020-12-19 19:55:03 +00:00
Pradyun Gedam aaae3c5c32
Update classifiers to drop Python 2.5,3.5 2020-12-18 18:02:42 +00:00
Pradyun Gedam 7c775c86df
Update python_requires in setup.py
I am really happy to make this nice and short.
2020-12-18 18:02:41 +00:00
Jon Dufresne 09e8fa96c7 Distribute and install py.typed to provide type information
Complies with PEP 561:
https://www.python.org/dev/peps/pep-0561/#packaging-type-information

By distributing and installing the py.typed file, mypy will use pip's
type information when imported into other projects. For example, the
pip-tools project can use pip's types and mypy to help verify
correctness.

mypy docs:
https://mypy.readthedocs.io/en/stable/installed_packages.html#making-pep-561-compatible-packages
2020-12-15 08:43:07 -08:00
Nguyễn Gia Phong da7569a440 Document and start testing Python 3.9 support
At first use it for GitHub Action for linting.
2020-10-12 17:37:23 +07:00
Avinash Karhana 135e9c1369 Fixed useless `else` cluase after loop inside `get_version` function in setup.py 2020-07-11 02:15:29 +05:30
Sumana Harihareswara cef69fef7f Updated author email in configuration and tests
Per https://groups.google.com/d/msg/pypa-dev/rUNsfIbruHM/LCEx-CB5AgAJ
the pypa-dev Google Group is now decommissioned.
Using distutils-sig instead as author/maintainer email.

Signed-off-by: Sumana Harihareswara <sh@changeset.nyc>
2020-05-28 16:51:02 -04:00
Ville Skyttä 4fa167e433 Add Changelog project URL
Background info at
  https://github.com/pypa/warehouse/pull/7882#issue-412444446
2020-05-06 08:25:35 +03:00
Noah Gorny 48dcfdf7d0 setup: Save vendor.txt as package data as well 2020-04-10 22:27:47 +03:00
Hugo van Kemenade 99f582185e
Add docs and repo to project_urls metadata 2020-01-10 23:33:05 +02:00
Chris Hunt 82a2651f93 Move pip._internal.main to cli submodule
Moving this out of the way gives us the flexibility to define wrappers
that will redirect requests to our old entrypoints to our new one.
2019-12-18 21:09:22 -05:00
Christopher Hunt 717f6c90ae
setup.py: Simplify version extraction (#6004)
* setup.py: Simplify version extraction

This removes `re` dependency

* Create 6004.removal

* Keep read() function according to review

* Rename news item to .trivial per review

* Remove extra escapes
2019-11-18 09:43:59 +08:00
Chris Hunt 2b6ed33f4c Remove extra escapes 2019-11-17 20:08:56 -05:00
Christopher Hunt fde92e72a4
Merge pull request #7219 from hugovk/add-3.8
Declare support for Python 3.8
2019-10-17 09:22:03 -04:00
robin elisha robinson 58dd0c3491 Change %s string formatting to str.format in setup.py (#7199) 2019-10-17 11:23:19 +02:00
Hugo f235e675c0 Declare support for Python 3.8 2019-10-15 18:40:43 +03:00
anatoly techtonik 0eff60851d
Keep read() function according to review 2019-10-07 21:01:20 +03:00
Maxim Kurnikov 3692097cca add per-file disallow_untyped_defs=False, and set it to True globally 2019-09-29 23:31:15 +02:00
Chris Hunt 09fd200c59 Move `pip._internal:main` to its own module
Moving content out of `__init__` is preferred in general because it
avoids conflicts with module names and unnecessary imports.
2019-09-21 15:27:39 -04:00
Hugo 2c1010ee96 Drop support for EOL Python 3.4 2019-07-07 11:45:16 +03:00
anatoly techtonik 105045b885
setup.py: Simplify version extraction
This removes `re` dependency
2018-11-11 22:52:16 +03:00
Pradyun Gedam b3473b329d
Merge branch 'master' into python-3.7 2018-07-24 23:08:09 +05:30
Pradyun Gedam 92cc86b5c9
Satisfy the linter 2018-07-05 11:27:11 +05:30
Pradyun Gedam 26d45a667d
Document and test support for Py3.7 2018-07-03 01:01:15 +05:30
Pradyun Gedam c2b1ce9fdc
Fix lint errors on newly covered files 2018-06-25 17:04:00 +05:30
Pradyun Gedam bb6df11eae
Revert "Make it black."
This reverts commit a86e149593.
2018-06-06 20:18:04 +05:30
Pradyun Gedam a86e149593
Make it black. 2018-05-31 11:44:15 +05:30
Pradyun Gedam 1f56ddd624
Update the setup.py file
- Remove outdated testing dependencies
- Update mailing list URL
- Group similar arguments together
- Use sys.version_info instead of sys.version for executable names
- Update keywords to mention wheel as well
2018-05-30 16:36:20 +05:30
Donald Stufft 90b3db476f Drop support for Python 3.3 2018-05-17 13:34:48 -04:00
Jon Dufresne feab014b13 Add missing trove classifiers for supported CPython implementations (#4804) 2017-10-22 23:55:05 +05:30
Jon Dufresne 9b42a2b7de Fix ResourceWarning generated by setup.py when warnings are enabled
Appears as:

  ResourceWarning: unclosed file ...

Always explicitly close open files. Use context manager to make this
easier.
2017-10-18 21:57:02 +02:00
Donald Stufft 95bcf8c5f6 Move all internal APIs to pip._internal 2017-08-31 14:53:00 -04:00
Bartek Ogryczak 8be075d120 fix for 'pretend' and 'scripttest>=1.3' requirements getting concatenated 2017-05-09 11:07:09 -07:00
Donald Stufft 55c43aa364 Removed setup.py test support 2017-03-30 16:52:49 -04:00