Skip to content

Commit

Permalink
test release
Browse files Browse the repository at this point in the history
  • Loading branch information
jensdebruijn committed Aug 16, 2024
1 parent 8457eef commit 7b5c28a
Show file tree
Hide file tree
Showing 12 changed files with 84 additions and 161 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Upload Python Package to PyPI when a Release is Created

on:
release:
types: [created]

jobs:
pypi-publish:
name: Publish release to PyPI
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.12"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build twine
- name: Build package
run: python -m build
- name: Publish package distributions to Test PyPI
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.TESTPYPI }}
run: |
python -m twine upload --repository-url https://test.pypi.org/legacy/ dist/*
56 changes: 56 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
[build-system]
requires = ["flit_core >=3.4.0,<4"]
build-backend = "flit_core.buildapi"

[project]
name = "honeybees"
version = "1.0.0dev"
description = "Honeybees is an agent-based modelling framework targeted at large-scale agent-based models."
readme = "README.md"
readme-content-type = "text/markdown"
requires-python = ">=3.10"
authors = [
{name = "Jens de Bruijn", email = "[email protected]"},
]
home-page = "http://github.com/jensdebruijn/honeybees"
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Programming Language :: Python :: 3",
]

dependencies = [
"netcdf4",
"pandas",
"openpyxl",
"geopandas",
"numpy",
"numba",
"tbb",
"tornado",
"python-dateutil",
"rasterio",
"pyyaml",
"matplotlib",
"xarray",
"rioxarray",
]

[project.optional-dependencies]
plotting = ["cartopy"]
docs = [
"sphinx",
"sphinx_rtd_theme",
"sphinx-autodoc-typehints",
"sphinxcontrib-autoprogram",
]
tests = [
"matplotlib",
"pytest",
"pytest-plt",
"pytest-benchmark",
"cartopy"
]
4 changes: 0 additions & 4 deletions requirements/docs.txt

This file was deleted.

1 change: 0 additions & 1 deletion requirements/plotting.txt

This file was deleted.

13 changes: 0 additions & 13 deletions requirements/requirements.txt

This file was deleted.

4 changes: 0 additions & 4 deletions requirements/tests.txt

This file was deleted.

61 changes: 0 additions & 61 deletions setup.py

This file was deleted.

Binary file removed tests/library/cell_area.tif
Binary file not shown.
45 changes: 0 additions & 45 deletions tests/library/test_mapIO.py

This file was deleted.

9 changes: 0 additions & 9 deletions tests/run.bat

This file was deleted.

4 changes: 0 additions & 4 deletions tests/run.sh

This file was deleted.

20 changes: 0 additions & 20 deletions tests/test_general.py

This file was deleted.

0 comments on commit 7b5c28a

Please sign in to comment.