sgkit-dev / bio2zarr

Convert bioinformatics file formats to Zarr
Apache License 2.0
25 stars 7 forks source link

Consolidate project config under pyproject #151

Closed ravwojdyla closed 4 months ago

ravwojdyla commented 4 months ago

See the latest docs at: https://packaging.python.org/en/latest/ and a sample project at: https://github.com/pypa/sampleproject

Summary of changes:

ravwojdyla commented 4 months ago

I have tested this setup using:

python3 -m build --wheel

The resulting package:

unzip -l dist/bio2zarr-0.0.7.dev6+gc03b708-py3-none-any.whl

Archive:  dist/bio2zarr-0.0.7.dev6+gc03b708-py3-none-any.whl
  Length      Date    Time    Name
---------  ---------- -----   ----
       49  04-29-2024 08:11   bio2zarr/__init__.py
      527  04-29-2024 08:11   bio2zarr/__main__.py
      445  04-29-2024 10:01   bio2zarr/_version.py
    14397  04-29-2024 08:11   bio2zarr/cli.py
     9006  04-29-2024 08:11   bio2zarr/core.py
     6768  04-29-2024 08:11   bio2zarr/plink.py
      142  04-29-2024 08:11   bio2zarr/provenance.py
       79  04-29-2024 08:11   bio2zarr/typing.py
    83310  04-29-2024 09:56   bio2zarr/vcf.py
    17328  04-29-2024 09:56   bio2zarr/vcf_utils.py
    11357  04-29-2024 10:01   bio2zarr-0.0.7.dev6+gc03b708.dist-info/LICENSE
    16931  04-29-2024 10:01   bio2zarr-0.0.7.dev6+gc03b708.dist-info/METADATA
       92  04-29-2024 10:01   bio2zarr-0.0.7.dev6+gc03b708.dist-info/WHEEL
      131  04-29-2024 10:01   bio2zarr-0.0.7.dev6+gc03b708.dist-info/entry_points.txt
        9  04-29-2024 10:01   bio2zarr-0.0.7.dev6+gc03b708.dist-info/top_level.txt
     1323  04-29-2024 10:01   bio2zarr-0.0.7.dev6+gc03b708.dist-info/RECORD
---------                     -------
   161894                     16 files

You can see the files included in the dist-info in a gist here.

Test install/run was successful:

pip install projects/bio2zarr/dist/bio2zarr-0.0.7.dev6+gc03b708-py3-none-any.whl

Follow by:

vcf2zarr explode sample.vcf.gz sample.exploded