summaryrefslogtreecommitdiff
path: root/setup.py
AgeCommit message (Collapse)Author
2023-07-13Include qutebrowser *and* qutebrowser.*Philipp Albrecht
2023-07-13Use explicit includePhilipp Albrecht
2023-07-13Map qutebrowser package to qutebrowser dirPhilipp Albrecht
2023-07-13Specify qutebrowser package via where=Philipp Albrecht
2023-07-12Include namespace packages in setuptools buildPhilipp Albrecht
Building qutebrowser showed some warnings as the following: ``` /tmp/build-env-4jb2oh0t/lib/python3.8/site-packages/setuptools/command/build_py.py:201: _Warning: Package 'qutebrowser.html' is absent from the `packages` configuration. !! ******************************************************************************** ############################ # Package would be ignored # ############################ Python recognizes 'qutebrowser.html' as an importable package[^1], but it is absent from setuptools' `packages` configuration. This leads to an ambiguous overall configuration. If you want to distribute this package, please make sure that 'qutebrowser.html' is explicitly added to the `packages` configuration field. Alternatively, you can also rely on setuptools' discovery methods (for example by using `find_namespace_packages(...)`/`find_namespace:` instead of `find_packages(...)`/`find:`). You can read more about "package discovery" on setuptools documentation page: - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html If you don't want 'qutebrowser.html' to be distributed and are already explicitly excluding 'qutebrowser.html' via `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`, you can try to use `exclude_package_data`, or `include-package-data=False` in combination with a more fine grained `package-data` configuration. You can read more about "package data files" on setuptools documentation page: - https://setuptools.pypa.io/en/latest/userguide/datafiles.html [^1]: For Python, any directory (with suitable naming) can be imported, even if it does not contain any `.py` files. On the other hand, currently there is no concept of package data directory, all directories are treated like packages. ******************************************************************************** !! ``` Using `find_namespace_packages()` as suggested in the setuptools docs[1] solved the issue. [1] https://setuptools.pypa.io/en/latest/userguide/package_discovery.html#finding-namespace-packages
2023-06-30Remove vim modelinesPhilipp Albrecht
We're deprecating vim modelines in favor of `.editorconfig`. Removing vim modelines could be done using two one-liners. Most of the vim modelines were followed by an empty line, so this one-liner took care of these ones: ```sh rg '^# vim: .+\n\n' -l | xargs sed -i '/^# vim: /,+1d' ``` Then some of the vim modelines were followed by a pylint configuration line, so running this one-liner afterwards took care of that: ```sh rg '^# vim:' -l | xargs sed -i '/^# vim: /d' ```
2023-06-26Initial Python 3.7 dropFlorian Bruhin
2022-04-04Drop python3.6 support.Jimmy
Commits for dropping 3.5 support to copy from: c245b7d855ccd "Initial drop of Python 3.5" ccdfb44b8568b "Drop support for Python 3.6.0" Anything needed to update regarding OS version support in doc/install.asciidoc? TODO: remove 3.6/7 annotations in requirements files and rebuild workflows: not sure I updated it right (run 5.12 with 3.7, same 18.04 OS) but 18.04 seems to have 3.7 on it too so it should work. It'll all change when we drop <5.15 anyway. Not sure what the minimum ubuntu version will be going forward. Regarding mimetype overrides (ebb3046822adb) the doctring says they can all go in 3.7 but .h5 is still missing on py39, not sure if we should care. There are a bunch of old(?) warning messages still ignored in tests/end2end/fixtures/quteprocess.py.
2021-01-26doc: Switch URLs to httpsFlorian Bruhin
2021-01-20Bump copyright yearsFlorian Bruhin
Closes #6015
2021-01-19Go back to a normal setup.pyFlorian Bruhin
For some reason, despite using "find:" for the package and this working fine for the sdist, the qutebrowser-git Archlinux package doesn't actually include any qutebrowser/ files anymore. This currently really doesn't seem to be worth the trouble... See #3526 This reverts commit 90323d1d9854dec2382f36e8cfb7c632e18bc97b. This reverts commit 21ee2fe8825cd74f5bce4b1c90f597011feb3a8a.
2021-01-19Switch to declarative setup.py metadataFlorian Bruhin
Switches #3526
2021-01-17Finish dropping PyPEG2Florian Bruhin
Closes #1161
2021-01-13dataclasses: Remaining dependency changesdataclassFlorian Bruhin
See #6023
2021-01-09Make pygments dependency optionalFlorian Bruhin
Closes #5555
2020-12-07Migrate read_file from pkg_resources to importlib.resourcesEli Schwartz
In python 3.9, we can get any resource from a package subdirectory using files(), but on older versions of python, even where importlib.resources exists, we need the backport.
2020-10-26Initial drop of Python 3.5Florian Bruhin
See #4800
2020-08-11Add Python 3.9 classifierFlorian Bruhin
See https://github.com/qutebrowser/qutebrowser/discussions/5658
2020-06-24Update PyPI classifiersFlorian Bruhin
2020-05-11Upgrade documented Python versionsFlorian Bruhin
2020-01-04Adjust copyrights for 2020Florian Bruhin
2019-07-11Fix setup.py after __init__.py changesFlorian Bruhin
Fixes #4907
2019-02-22Update copyright for 2019Jay Kamat
2018-05-29setup.py: Set long_description_content_typeFlorian Bruhin
Otherwise, Warehouse (new PyPI) refuses the upload...
2018-02-10Add Python 3.7 compatibility to setup.pyFlorian Bruhin
2017-11-15Set python_requires in setup.pyFlorian Bruhin
2017-09-21Update metainfo in setup.pyFlorian Bruhin
2017-09-21Move some data from setupcommon to setup.pyFlorian Bruhin
We can't get rid of setupcommon entirely (it's needed by PyInstaller), but at least we can get the data back to setup.py. Fixes #2996
2017-09-19Start using attrsFlorian Bruhin
Closes #1073
2017-05-09Finally update copyrights...Florian Bruhin
2016-02-10Check pep257 via flake8.Florian Bruhin
We'll still keep the pydocstyle environment though until flake8-pep257 adds support for that: https://github.com/Robpol86/flake8-pep257/issues/6
2015-06-26Use exclude= instead of include= for find_packages.Florian Bruhin
It seems the old setuptool version in Ubuntu Trusty doesn't have include=...
2015-06-26Revert "Revert "Don't install scripts package.""Florian Bruhin
This reverts commit 345d048f43cd92032b30cefc452e8e1314f91bc6.
2015-06-26Revert "Don't install scripts package."Florian Bruhin
This reverts commit f61aaa9053d12edb9d6c048ddbe8ab857c7ad109.
2015-06-26Don't install scripts package.Florian Bruhin
See #783.
2015-02-16Add session support.Florian Bruhin
Closes #12. See #499. See #11. This adds PyYAML as a new dependency. It adds the following new commands: :session-delete <name> Delete a session. :session-load <name> Load a session. :session-save [<name>] Save a session. :wq [<name>] Save open pages and quit. And the following new settings: general -> save-session: Whether to always save the open pages.
2015-01-03Update copyright yearsFlorian Bruhin
2014-12-28Use Qt resources for the window icon.Florian Bruhin
2014-12-28Only remove icon tree if necessary.Florian Bruhin
2014-12-28Use a dirty hack to copy icon files into package.Florian Bruhin
See #325.
2014-12-28Set window icon. Closes #325.Florian Bruhin
2014-12-04Remove extras_require from setup.pyFlorian Bruhin
2014-11-24Get rid of ez_setup.py.Florian Bruhin
This made life easier for systems without a package manager (Windows, I'm looking at you!), but for anything else it tried to bootstrap setuptools even though it was already installed (in a slightly older version) which lead to conflicting files when packaging.
2014-09-22Add /usr/bin/env to shebangsFlorian Bruhin
2014-09-22Merge branch 'newcmd'Florian Bruhin
Conflicts: .flake8 pkg/PKGBUILD.qutebrowser-git qutebrowser/browser/commands.py qutebrowser/browser/hints.py qutebrowser/config/configdata.py qutebrowser/network/qutescheme.py qutebrowser/test/config/test_configtypes.py qutebrowser/utils/utils.py
2014-09-22Revert "Start patching setuptools commands"Florian Bruhin
This reverts commit 42e8e800aa2c31d3f067d12e75e7eb39cee90e12.
2014-09-22Start patching setuptools commandsFlorian Bruhin
2014-09-15Add pygments as dependency.Florian Bruhin
2014-09-12Remove explicit package_data from setup.pyFlorian Bruhin
2014-08-28Add dependency on jinja2.Florian Bruhin