Skip to content

Commit cb9a4de

Browse files
committed
fix: correct ver and python-package.yml
1 parent b6bcc29 commit cb9a4de

3 files changed

Lines changed: 34 additions & 33 deletions

File tree

.github/workflows/python-package.yml

Lines changed: 29 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -2,45 +2,43 @@ name: Hytale API Wrapper
22

33
on:
44
push:
5-
branches: [ "main" ]
5+
branches: ["main"]
66
pull_request:
7-
branches: [ "main" ]
7+
branches: ["main"]
88

99
jobs:
1010
build:
11-
1211
runs-on: ubuntu-latest
1312
strategy:
1413
fail-fast: false
1514
matrix:
1615
python-version: ["3.9", "3.10", "3.11"]
1716

1817
steps:
19-
- uses: actions/checkout@v4
20-
21-
- name: Set up Python ${{ matrix.python-version }}
22-
uses: actions/setup-python@v3
23-
with:
24-
python-version: ${{ matrix.python-version }}
25-
26-
- name: Install dependencies
27-
run: |
28-
python -m pip install --upgrade pip
29-
pip install black flake8 pytest
30-
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
31-
# If you have a pyproject.toml with dev dependencies:
32-
# pip install -e .[dev]
33-
34-
- name: Check code style with Black
35-
run: |
36-
black --check .
37-
38-
- name: Lint with flake8
39-
run: |
40-
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
41-
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
42-
flake8 . --max-line-length=100
43-
44-
- name: Run tests with pytest
45-
run: |
46-
pytest
18+
- uses: actions/checkout@v4
19+
20+
- name: Set up Python ${{ matrix.python-version }}
21+
uses: actions/setup-python@v3
22+
with:
23+
python-version: ${{ matrix.python-version }}
24+
25+
- name: Install dependencies
26+
run: |
27+
python -m pip install --upgrade pip
28+
pip install black flake8 pytest
29+
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
30+
pip install -e .[dev]
31+
32+
- name: Check code style with Black
33+
run: |
34+
black --check .
35+
36+
- name: Lint with flake8
37+
run: |
38+
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
39+
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
40+
flake8 . --max-line-length=100
41+
42+
- name: Run tests with pytest
43+
run: |
44+
pytest

pyproject.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,12 @@
22
requires = ["setuptools>=61.0"]
33
build-backend = "setuptools.build_meta"
44

5+
[tool.setuptools.packages.find]
6+
where = ["src"]
7+
58
[project]
69
name = "hytale-api"
7-
version = "0.0.1"
10+
version = "1.0.0"
811
description = "A library for interaction with the Hytale API."
912
readme = "README.md"
1013
requires-python = ">=3.9"

src/hytale/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "0.0.1"
1+
__version__ = "1.0.0"

0 commit comments

Comments
 (0)