Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Packaging updates #494

Merged
merged 4 commits into from
Dec 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .github/workflows/job_cx-freeze-appimage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ jobs:
pip3 install -r misc/requirements.in
- name: Generate version information
run: |
pip3 install setuptools-scm
python3 -m setuptools_scm --force-write-version-files
- name: Build
run: |
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/job_cx-freeze-dmg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ jobs:
pip3 install -r misc/requirements.in
- name: Generate version information
run: |
pip3 install setuptools-scm
python3 -m setuptools_scm --force-write-version-files
- name: Build
run: |
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/job_cx-freeze-msi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ jobs:
pip3 install -r misc/requirements.in
- name: Generate version information
run: |
pip3 install setuptools-scm
python3 -m setuptools_scm --force-write-version-files
- name: Build
run: |
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/job_nuitka-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ jobs:
pip3 install -r misc/requirements.in
- name: Generate version information
run: |
pip3 install setuptools-scm
python3 -m setuptools_scm --force-write-version-files
- name: Build
run: >-
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/job_nuitka-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ jobs:
pip3 install -r misc/requirements.in
- name: Generate version information
run: |
pip3 install setuptools-scm
python3 -m setuptools_scm --force-write-version-files
- name: Build
run: >-
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/job_nuitka-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ jobs:
pip3 install -r misc/requirements.in
- name: Generate version information
run: |
pip3 install setuptools-scm
python3 -m setuptools_scm --force-write-version-files
- name: Build
run: >-
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/job_pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- name: Install dependencies
run: |
python3 -m pip install --upgrade pip
pip3 install setuptools build wheel twine
pip3 install build twine
- name: Build
run: |
python3 -m build --sdist --wheel
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,14 +130,14 @@ After installing Rare, if macOS complains that it is damaged, open a terminal an
```shell
sudo xattr -dr com.apple.quarantine /Applications/Rare.app
```
which will allow the application run normally.
which will allow the application to run normally.

Alternatively, you can install from `pip` or from source.
Alternatively, you can install using `pip`/`pipx` or from source.


### Latest development version

In the [actions](https://github.com/RareDevs/Rare/actions) tab you can find packages for the latest commits.
In the [actions](https://github.com/RareDevs/Rare/actions/workflows/snapshot.yml) tab you can find packages for the latest commits.

**Note**: They might be unstable and likely broken.

Expand Down
4 changes: 3 additions & 1 deletion misc/requirements-flatpak.in
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
requests < 3.0
# PySide6-Essentials # from flatpak
QtAwesome
setuptools
legendary-gl >= 0.20.34
setuptools-scm
legendary-gl @ https://github.com/derrod/legendary/archive/3963382b3f33116154399be5dd2d2913336a1f0e.zip
# orjson # needs the binary release, use req2flatpak
vdf
pypresence
1 change: 1 addition & 0 deletions misc/requirements.in
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ requests < 3.0
PySide6-Essentials
QtAwesome
setuptools
setuptools-scm
legendary-gl @ https://github.com/derrod/legendary/archive/3963382b3f33116154399be5dd2d2913336a1f0e.zip
orjson
vdf
Expand Down
File renamed without changes.
7 changes: 2 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ webview = [
"pyobjc; platform_system == 'Darwin'",
"pywebview; platform_system == 'Darwin'",
]
presence = [
discordrpc = [
"pypresence",
]
dev = [
Expand Down Expand Up @@ -83,14 +83,11 @@ namespaces = true
"rare.resources.images" = [ "Rare.ico", "Rare.icns", "Rare.png", "cover.png", "logo.png" ]
"rare.resources.languages" = [ "rare_*.qm" ]

[tool.setuptools.dynamic]
version = { attr = "rare.__version__" }

[tool.setuptools_scm]
# use only annotated tags ( omit `--tags` argument from `git describe`)
git_describe_command = [ "git", "describe", "--dirty", "--long" ]
#tag_regex = "(?P<version>^[0-9]+\\.[0-9]+\\.[0-9]+)(?P<suffix>.[0-9]+)?$"
version_scheme = "tools.version:mkversion"
version_scheme = "misc.version:mkversion"
local_scheme = "no-local-version"
version_file = "rare/_version.py"
fallback_version = "1.10.11.0"
Expand Down
Loading