Skip to content

Commit

Permalink
Actions update.
Browse files Browse the repository at this point in the history
  • Loading branch information
iwatkot committed Nov 12, 2024
1 parent 38edfea commit a811b75
Show file tree
Hide file tree
Showing 4 changed files with 58 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Tests
on:
push:
branches:
- main
- '**'

jobs:
check:
Expand Down
24 changes: 24 additions & 0 deletions .github/workflows/pypi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Publish Python Package to PyPI
on:
release:
types: [published]
jobs:
build-and-publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.11'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install build twine
- name: Build package
run: |
python -m build
- name: Publish package to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}
32 changes: 32 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
[build-system]
requires = ["setuptools>=42", "wheel"]
build-backend = "setuptools.build_meta"

[project]
name = "maps4fs"
version = "0.6.0"
description = "Generate map templates for Farming Simulator from real places."
authors = [{name = "iwatkot", email = "iwatkot@gmail.com"}]
license = {text = "MIT License"}
readme = "README.md"
keywords = ["farmingsimulator", "fs", "farmingsimulator22", "farmingsimulator25", "fs22", "fs25"]
classifiers = [
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
]
dependencies = [
"pydantic>=2.0.0",
"requests>=2.0.0",
"httpx>=0.20.0",
]

[project.urls]
Homepage = "https://github.com/iwatkot/maps4fs"
Repository = "https://github.com/iwatkot/maps4fs"

[tool.setuptools.packages.find]
where = ["."]
include = ["maps4fs*"]
exclude = ["dev*", "bot*", "*data", "*docker", "*webui"]
2 changes: 1 addition & 1 deletion webui/webui.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def launch_process():
st.write("Select the game for which you want to generate the map:")
game_code_input = st.selectbox(
"Game",
options=["FS22", "FS25"],
options=["FS22"], # TODO: Return "FS25" when the Giants Editor v10 will be released.
key="game_code",
label_visibility="collapsed",
)
Expand Down

0 comments on commit a811b75

Please sign in to comment.