-
-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Convert project to use a src layout #22
Changes from all commits
2fc46fb
3837875
17f82cf
ac1ee57
7c36d56
96c6287
7c68694
b339de2
5ec6149
fd3ed59
6c25173
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Converted project to use a src layout -- by :user:`bdraco`. |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
PYXS = $(wildcard propcache/*.pyx) | ||
PYXS = $(wildcard src/propcache/*.pyx) | ||
SRC = propcache tests | ||
|
||
all: test | ||
|
@@ -15,8 +15,8 @@ all: test | |
touch .install-cython | ||
|
||
|
||
propcache/%.c: propcache/%.pyx | ||
python -m cython -3 -o $@ $< -I propcache | ||
src/propcache/%.c: src/propcache/%.pyx | ||
python -m cython -3 -o $@ $< -I src/propcache | ||
|
||
|
||
.cythonize: .install-cython $(PYXS:.pyx=.c) | ||
|
@@ -25,7 +25,7 @@ propcache/%.c: propcache/%.pyx | |
cythonize: .cythonize | ||
|
||
|
||
.develop: .install-deps $(shell find propcache -type f) | ||
.develop: .install-deps $(shell find src/propcache -type f) | ||
@pip install -e . | ||
@touch .develop | ||
|
||
|
@@ -39,15 +39,15 @@ endif | |
lint: fmt | ||
|
||
test: lint .develop | ||
pytest ./tests ./propcache | ||
pytest ./tests | ||
|
||
|
||
vtest: lint .develop | ||
pytest ./tests ./propcache -v | ||
pytest -v ./tests | ||
|
||
|
||
cov: lint .develop | ||
pytest --cov propcache --cov-report html --cov-report term ./tests/ ./propcache/ | ||
pytest --cov src/propcache --cov-report html --cov-report term ./tests | ||
@echo "open file://`pwd`/htmlcov/index.html" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @bdraco with This probably also causes these weird paths under
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Oh.. there's actually another place that is missing — |
||
|
||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -42,6 +42,7 @@ requote | |
requoting | ||
runtimes | ||
sdist | ||
src | ||
subclass | ||
subclasses | ||
subcomponent | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -85,4 +85,6 @@ norecursedirs = | |
|
||
testpaths = tests/ | ||
|
||
pythonpath = src | ||
|
||
xfail_strict = true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@bdraco I concluded that it's possible to just have
src/
here and then, this config can be synchronized across projects w/o needing to adjust project-specific names. Also, this list was supposed to be sorted so it'd bepackaging, src, tests
.