-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8457eef
commit 7b5c28a
Showing
12 changed files
with
84 additions
and
161 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
] |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.