-
Notifications
You must be signed in to change notification settings - Fork 16
/
CHANGELOG
116 lines (84 loc) · 3.3 KB
/
CHANGELOG
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
3.0.1
------
* restore tox.ini to support tox --current-env based packaging
3.0.0
-----
* add support for python 3.11 and drop dead pythons (thanks hukgo)
* migrate to hatch
* split up __init__.py
* add some type annotations
2.1.1
-----
* drop the python 3.4 support marker, 2.1.0 broke it
2.1.0 will be yanked after release
2.1.0
----------------------------------------
- fix race condition for import of modules using apipkg.initpkg in Python 3.3+
by updating existing modules in-place rather than replacing in sys.modules
with an apipkg.ApiModule instances. This race condition exists for
import statements (and __import__) in Python 3.3+ where sys.modules is
checked before obtaining an import lock, and for importlib.import_module
in Python 3.11+ for the same reason.
2.0.1
----------------------------------------
- fix race conditions for attribute creation
2.0.0
----------------------------------------
- also transfer __spec__ attribute
- make py.test hack more specific to avoid hiding real errors
- switch from Travis CI to GitHub Actions
- modernize package build
- reformat code with black
1.5
----------------------------------------
- switch to setuptools_scm
- move to github
- fix up python compat matrix
- avoid dict iteration (fixes issue on python3)
- preserve __package__ - ths gets us better pep 302 compliance
1.4
----------------------------------------
- revert the automated version gathering
1.3
----------------------------------------
- fix issue2 - adapt tests on Jython
- handle jython __pkgpath__ missabstraction when running python from jar files
- alias modules pointing to unimportable modules will return None for
all their attributes instead of raising ImportError. This addresses
python3.4 where any call to getframeinfo() can choke on sys.modules
contents if pytest is not installed (because py.test.* imports it).
- introduce apipkg.distribution_version(name) as helper to
obtain the current version number of a package from install metadata
its used by default with the package name
- add an eagerloading option and eagerload automatically
if bpython is used (workaround for their monkeypatching)
1.2
----------------------------------------
- Allow to import from Aliasmodules (thanks Ralf Schmitt)
- avoid loading __doc__ early, so ApiModule is now fully lazy
1.1
----------------------------------------
- copy __doc__ and introduce a new argument to initpkg()
(thanks Ralf Schmitt)
- don't use a "0" default for __version__
1.0
----------------------------------------
- make apipkg memorize the absolute path where a package starts
importing so that subsequent chdir + imports won't break.
- allow to alias modules
- allow to use dotted names in alias specifications (thanks Ralf
Schmitt).
1.0.0b6
----------------------------------------
- fix recursive import issue resulting in a superflous KeyError
- default to __version__ '0' and not set __loader__ or __path__ at all if it
doesn't exist on the underlying init module
1.0.0b5
----------------------------------------
- fixed MANIFEST.in
- also transfer __loader__ attribute (thanks Ralf Schmitt)
- compat fix for BPython
1.0.0b3 (compared to 1.0.0b2)
------------------------------------
- added special __onfirstaccess__ attribute whose value will
be called on the first attribute access of an apimodule.