Commit Graph

31 Commits

Author SHA1 Message Date
Michael Hirsch 99713ae257
meta: add python 3.11 classifer 2022-12-21 15:04:18 -05:00
Eli Schwartz 7ceec99c55 packaging: make sure pyinstaller sees our distributed data files
Running pyinstaller to create a bundle, and using the resulting
`pyinst-tmp/meson/meson setup ...` with the cmake module revealed that
no data files were being bundled, unlike what we did for setup.cfg. Fix
this oversight.

Fixes #10163
2022-04-09 14:20:31 +03:00
Henry Schreiner bae58e6e49 setup.cfg: update classifier, drop deprecated
This adds 3.10 (didn't check to see if it was tested on 3.10, that should be done, but I'm using it on 3.10).

setup_requires is deprecated and should be producing warnings on modern setuptools, and never worked for setuptools anyway - setuptools can't update itself, and setuptools is what is reading this anyway!
2022-02-09 07:10:00 -05:00
Henry Schreiner e1bb424d25 pypi: include a ninja extra
This will really help with pipx run, as `pipx run meson[ninja]` will now work on any system with pipx 0.17 or newer, no dependencies required. This now includes GitHub Actions, which just updated to pipx 1.0.0. Pipx run lets you use recent (always <1 week old) versions of anything on PyPI.
2022-02-09 07:02:02 -05:00
Eli Schwartz 140097faf0
port from embedded data to importlib.resources 2022-01-10 18:36:57 -05:00
Eli Schwartz ad525dcce4
bump minimum required version of python to 3.7
Comment out the pending deprecation notice. It cannot be reached
anymore, but is still useful for the next time we do a version bump.
2022-01-10 18:36:56 -05:00
Eli Schwartz 67e841720c
make sure the devenv powershell script is actually distributed
It's not a python file, so it will never end up in the installed package
unless we mark it as package_data. This causes problems for people using
non-git checkouts.

Fixes #9435
Closes #9443
2021-10-25 20:22:45 -04:00
Dylan Baker f8be4f8fc7 adding a _typing module
this is a place that *must* only be imported inside a if
typing.TYPE_CHECKING block. It is a mixture of smoothing over thinigs
that moved from typing_extensions to typing in later python versions and
useful but typing only code.

This makes typing_extensions required for python versions older than
3.8 *when running mypy*. typing_extensions should *only* be imported
inside an `if typing.TYPE_CHECKING` block (include the new _typing.py
module) to ensure that it doesn't become a runtime dependency
2021-06-02 15:53:17 -07:00
Michael Hirsch c8b514897a
setup.cfg: update version metadata [skip ci]
Co-authored-by: Michael Hirsch <scivision@users.noreply.github.com>
2021-05-13 10:38:48 +03:00
Eli Schwartz d4bdd8318b
setuptools: move stuff to declarative cfg if possible [skip ci]
We're down to just declaring the data files in python now.

setup.cfg can, uniquely, retrieve version info by trying to parse the
AST for simple assignments (which we use) instead of importing the
entire module.
2021-03-10 01:43:21 +02:00
Dylan Baker 5c602b5457 setup.cfg: fix python requires to be 3.6.0 2020-11-20 15:24:51 -08:00
Dylan Baker fe24292ae3 setup.cfg: Add pytest discovery args
We have a single giant file for our tests, but a number of files that
match pytest's default discovery globs. To fix that, let's tell pytest
what to do.

This means you can just `pytest` and get the right results. It also
helps IDE's like vscode correctly identify tests.
2020-10-30 11:41:29 +02:00
Dylan Baker cd79ec2839 setup.cfg: Mark setuptools as required
It's required, lets just document it as such.
2020-04-21 00:40:19 +03:00
Daniel Mensinger d0dd21858c pytest: Fix test warnings 2019-12-05 11:08:12 -05:00
Michael Hirsch, Ph.D d218d52367 Ensure setuptools via PEP508/518 pyproject.toml 2019-11-02 16:17:13 +02:00
Michael Hirsch, Ph.D 8c6e98c847 Remove unnecessary setup.cfg lines that confound offline use 2019-07-11 22:37:25 +03:00
Michael Hirsch, Ph.D 40bf83fd46 minimum python 3.5.2 2019-07-11 22:37:25 +03:00
Michael Hirsch, Ph.D 4b9625ac06 ENH: metadata PEP390 setup.cfg
https for Meson docs url

Co-Authored-By: Elliott Sales de Andrade <quantum.analyst@gmail.com>
2019-07-11 22:37:25 +03:00
Daniel Mensinger e75211d321
Fix builtin variable names 2019-04-29 12:17:40 +02:00
Xavier Claessens 0e7513e734 flake8: ignore W504: line break after binary operator
It wasn't an error before, and plenty of files does that.
2018-12-02 08:37:32 -05:00
Nirbheek Chauhan cc58fdac33 setup.cfg: Don't warn about commented code 2018-07-02 19:52:53 +05:30
Xavier Claessens aa879b7f0c Fix issues found by flake8 2018-06-06 20:02:37 +00:00
Luke Shumaker 68d4c1e559 flake8: disable E731: do not assign a lambda expression, use a def
It has too many false positives.  It was complaining about things like

    if this:
         fn = some_func
    else:
         fn = lambda x: ...

Where obviously, "fn" can't be a def, and it would be silly to introduce
some other name to use as the def, just to assign it to fn.
2017-09-21 13:41:09 -04:00
Nirbheek Chauhan 57ec097b5f vs: Use CompilerArgs() for compile and link args
At the same time also fix the order in which they are added. They now
match the order used in the Ninja backend.
2017-01-28 05:14:12 +05:30
Nirbheek Chauhan 991ace04af Disable E266 in flake8
Don't tell me how to format my comments!
2017-01-28 05:10:01 +05:30
Mike Sinkovsky eea0670872 style: disable flake8 warnings E241, E251, E305, E401 2017-01-11 12:33:27 -05:00
Igor Gnatenko 8f5b67434d setup.cfg: fix syntax 2016-12-29 16:14:55 +02:00
Jussi Pakkanen c1e2f58443 Just say no. 2016-12-28 23:18:57 +02:00
Igor Gnatenko f56458810d setup.cfg: ignore couple of PEP8 errors
We don't care about E261 and temporarily ignore E501.

Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2016-12-23 23:52:25 +02:00
Jussi Pakkanen 4f836de5bd Shut down the noise. 2016-12-21 16:55:26 +02:00
Igor Gnatenko 706c06dda7 add flake8 configuration
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2016-12-21 00:06:07 +02:00