Skip to content

Commit

Permalink
Fix install command on Windows.
Browse files Browse the repository at this point in the history
  • Loading branch information
jendrikseipp committed Dec 23, 2023
1 parent d825587 commit 361e0cb
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,13 @@ jobs:
run: |
python -m pip install --upgrade pip
python -m pip install --upgrade build coveralls setuptools tox wheel
python -m pip install -r requirements.txt
- name: Build wheels for Vulture and its dependencies
run: python -m pip wheel .
- name: Build Vulture wheel
run: python -m build

- name: Install wheels
run: python -m pip install --find-links=. *.whl
- name: Install Vulture wheel
run: "python -m pip install --only-binary=:all: --ignore-installed --find-links=dist/ vulture"

- name: Run Vulture
run: |
Expand Down
2 changes: 2 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
pathspec >= 0.12.1
tomli >= 1.1.0; python_version < '3.11'
8 changes: 4 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ def find_version(*parts):
with open("README.md") as f1, open("CHANGELOG.md") as f2:
long_description = f1.read() + "\n\n" + f2.read()

with open("requirements.txt") as f:
install_requires = f.read().splitlines()

setuptools.setup(
name="vulture",
version=find_version("vulture", "version.py"),
Expand Down Expand Up @@ -47,10 +50,7 @@ def find_version(*parts):
"Programming Language :: Python :: Implementation :: PyPy",
"Topic :: Software Development :: Quality Assurance",
],
install_requires=[
"tomli >= 1.1.0; python_version < '3.11'",
"pathspec >= 0.12.1",
],
install_requires=install_requires,
entry_points={"console_scripts": ["vulture = vulture.core:main"]},
python_requires=">=3.8",
packages=setuptools.find_packages(exclude=["tests"]),
Expand Down

0 comments on commit 361e0cb

Please sign in to comment.