fixed new style functions in __main__ script
Bastian Venthur
4 years ago
0 | 0 |
# Changelog
|
|
1 |
|
|
2 |
## [2.0.2] - 2020-02-11
|
|
3 |
|
|
4 |
* Fixed main script to use the new-style functions introduced in 2.0.1
|
|
5 |
* Import new-style functions in __init__.py
|
1 | 6 |
|
2 | 7 |
## [2.0.1] - 2019-11-17
|
3 | 8 |
|
|
0 |
python-popcon (2.0.2) unstable; urgency=medium
|
|
1 |
|
|
2 |
* Fixed main script to use the new-style functions introduced in 2.0.1
|
|
3 |
(Closes #950963), thanks Gregor Herrmann!
|
|
4 |
* Import new-style functions in __init__.py
|
|
5 |
|
|
6 |
-- Bastian Venthur <venthur@debian.org> Tue, 11 Feb 2020 15:56:49 +0100
|
|
7 |
|
0 | 8 |
python-popcon (2.0.1) unstable; urgency=medium
|
1 | 9 |
|
2 | 10 |
* deprecated functions with packages as positional arguments, the new ones
|
0 | 0 |
from popcon.version import __version__ # noqa
|
|
1 |
from popcon.popcon import packages # noqa
|
1 | 2 |
from popcon.popcon import package # noqa
|
|
3 |
from popcon.popcon import packages_raw # noqa
|
2 | 4 |
from popcon.popcon import package_raw # noqa
|
|
5 |
from popcon.popcon import source_packages # noqa
|
3 | 6 |
from popcon.popcon import source_package # noqa
|
|
7 |
from popcon.popcon import source_packages_raw # noqa
|
4 | 8 |
from popcon.popcon import source_package_raw # noqa
|
0 | 0 |
import sys
|
1 | 1 |
|
2 | |
from popcon import package
|
|
2 |
from popcon import packages
|
3 | 3 |
|
4 | 4 |
|
5 | 5 |
def main():
|
|
7 | 7 |
raise RuntimeError('No package name given')
|
8 | 8 |
pkg = sys.argv[1]
|
9 | 9 |
print(pkg)
|
10 | |
print(package(pkg))
|
|
10 |
print(packages([pkg]))
|
11 | 11 |
|
12 | 12 |
|
13 | 13 |
if __name__ == '__main__':
|