Metadata-Version: 2.4
Name: commonwise
Version: 2026.3.0
Summary: commonwise
Author-email: Hugo Buddelmeijer <hugo@buddelmeijer.nl>
Maintainer-email: Hugo Buddelmeijer <hugo@buddelmeijer.nl>
Project-URL: Source, https://gitlab.astro-wise.org/buddel/commonwise
Classifier: Programming Language :: Python :: 3
Classifier: Operating System :: OS Independent
Classifier: Intended Audience :: Science/Research
Classifier: Topic :: Scientific/Engineering :: Astronomy
Requires-Python: >=3.9
Description-Content-Type: text/markdown
Requires-Dist: numpy
Requires-Dist: python-dateutil
Requires-Dist: matplotlib
Requires-Dist: py-spy
Requires-Dist: zstandard
Requires-Dist: pytest
Requires-Dist: coverage
Requires-Dist: mock

# commonwise

`commonwise` is a normal Python package for the `common` part of the WISE-technology. That is, it is not a conda package.

It is initially created to support [MetisWISE](https://github.com/AstarVienna/MetisWISE/), since all other METIS packages are normal Python packages too.

Essentially it is a minimal Python package with `common` as a submodule.

The pip package is uploaded to  https://pip.entropynaut.com/packages/commonwise/ which uses the same credentials as our conda channel (ask Hugo Buddelmeijer or Gijs Verdoes Kleijn).

## Installation
1. The [login credentials are available from the METIS wiki](https://metis.strw.leidenuniv.nl/wiki/doku.php?id=ait:archive) or can be requested from from Hugo Buddelmeijer or Gijs Verdoes Kleijn.  Set them with
   ```
   export OMEGACEN_CONDA_CREDENTIALS=login:password
   ```
2. Install the package:
   ```
   pip install \
     --extra-index-url \
     https://${OMEGACEN_CONDA_CREDENTIALS}@pip.entropynaut.com/packages/ \
     commonwise
   ```

## Building the package

1. Update the common submodule.

2. Set the version in `pyproject.toml` to the desired version.

3. Build
   ```
   pip3 install build
   python3 -m build
   ```

4. Upload `dist/commonwise-*.tar.gz` to https://pip.entropynaut.com/packages/commonwise/.
   See https://metis.strw.leidenuniv.nl/wiki/doku.php?id=ait:archive for commands.

## Setting up the pip server

The server at https://pip.entropynaut.com/packages/ is just a simple directory with two extra files:

1. `.htaccess`:
   ```
   AuthName "Dialog prompt"
   AuthType Basic
   AuthUserFile .htpasswd
   Require valid-user
   Options +Indexes
   ```

2. `.htpasswd`:
   ```
   htpasswd -c .htpasswd <username>
   ```
