Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DM-33403: Move base.Packages to lsst.utils #111

Merged
merged 54 commits into from
Jan 31, 2022
Merged
Show file tree
Hide file tree
Changes from 45 commits
Commits
Show all changes
54 commits
Select commit Hold shift + click to select a range
a717429
add python module to collect package versions
PaulPrice May 19, 2016
5f09520
packages: avoid race in use of sys.modules
PaulPrice May 21, 2016
42abcb7
Support Python 3
timj Jul 26, 2016
bde7861
Must decode bytes from check_output
timj Jul 26, 2016
0e5714e
Pickle files must use binary mode
timj Jul 26, 2016
3cf41b7
PEP8 fixes
timj Jul 29, 2016
1f0ac20
Sort package list before building version string.
jdswinbank Feb 15, 2017
cbf7dea
Wrap with pybind11 instead of swig
Jul 1, 2016
c1d3290
Bugfix
Mar 25, 2017
3ae832d
packages: add convenience methods
PaulPrice Jun 2, 2017
3adc96b
Rename tests as test_*.py following RFC-229
timj Aug 11, 2017
60b2f82
Flake8 fixes
timj Aug 12, 2017
1388737
Stop using bare except
timj Nov 15, 2017
9e3010b
Add license statement to packages.py
jmeyers314 Mar 9, 2018
2772c55
Document packages package with numpydoc
jmeyers314 Mar 9, 2018
e920bfe
Remove python2 compatibility
timj Aug 14, 2018
b98b3ea
Reflow docstrings to 79 characters
timj Aug 14, 2018
7be40d0
Move Packages docstring to class docstring
timj Aug 14, 2018
af15db9
Pex changed for default logging
gcomoretto Aug 23, 2018
3fe7213
Fix import of Mapping from collections
timj Nov 15, 2019
d1c6b13
Remove python future standard aliases import
timj Nov 16, 2019
9de7310
Add Packages.__eq__
timj Jun 8, 2020
2104b92
Add YAML and choose file format based on extension
timj Jun 8, 2020
6871222
Add YAML representers
timj Jun 8, 2020
d096059
Update packages tests to write pickle and yaml
timj Jun 9, 2020
a45f7ea
Make error message on bad class name more explicit
timj Jun 9, 2020
ba8347a
Rewrite serialization to allow access to byte form
timj Jun 11, 2020
03e73f3
Always cast the version, to prevent errors further down.
parejkoj Jul 13, 2020
86326af
Obtain versions from the conda environment
timj Aug 27, 2020
7eab309
Also record the conda env name in the package versions
timj Aug 27, 2020
4f5ae1d
Fix line lengths of doc strings
timj Aug 27, 2020
e532738
Add a test for conda that just runs the conda package listing
timj Aug 28, 2020
8ec23e5
Cache results from Conda and EUPS
timj Aug 28, 2020
765b32c
Switch order of python vs conda versions
timj Jan 16, 2021
9031c0e
Change Packages to a dict subclass
timj Jan 15, 2022
615048d
Handle basic renaming of Packages class now that it is not in base
timj Jan 28, 2022
93494ba
Add custom unpickler to allow old files to be read
timj Jan 28, 2022
8ac7121
Check that the v2 packages files from base (dict) work
timj Jan 28, 2022
0f7d366
Use black/isort to reformat new Packages code
timj Jan 28, 2022
450e14e
Use getTempFilePath in tests
timj Jan 28, 2022
941e50c
Add JSON option for I/O
timj Jan 28, 2022
861b08a
Enable mypy for packages
timj Jan 28, 2022
70b0c00
Fix docstyle problems
timj Jan 28, 2022
2199468
Unpin mypy version in action
timj Jan 28, 2022
9e23d12
Add missing yaml dependency
timj Jan 28, 2022
642286e
Add news fragment.
timj Jan 28, 2022
c8efba0
Add link to packages docs
timj Jan 28, 2022
d562058
Some docstring cleanups
timj Jan 28, 2022
1d5d98a
Switch to conda for github action
timj Jan 28, 2022
eab89f8
The conda.cli code needs conda to be in the test env
timj Jan 28, 2022
7d14216
Also test json from bytes
timj Jan 31, 2022
beaf9c3
Remove spurious pickle in import
timj Jan 31, 2022
0aab9d0
Setup an eups package in order to test that code
timj Jan 31, 2022
c8ff301
Update black in pre-commit to v22.1.0
timj Jan 31, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 1 addition & 2 deletions .github/workflows/mypy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ jobs:
python-version: 3.8

- name: Install
# pin mypy to fix a compatibility issue between mypy 0.92 and pedantic
run: pip install "mypy==0.910" pydantic
run: pip install mypy pydantic

- name: Install third party stubs
run: pip install types-requests types-PyYAML types-click types-pkg_resources types-Deprecated
Expand Down
8 changes: 7 additions & 1 deletion mypy.ini
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@ ignore_errors = True
ignore_missing_imports = True
ignore_errors = True

[mypy-eups.*]
ignore_missing_imports = True

[mypy-conda.cli.*]
ignore_missing_imports = True

[mypy-lsst.*]
ignore_missing_imports = True
ignore_errors = True
Expand Down Expand Up @@ -50,7 +56,7 @@ ignore_errors = True

# Can be removed when typeshed releases update for deprecated package.
[mypy-lsst.utils.deprecated.*]
ignore_errors = True
ignore_errors = False

# version.py is added by scons and may not exist when we run mypy.
[mypy-lsst.utils.version]
Expand Down