Commit Graph
139 Commits
Author SHA1 Message Date
Nate Coraor 25b52a97f7 Start work on 23.0.5.dev0 2023-06-30 17:14:00 -04:00
Nate Coraor 03d9eb63b8 Create version 23.0.4 2023-06-30 17:13:57 -04:00
Nate Coraor ab1e0485d7 Pin pydantic in packages to <2 2023-06-30 14:51:18 -04:00
mvdbeek 1ef440e92c Start work on 23.0.4.dev0 2023-06-26 09:32:37 +02:00
mvdbeek b4adbb4ec5 Create version 23.0.3 2023-06-26 09:32:32 +02:00
mvdbeek 414abff510 Start work on 23.0.3.dev0 2023-06-13 17:58:19 +02:00
mvdbeek a7f0a365be Create version 23.0.2 2023-06-13 17:58:13 +02:00
Matthias Bernt aa9cc5b9e8 Start work on 23.1.dev0 2023-06-08 15:54:32 +02:00
Matthias Bernt f722e122f7 Create version 23.0.1 2023-06-08 15:54:28 +02:00
Nicola Soranzo 4ca163b9ca Add support for Python 3.11
- Update Python dependencies that didn't have a cp311 wheel: h5py and
  psycopg2-binary.
- For packages for which there is no recent version that works on all
  Python versions supported by Galaxy (numpy and scipy), replace old
  requirement with multiple Python-version-specific requirements.
2023-02-02 01:18:25 +00:00
Nicola Soranzo a850a47419 Update pysam depedency to 0.20.0
Fix `pysam.index()` calls which now use samtools 1.16 where
`samtools index input output` doesn't work any more if `output` is the path
of an already existing file, but `samtools index -o output input` works
fine.

Also:
- Pre-create the (empty) index file for mock test datasets as a unit test
  reproducer of the above issue.
- Fix `test_cram` unit test that wasn't checking the return value of
  `CRAM.set_index_file()`, which was in fact returning False because
  `test-data/2.cram` was not sorted (updated now).
2023-01-01 03:37:53 +00:00
Nicola Soranzo ee7d51f2f5 Merge branch 'release_22.05' into dev 2022-12-09 11:36:00 +00:00
Nicola Soranzo 1eceea2a45 Add/remove/pin/unpin Python requirements 2022-12-09 02:01:26 +00:00
mvdbeek 9c92c55a31 Reset all package HISTORY.rst file to 22.5.0.dev0 2022-12-08 13:24:06 +01:00
Nicola Soranzo f5deb24dbb Use dnspython to check specifically for an "MX" DNS record
when validating the domain name of the email address for a new user.

Fix https://github.com/galaxyproject/galaxy/issues/14829 .
2022-11-03 12:08:35 +01:00
Nicola Soranzo 5c43d2961f Use dnspython to check specifically for an "MX" DNS record
when validating the domain name of the email address for a new user.

Fix https://github.com/galaxyproject/galaxy/issues/14829 .
2022-10-27 11:17:14 +01:00
davelopezandNicola Soranzo 5dc7dae7c1 Use pydantic[email] instead of email-validator
Co-authored-by: Nicola Soranzo <nicola.soranzo@earlham.ac.uk>
2022-10-14 12:20:24 +02:00
John Chilton 61b9e57c7f Implement Workflow Invocation -> BCO export. 2022-10-14 12:20:24 +02:00
John Chilton 3dbe2891e7 Implement RO Crate export of Galaxy histories and invocations. 2022-09-13 19:20:48 -04:00
Nicola Soranzo dda6feb391 Remove redundant license info from package READMEs
The license is already specified in `setup.cfg` , which is the
canonical place.
This will simplify the transition to the MIT license.
2022-09-09 17:20:24 +01:00
Michael R. Crusoe 59ac92c1c8 mark galaxy packages as containing typing information 2022-07-26 23:27:36 +01:00
Nicola Soranzo 073a8d7956 Modernise build of galaxy-data package
Also:
- Update MANIFEST.in
2022-06-09 23:48:33 +01:00
Nicola Soranzo 73bf57e9a0 Remove unused and unnecessary code
- `PROJECT_OWNER`, `PROJECT_USERAME`, `RAW_CONTENT_URL` and `_version_re` are unused.
- `:changelog:` hyperlink target is unnecessary.
- `test_suite` and `tests_require` are deprecated since setuptools v41.5.0
2022-06-09 22:55:07 +01:00
Nicola Soranzo e9b2262dd3 Move mypy configuration to `mypy.ini`
So packages can use `setup.cfg` to replace `setup.py` .
2022-06-08 10:35:18 +01:00
Nicola Soranzo aeef3318a2 Use setuptools custom package discovery instead of explicit listing 2022-06-06 23:48:37 +01:00
Nicola Soranzo f2a42ba67e Run mypy on all packages' files
Also:
- mypy fixes.
- Use `with` statement to open/close files.
2022-05-30 22:38:55 +01:00
John Chilton c5bf63bc91 Add DEFERRED datasets to Galaxy
- Improves options and display around discarded datasets.
- Adds new APIs for importing model stores.
- Adds support to model store layer for importing/exporting workflow invocations and APIs and tests to support this.
- Add new DEFERRED dataset state - with APIs for materializing them or the option to defer them on the worker node if using tool_evaluation_strategy=remote on the job destination.
- UI and API options for uploading deferred datasets individually or into collections.
2022-05-23 19:48:47 -04:00
mvdbeek 37b47e0304 Better binary detection with FilePrefix & libmagic
FilePrefix reads the first Megabytes of a file, which is much more
than the previously used `check_binary` which read only 1KB.

