Skip to content

Commit afa3556

Browse files
McSinyxpradyunsg
andauthored
Revise distributions (#36)
* Use a src/ layout and revise distributed files * Let black cover the whole src Co-authored-by: Pradyun Gedam <3275593+pradyunsg@users.noreply.github.com> Co-authored-by: Pradyun Gedam <3275593+pradyunsg@users.noreply.github.com>
1 parent 5bbdc3e commit afa3556

File tree

5 files changed

+11
-7
lines changed

5 files changed

+11
-7
lines changed

MANIFEST.in

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1-
include pyproject.toml
2-
include *.md
3-
include LICENSE
1+
include CONTRIBUTING.md
2+
include Makefile
3+
recursive-include bin *.py
4+
recursive-include tests *.py
5+
recursive-include requirements *

Makefile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,15 @@ BINDIR = $(PWD)/.state/env/bin
1111
$(BINDIR)/python -m pip install -r requirements/dev.txt
1212

1313
test: .state/env/pyvenv.cfg
14+
$(BINDIR)/python -m pip install .
1415
$(BINDIR)/pytest
1516
$(BINDIR)/python -m tests.lib
1617

1718
lint: .state/env/pyvenv.cfg
18-
$(BINDIR)/black --check tests trove_classifiers
19-
$(BINDIR)/python bin/sort.py trove_classifiers/__init__.py
19+
$(BINDIR)/black --check tests src
20+
$(BINDIR)/python bin/sort.py src/trove_classifiers/__init__.py
2021

2122
reformat: .state/env/pyvenv.cfg
22-
$(BINDIR)/black tests trove_classifiers
23+
$(BINDIR)/black tests src
2324

2425
.PHONY: build test lint reformat

setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@
2424
'Programming Language :: Python :: 3',
2525
],
2626
keywords="classifiers",
27-
packages=find_packages(),
27+
package_dir={"": "src"},
28+
packages=find_packages(where="src"),
2829
use_calver=True,
2930
setup_requires=["calver"],
3031
)
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)