Commit Graph

20 Commits

Author SHA256 Message Date
e7bc919afc Accepting request 1101924 from home:dimstar:Factory
- Add magic-file-5.45.patch: fix test suite with file 5.45
  (gh#ahupp/python-magic#290).

OBS-URL: https://build.opensuse.org/request/show/1101924
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-magic?expand=0&rev=29
2023-08-02 11:07:38 +00:00
87bd6bd235 Accepting request 1081569 from home:dirkmueller:acdc:as_python3_module
SR for python stack proposal

OBS-URL: https://build.opensuse.org/request/show/1081569
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-magic?expand=0&rev=27
2023-04-21 13:22:12 +00:00
d1ae9925e1 Accepting request 1057726 from home:dimstar:Factory
- Add 4ffcd591.patch: update test for upstream added gzip
  extensions.

OBS-URL: https://build.opensuse.org/request/show/1057726
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-magic?expand=0&rev=25
2023-01-11 10:42:44 +00:00
c3c50c0fa6 Accepting request 1035684 from home:WernerFink:branches:devel:languages:python
- Reintroduce the Conflict with python-magic back as paython-paython-magic
  uses the same name space but are fully different (boo#1181252)

OBS-URL: https://build.opensuse.org/request/show/1035684
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-magic?expand=0&rev=23
2022-11-14 15:50:49 +00:00
d10a03299b - update to 0.4.27:
- remove spurious pyproject.toml that breaks source builds
  - Use tox for all multi-version testing
  - Fix use of pytest, use it via tox

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-magic?expand=0&rev=21
2022-10-10 08:56:10 +00:00
9bfe278c0f Rollback to python setup.py method for now.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-magic?expand=0&rev=20
2022-02-16 18:23:59 +00:00
c9f0ca09c5 - Update to 0.4.25:
- Support file 5.41. 
  - Support os.PathLike types 
  - Fix compat mode handling with empty mime string 
  - Cleanup library loading 
  - add py.typed sentinal per https://www.python.org/dev/peps/pep-0561/#p… 
  - Check for cookie attribute before trying to delete it
  - Revert "Fix bug in Magic when destructor called too early" 
  - Fix yet another import error
  - add more doc pointers for compat mode, and enable PendingDeprecationW…
  - restore python 2.7 to setup.py, to preserve back compat
  - document libmagic compat layer
  - prefix add_compat with an underscore to avoid namespace pollution
  - remove from_open_file, since its duplicative with from_descriptor and…
  - move typing stubs next to implementation
  - temorarily remove dropped support for python2
  - Revert "Remove Python2 from the tests"
  - Merge branch 'master' into redo-compat
  - Remove Python2 from the tests
  - Add support for Python 3.9
  - Added support for magic_descriptor routine
  - Handle undecodable characters in description
  - Handle libmagic versions that don't support MAGIC_EXTENSION 
  - MAGIC_EXTENSION support (file --extension)
  - support changed mime types in test
  - Fix tests with file 5.39
  - add docker tests for archlinux
  - Fallback to default behavior on setparam failure
  - Fix bug in Magic when destructor called too early
  - sheep Create basic stub file for magic.py

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-magic?expand=0&rev=19
2022-02-16 18:13:57 +00:00
35a9daa942 - Use pyunittest macro instead of the home-grown solution.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-magic?expand=0&rev=18
2021-10-22 10:09:47 +00:00
0f1369b1e7 Accepting request 926913 from home:marxin:branches:devel:languages:python
- Add fix-support-file-5.41.patch to support file 5.41.

OBS-URL: https://build.opensuse.org/request/show/926913
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-magic?expand=0&rev=17
2021-10-22 10:05:08 +00:00
b174768aad Accepting request 885992 from home:WernerFink:branches:devel:languages:python
- Add patch fix-4-file-5.40.patch to support file 5.40 (boo#1184881)

OBS-URL: https://build.opensuse.org/request/show/885992
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-magic?expand=0&rev=15
2021-04-16 13:19:58 +00:00
ab31f26d61 Accepting request 822791 from home:sebix:branches:devel:languages:python
- remove patches not necessary anymore:
 - magic-new-mime.patch
 - magic-pep8.patch
 - magic-tests.patch
 - magic-new-file.patch
- add patch fix-test.patch and fix-test-tumbleweed.patch to adapt the `file` test outputs to OpenSUSE.
- update to version 0.4.18:
 - Make bindings for magic_[set|get]param optional, and throw NotImplementedError
   if they are used but not supported. Only call setparam() in the constructor if
   it's supported. This prevents breakage on CentOS7 which uses an old version of
   libmagic.
- update to version 0.4.16 and 0.4.17 (changelog is combined upstream):
 - add MAGIC_MIME_TYPE constant, use that in preference to MAGIC_MIME internally.
   This sets up for a breaking change in a future major version bump where
   MAGIC_MIME will change to mathch magic.h.
 - add magic.version() function to return library version
 - add setparam/getparam to control internal behavior
 - increase internal limits with setparam to prevent spurious error on some jpeg files
 - various setup.py improvements to declare modern python support
 - support MSYS2 magic dlls
 - fix warning about using 'is' on an int in python 3.8
 - include tests in source distribution
 - many test improvements:
  - tox runner support
  - remove deprecated test_suite field from setup.py
  - docker tests that cover all LTS ubuntu versions
  - add test for snapp file identification
 - doc improvements
  - document dependency install process for debian
  - various typos

OBS-URL: https://build.opensuse.org/request/show/822791
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-magic?expand=0&rev=13
2020-07-29 12:49:19 +00:00
Tomáš Chvátal
573f93ed14 - Update the patch magic-new-file.patch to work with newer file
package

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-magic?expand=0&rev=11
2019-07-04 12:09:43 +00:00
Tomáš Chvátal
070d16a1c8 - Version update to 0.4.15:
* Few test tweaks
- Enable tests
- Add patch to fix gzip detection in tests:
  * magic-tests.patch
- Add patch to fix working with new file:
  * magic-new-file.patch
- Add patch to work with new mimedb:
  * magic-new-mime.patch
- Add patch magic-pep8.patch to have other patches apply cleanly

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-magic?expand=0&rev=9
2018-08-21 10:50:28 +00:00
Todd R
078f75b628 Accepting request 525958 from home:TheBlackCat:branches:devel:languages:python
- Fix python-magic conflicts

OBS-URL: https://build.opensuse.org/request/show/525958
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-magic?expand=0&rev=7
2017-09-14 00:18:33 +00:00
Todd R
05b4669ca2 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-magic?expand=0&rev=6 2017-09-07 20:49:16 +00:00
Todd R
7114cef460 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-magic?expand=0&rev=5 2017-09-07 20:48:53 +00:00
Todd R
a790e2667a OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-magic?expand=0&rev=4 2017-09-07 20:48:47 +00:00
Todd R
b9ff58c02d Accepting request 522165 from home:TheBlackCat:branches:devel:languages:python
- Implement single-spec version.
- Update to version 0.4.13
  * No changelog

OBS-URL: https://build.opensuse.org/request/show/522165
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-magic?expand=0&rev=3
2017-09-07 20:47:23 +00:00
Todd R
9e0b01305d Accepting request 283953 from home:TheBlackCat:branches:devel:languages:python
Explicitly require file

OBS-URL: https://build.opensuse.org/request/show/283953
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-magic?expand=0&rev=2
2015-02-03 19:13:13 +00:00
Todd R
98aff8bcda - Initial version
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-magic?expand=0&rev=1
2015-02-02 23:38:00 +00:00