Since we're re-using FilePrefix instance this shouldn't have any impact
on performace. In addition we're now using `python-magic` to detect
the encoding and mime-type. We're using the mime-type detection
for PDF only at this point, but we're also using the detected encoding
if we encounter non-utf8 content.
2022-04-05 15:06:04 +02:00
Nicola Soranzo 7cf3ce97ec Unpin alembic in galaxy-data package 2022-03-31 18:50:07 +01:00
Nicola Soranzo d11bbf219d Update mypy to 0.942 . Fix new mypy errors.
Remove unused `optional()` decorator function that had an annotation issue.
2022-03-31 18:47:52 +01:00
John Chilton f9940e35d1 Pin pysam since 0.19.0 seems to have incomplete type definitions. 2022-03-30 16:44:58 -04:00
Nicola Soranzo 0c80836c34 Upgrade syntax to Python 3.7
using `ack --type=python -f | grep -v '^tools/' | xargs pyupgrade --py37-plus`

Also more refactoring of Python files in `packages/` .
2022-03-14 14:57:43 +00:00
Sergey Golitsynskiy 736c6c0048 Update data package (requirements, packages, includes)
Note: manage_db entry point needs to be edited in model.orm.scripts.
2022-03-09 18:41:03 -05:00
Sergey Golitsynskiy be53ebec6b Move triggers out of migrate directory
(does not include an import in mapping.py: to be added in a separate
commit, grouped with other edits in mapping.py)
2022-03-09 18:40:07 -05:00
Sergey Golitsynskiy e248cbe35e Add alembic to dependencies 2022-03-09 18:40:07 -05:00
Nicola Soranzo 6057338cbd Format files in packages/ with black
with:

```
find packages/ -name '*.py' | xargs black
```

The `packages/` directory is currently excluded in the `[tool.black]`
section of `pyproject.toml` because black follows symlinks.
2022-02-03 14:07:52 +00:00
Dannon Baker 623a5e165a Apply black formatting.
Apply isort.
2022-02-03 07:42:20 -05:00
mvdbeek 0af72e56b2 Update version to 22.05.dev0 2022-02-01 11:10:56 +01:00
Nicola Soranzo 0bdc93a7cc Drop support for Python 3.6, add Python 3.10 2021-12-08 08:14:10 +00:00
Nicola Soranzo a37bdfd42f Merge branch 'release_21.09' into dev 2021-11-25 16:30:56 +00:00
Islam Heggy cde79eef33 Update social-auth-core library version to fix OIDC problem 2021-11-24 05:00:28 +02:00
Nicola Soranzo a65d8fade9 Add missing typing-extensions requirement
to `pyproject.toml` and packages' `requirements.txt` .

We have been importing it explicitly since commit
fc2ce45767 (December 2020).

Also:
- Remove now unnecessary minimum version for pygithub
2021-11-24 01:09:49 +00:00
Michael R. Crusoe 7819fdc7a6 tighten type ignores 2021-11-23 13:12:07 +01:00
mvdbeek 6b29202be6 Update version to 21.09. 2021-11-02 12:08:02 +01:00
John Chilton c791fea0cf Formalize dependency of galaxy-data on galaxy.files package.
- Create a new project galaxy-files that does not depend on anything but galaxy-util.
- Add a dependency in galaxy-data on galaxy-files, use typing in galaxy.data.sniff to make this clear.
- Cleanup the galaxy-files unit tests to not depend on galaxy.datatypes.sniff code - this wasn't ideal to start with.
- Add a small integration-ish unit test test_sniff_file_sources.py to test that piece of sniff.py that depends on galaxy-files.
2021-10-11 13:16:30 -04:00
John Chilton 336cf7b918 Package objectstore's unittest helpers and drop hacks for running test_model_copy.py in galaxy-data. 2021-09-24 12:16:54 -04:00
John Chilton 84220b6b55 Establish unittest utils for galaxy-data packages.
Progress toward https://github.com/galaxyproject/galaxy/issues/8364. Cleans up dependency into a proper DAG so we can move for instance test_model_discovery.py into galaxy-data's unittests.
2021-09-24 12:16:54 -04:00
Sergey Golitsynskiy e691ab866b Update SQLAlchemy to 1.4.25 2021-09-23 11:29:38 -04:00
mvdbeek 5332eb246a Update version to 22.01.dev0 2021-09-20 19:53:11 +02:00
mvdbeek 9275b34819 Update version to 21.09.rc1 2021-09-20 19:53:09 +02:00