Skip to content

Commit

Permalink
Trying to fix action. Try 7/∞. Added pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
quswadress committed May 23, 2024
1 parent 95f4c84 commit 8353bc5
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 14 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,6 @@ jobs:
libjpeg-dev
python3-dev
if: runner.os == 'Linux'
- name: Install dependencies
run: python -m pip install -r requirements.txt
- name: Install installer
run: python -m pip install pyinstaller
- name: Install compiler
Expand All @@ -56,8 +54,8 @@ jobs:
"--quiet", "--nocache", "--wait", "--norestart", "--add",
"Microsoft.VisualStudio.Workload.VCTools;includeRecommended"
if: runner.os == 'Windows'
- name: Build cython
run: pip install -v -e .
- name: Build project
run: pip install -v .
- name: Build
run: >
pyinstaller -y -w --contents-directory .
Expand Down
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,8 @@
## Запуск с исходников
Для запуска игры с исходников необходимо:
1. Скачать исходный код
2. pip install -r requirements.txt
3. pip install -v -e .
4. python main.py
2. pip install .
3. python main.py

### Профилирование
1. Поставить FPS в 200+ в `settings.py`
Expand Down
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 ~= 70.0.0', 'cython ~= 3.0.3']
build-backend = 'setuptools.build_meta'

[project]
dynamic = ['dependencies', 'readme']
name = 'jaba-is-you'
version = '0.16.0'
requires-python = '>=3.8'
authors = [
{name = 'epsinenta'},
{name = 'quswadress', email = 'quswadress@gmail.com'},
{name = 'Punmak'},
]
maintainers = [
{name = 'Danilado'}
]
license = {file = 'LICENSE'}

[project.urls]
Homepage = 'https://jaba-is-you.pages.dev/'
Repository = 'https://github.com/Danilado/jaba-is-you.git'
'Bug Tracker' = 'https://github.com/Danilado/jaba-is-you/issues'

[tool.setuptools]
include-package-data = true
zip-safe = false
packages = ['classes', 'elements']

[tool.setuptools.dynamic]
readme = {file = 'README.md', content-type = 'text/x-markdown'}
dependencies = {file = 'requirements.txt'}
1 change: 0 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,4 @@ h2~=4.1.0
sphinx~=4.4.0
sphinx-autodoc-typehints~=1.17.0
Cython~=3.0.3
setuptools~=68.2.2
pyinstaller~=6.2.0
7 changes: 1 addition & 6 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,5 @@
], compiler_directives=cython_directives)

setup(
name='jaba-is-you',
version='0.16.0',
ext_modules=extensions,
zip_safe=False,
include_package_data=True,
packages=find_packages(),
ext_modules=extensions
)

0 comments on commit 8353bc5

Please sign in to comment.