Skip to content

Commit

Permalink
Merge pull request #26 from sgibson91/modernise-setup-py
Browse files Browse the repository at this point in the history
  • Loading branch information
sgibson91 authored Feb 26, 2022
2 parents 07732a9 + 7db0e30 commit 81532c5
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
run: |
python -m pip install -U pip
python -m pip install -r requirements.txt
pip install pytest coverage
python -m pip install -r dev-requirements.txt
- name: Run tests
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:

- name: Install twine and wheel
run: |
python -m pip install -U pip
python -m pip install --upgrade pip
python -m pip install twine wheel
- name: Build distribution
Expand Down
2 changes: 2 additions & 0 deletions dev-requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
coverage
pytest
11 changes: 7 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
DESCRIPTION = (
"A Python package to search for and remove duplicated files in messy datasets"
)
EMAIL = "[email protected]"
EMAIL = "[email protected]"
LICENSE = "MIT"
LICENSE_TROVE = "License :: OSI Approved :: MIT License"
NAME = "deduplify"
Expand All @@ -22,11 +22,14 @@
with open(os.path.join(here, "requirements.txt")) as f:
required = [line.strip("\n") for line in f.readlines()]

REQUIRED = required + ["incremental"]
with open(os.path.join(here, "dev-requirements.txt")) as f:
test_required = [line.strip("\n") for line in f.readlines()]

REQUIRED = required
full_require = []
docs_require = []
test_require = full_require + ["pytest", "coverage"]
dev_require = ["incremental"]
test_require = full_require + test_required
dev_require = []

# What packages are optional?
EXTRAS = {
Expand Down

0 comments on commit 81532c5

Please sign in to comment.