diff --git a/conda/README.md b/conda/README.md new file mode 100644 index 0000000..e212304 --- /dev/null +++ b/conda/README.md @@ -0,0 +1,8 @@ +# Conda Recipe + +`recipe.yaml` is used to package up Nemosis to publish on Conda forge. + +More info on this file structure is available [here](https://conda-forge.org/docs/maintainer/example_recipes/pure-python/). + +When the dependencies of Nemosis change in `../pyproject.toml`, we don't _need_ to update this file too. +Conda has scripts to check new releases on Pypi and adjust them accordingly. diff --git a/conda/recipe.yaml b/conda/recipe.yaml new file mode 100644 index 0000000..4a90d01 --- /dev/null +++ b/conda/recipe.yaml @@ -0,0 +1,56 @@ +context: + version: 3.8.1 + +package: + name: nemosis + version: ${{ version }} + +source: +- url: https://pypi.org/packages/source/n/nemosis/nemosis-${{ version }}.tar.gz + sha256: 97eeeb46be38f82d4e2bc9375c60fc86e0d708a3fb7e26d9d3aa7517d9c0a397 + +build: + number: 0 + script: + - ${{ PYTHON }} -m pip install . -vv --no-deps --no-build-isolation + noarch: python + +requirements: + host: + - python ${{ python_min }}.* + - hatchling + - pip + run: + - python >=${{ python_min }} + - requests >=2.32.3 + - pyarrow >=22.0.0 + - feather-format >=0.4.1 + - pandas >=2.2.3 + - xlrd >=2.0.1 + - beautifulsoup4 >=4.12.3 + - openpyxl >=3.1.5 + - cachetools >=5.5.0 + +tests: +- python: + imports: + - nemosis + python_version: + - ${{ python_min }}.* + - "*" + pip_check: true + + +about: + homepage: https://github.com/UNSW-CEEM/NEMOSIS/ + license: GPL-3.0-only + license_file: LICENSE + summary: A tool for accessing AEMO data. + description: | + A Python package for downloading historical data + published by the Australian Energy Market Operator (AEMO) + repository: https://github.com/UNSW-CEEM/NEMOSIS/ + +extra: + recipe-maintainers: + - mdavis-xyz \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index 3b7ffa1..ded9f97 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -7,6 +7,7 @@ authors = [ { name = "prakaa", email = "abiprakash007@gmail.com" } ] dependencies = [ + # If updating these, also apply the same update to ./conda/meta.yaml "requests>=2.32.3", "pyarrow>=22.0.0", "feather-format>=0.4.1",