-
Notifications
You must be signed in to change notification settings - Fork 1
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
Showing
32 changed files
with
580 additions
and
448 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
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,34 @@ | ||
name: "Publish to PyPI" | ||
|
||
on: | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
publish: | ||
name: Publish to PyPI | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.11" | ||
|
||
- name: Install build tools | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install build twine | ||
- name: Build package | ||
run: pip install . | ||
|
||
- name: Publish to PyPI | ||
env: | ||
TWINE_USERNAME: "__token__" | ||
TWINE_PASSWORD: "${{ secrets.PYPI_API_KEY }}" | ||
run: | | ||
twine upload 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
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 |
---|---|---|
@@ -1,17 +1,19 @@ | ||
.cache/ | ||
.ipynb_checkpoints/ | ||
.pytest_cache/ | ||
.ropeproject/ | ||
.nocheck/ | ||
_build/ | ||
dist/ | ||
build/ | ||
dist/ | ||
__pycache__/ | ||
*.egg-info/ | ||
.ropeproject/ | ||
|
||
compile_commands.json | ||
|
||
*.html | ||
*.ipynb | ||
.nocheck/ | ||
|
||
*_files | ||
!README_files |
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
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,34 @@ | ||
Vagrant.configure("2") do |config| | ||
config.vm.box = "ubuntu/jammy64" | ||
|
||
config.vm.provider "virtualbox" do |vb| | ||
vb.memory = "2048" | ||
vb.cpus = 2 | ||
end | ||
|
||
config.vm.network "private_network", type: "dhcp" | ||
|
||
config.vm.provision "shell", inline: <<-SHELL | ||
# Update and install prerequisites | ||
sudo apt-get update | ||
sudo apt-get install -y python3 python3-pip python3-venv cmake build-essential | ||
# Create a Python virtual environment | ||
python3 -m venv /home/vagrant/epiworldPy-env | ||
# Activate virtual environment and upgrade pip | ||
source /home/vagrant/epiworldPy-env/bin/activate | ||
pip install --upgrade pip setuptools wheel | ||
# Install dependencies from pyproject.toml (if it exists) | ||
if [ -f /vagrant/pyproject.toml ]; then | ||
pip install . | ||
fi | ||
# Deactivate the virtual environment | ||
deactivate | ||
SHELL | ||
|
||
# Synchronize the project directory with the VM | ||
config.vm.synced_folder ".", "/vagrant" | ||
end |
This file was deleted.
Oops, something went wrong.
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
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
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
Oops, something went wrong.