Skip to content

Commit 7b5c28a

Browse files
committed
test release
1 parent 8457eef commit 7b5c28a

File tree

12 files changed

+84
-161
lines changed

12 files changed

+84
-161
lines changed

.github/workflows/publish.yml

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Upload Python Package to PyPI when a Release is Created
2+
3+
on:
4+
release:
5+
types: [created]
6+
7+
jobs:
8+
pypi-publish:
9+
name: Publish release to PyPI
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v4
13+
- name: Set up Python
14+
uses: actions/setup-python@v4
15+
with:
16+
python-version: "3.12"
17+
- name: Install dependencies
18+
run: |
19+
python -m pip install --upgrade pip
20+
pip install build twine
21+
- name: Build package
22+
run: python -m build
23+
- name: Publish package distributions to Test PyPI
24+
env:
25+
TWINE_USERNAME: __token__
26+
TWINE_PASSWORD: ${{ secrets.TESTPYPI }}
27+
run: |
28+
python -m twine upload --repository-url https://test.pypi.org/legacy/ dist/*

pyproject.toml

+56
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
[build-system]
2+
requires = ["flit_core >=3.4.0,<4"]
3+
build-backend = "flit_core.buildapi"
4+
5+
[project]
6+
name = "honeybees"
7+
version = "1.0.0dev"
8+
description = "Honeybees is an agent-based modelling framework targeted at large-scale agent-based models."
9+
readme = "README.md"
10+
readme-content-type = "text/markdown"
11+
requires-python = ">=3.10"
12+
authors = [
13+
{name = "Jens de Bruijn", email = "[email protected]"},
14+
]
15+
home-page = "http://github.com/jensdebruijn/honeybees"
16+
classifiers = [
17+
"Development Status :: 4 - Beta",
18+
"Intended Audience :: Developers",
19+
"Intended Audience :: Science/Research",
20+
"Topic :: Scientific/Engineering",
21+
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
22+
"Programming Language :: Python :: 3",
23+
]
24+
25+
dependencies = [
26+
"netcdf4",
27+
"pandas",
28+
"openpyxl",
29+
"geopandas",
30+
"numpy",
31+
"numba",
32+
"tbb",
33+
"tornado",
34+
"python-dateutil",
35+
"rasterio",
36+
"pyyaml",
37+
"matplotlib",
38+
"xarray",
39+
"rioxarray",
40+
]
41+
42+
[project.optional-dependencies]
43+
plotting = ["cartopy"]
44+
docs = [
45+
"sphinx",
46+
"sphinx_rtd_theme",
47+
"sphinx-autodoc-typehints",
48+
"sphinxcontrib-autoprogram",
49+
]
50+
tests = [
51+
"matplotlib",
52+
"pytest",
53+
"pytest-plt",
54+
"pytest-benchmark",
55+
"cartopy"
56+
]

requirements/docs.txt

-4
This file was deleted.

requirements/plotting.txt

-1
This file was deleted.

requirements/requirements.txt

-13
This file was deleted.

requirements/tests.txt

-4
This file was deleted.

setup.py

-61
This file was deleted.

tests/library/cell_area.tif

-722 Bytes
Binary file not shown.

tests/library/test_mapIO.py

-45
This file was deleted.

tests/run.bat

-9
This file was deleted.

tests/run.sh

-4
This file was deleted.

tests/test_general.py

-20
This file was deleted.

0 commit comments

Comments
 (0)